Adding option to select SLURM account #12
Replies: 1 comment 1 reply
-
|
Thank you for your interest in Open Composer. First, if you want to use ERB, rename Please note that the
Please use Thanks, |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
(This question was also posted in the Announcement in Open OnDemand)
Hi, thank you for sharing this application, looks amazing. I am trying to personalize a few things and I am having some troubles. I hope the creators of the app will be able to help me.
I would like to add to my Slurm app a select widget with label “SLURM Account“ where the user can select under what slurm account they want to submit the job. Many users collaborate with different labs and have more than one Slurm account.
In other OnDemand apps we would add something like this:
But that doesn’t work, I get an Internal Server error. The file I’m editing is: sample_apps/Slurm/form.yml
I even tried something as simple as this just to test if javascript works, but I get a different error, that a key: value is not found in that line:
To test further, I created the following widget to test if javascript does work but perhaps it just doesnt recognize our SlurmAccounts variable:
But the app shows literally “<%= SCRIPT_CONTENT %>” as a string and it doesn’t interpret the value of the variable.
So, in summary, how can I edit the form.yml (or any other necessary file) to be able to add a select widget where the values in options are the accounts the user belongs to? And more generally, how can i access variables that are declared outside that file?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions