[racktables-users] Re: Adding 'reserved' status to a rack

Denis Ovsienko wrote:
Erik Weber <twiztar@xxxxxxxxx> wrote:

[...]
I tried doing a quick hack by adding the appropriate css records (in index.php and the render rack file), but it shows up without any additional info like name etc. Could you quickly direct me as to
where I would continue hacking?

Okay, just another state doesn't fit your needs then. Did you know,
that any object can be allocated rackspace spanning multiple racks? You
can create a placeholder and allocate all 19 racks to it (way much
checkbox clicking, we need some JavaScript helper, anybody willing to
contribute one?). The only obvious inconsistence is that it won't
delete itself upon "unreserving", that's beginning to annoy me too.


I don't see why another state wouldn't do it, all that's really necessary is some way to distinguish reserved space from taken space, that's why the different color comes in. All our items are automatically inserted into the RackSpace table, so clicking isn't a problem ;-)

So to sum up, what I'm looking for is a way to:

- Mark an object as reserved, giving it another color (example: orange), for example by adding another state.

So what I did, was adding another Config value (color_R), adding 'R' to the foreach loop in index.php and render rack file ( I relly don't remember the file name, hehe) , which works, but the object won't show the rest of the info, probably because there are some other relations to state later in the process. Which is where I would use a hint as to where that might be.

Anyway, about time to leave work

--
Erik

Other related posts: