[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.

This thread kinda died, but I'm positive that a new state would suit my needs. I'm not sure what the appropriate way to add it is though, I already tried adding it to the css and database, but that obviously wasn't enough.

Do you have some sort of guide or walk through for how to successfully add a new state, clone of the current Installed state?


--
Erik Weber

Other related posts: