-
Notifications
You must be signed in to change notification settings - Fork 108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dynamic form JS data-show #3346
Comments
I'd have to look into the That said - #2924 covers your example for GPUs specifically which I'm trying to build underlying support for in OSC/ood_core#825 |
The GPU type field here would be a dropdown, while I think the This would also be useful beyond this case with GPUs, for example with reservations where some reservation might not be available for all (most) accounts (i.e. show reservation field for some account). |
OK I made #3348 for auto reservations. I'm not really sure how to implement this given everything is shown by default. I'd guess we'd need to collect all the data attributes and determine if there's only 1 state it can be shown in and react off of that. But auto_gpus and auto_reservations may make the whole thing moot. |
I think it could be fine to have some attribute be set for the GPU type field to toggle the behaviour, although some automatic detection would of course be better.
I'm not sure how useful an auto_reservation or auto_gpus field would be for us, as right now as we are not using the auto_ attributes (mostly due to some missing features). |
Well I would say that the intent is to be feature complete. Please let me know through tickets what's missing and I'll try to complete it. A test case for the expected behavior of you'd want would be best with perhaps some test fixtures we can test against. We don't expose reservations or queues to customers, so it's a bit tough for me to test against our own sacctmgr or sinfo output. |
The data-hide option in forms is quite inconvenient if you have some widget that only is available for a small number of options.
Something that would work the opposite of
data-hide
would be nice to have, e.g.data-show
or maybedata-hide: false
.So rather than having forms like this:
I would want to have this:
Where the
gpu_type
select widget would be hidden by default, and shown only for thegpu
partition.The text was updated successfully, but these errors were encountered: