Hi!
I have a question regarding the operation of data-hide. My form.yml is configured as follows:
---
attributes:
bc_dynamic_js: true
desktop: "xfce"
bc_vnc_idle: 0
bc_vnc_resolution:
required: true
node_type: null
bc_num_slots: 2
num_cores:
widget: "number_field"
label: "Number of cores"
value: 2
memory:
label: "Memory"
value: "1GB"
node:
widget: "select"
label: "Node"
options:
- ["gn01", "gn01"]
- ["gn02", "gn02"]
- ["gn03", "gn03"]
- ["n01", "n01", data-hide-gpu: true, data-set-gpu: 'gpu:0']
cacheable: false
gpu:
label: "GPU"
value: "gpu:0"
help: "Format: \"gpu:N\" where N is the number of GPUs requested. Use \"gpu:0\" for none (default)."
cacheable: false
form:
- bc_vnc_idle
- desktop
- node
- memory
- gpu
- auto_queues
- bc_num_hours
- num_cores
- bc_num_slots
- bc_vnc_resolution
- bc_email_on_started
And the submit.yml.erb:
---
batch_connect:
template: vnc
script:
native:
- "-c"
- "<%= num_cores %>"
- "-w"
- "<%= node %>"
- "--mem"
- "<%= memory %>"
- "--gres"
- "<%= gpu %>"
Where, in case the selected node is n01, the GPU selection option should be hidden. However, even when selecting node n01, the GPU option is still visible.
For context, I am using OOD version 4.0.3.
Could you assist me with tips or suggestions for this situation?
Thanks!
Nícolas
