File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1004,6 +1004,26 @@ sudo sacctmgr add user hpcadmin account=sfoster
10041004sudo sacctmgr modify user where user=hpcadmin set defaultaccount=staff
10051005```
10061006
1007+ ### Hiding form options
1008+
1009+ Lastly, we can use this feature to hide and show other form fields. This can be useful when
1010+ some options are avaialbe for somethings. For example you may want to show CUDA versions as
1011+ a form option for GPU nodes, but not for other nodes.
1012+
1013+ Add the `data-hide-bc-account` line to our `debug` form option and we'll start hiding that
1014+ field when the debug option is chosen.
1015+
1016+ ```yaml
1017+ - [
1018+ "Debug", "debug",
1019+ data-min-memory: 400,
1020+ data-max-memory: 600,
1021+
1022+ data-set-bc-account: 'staff',
1023+ data-hide-bc-account: true, # hide the bc_account field when this is chosen.
1024+ ]
1025+ ```
1026+
10071027## Passenger app tutorial
10081028
10091029Access OnDemand dashboard https://localhost:3443
You can’t perform that action at this time.
0 commit comments