Skip to content
Snippets Groups Projects
Commit 84dfaf67 authored by Jeff Ohrstrom's avatar Jeff Ohrstrom
Browse files

change account to be a select with only valid group options

parent 558419b8
No related branches found
No related tags found
No related merge requests found
<%-
groups = OodSupport::User.new.groups.sort_by(&:id).tap { |groups|
groups.unshift(groups.delete(OodSupport::Process.group))
}.map(&:name).grep(/^P./)
-%>
---
cluster:
- "owens"
form:
- version
- bc_account
- account
- bc_num_hours
- bc_num_slots
- num_cores
......@@ -25,9 +30,13 @@ attributes:
bc_num_slots: "1"
bc_vnc_resolution:
required: true
bc_account:
account:
label: "Project"
help: "You can leave this blank if **not** in multiple projects."
widget: select
options:
<%- groups.each do |group| %>
- "<%= group %>"
<%- end %>
node_type:
widget: select
label: "Node type"
......
......@@ -17,6 +17,7 @@
batch_connect:
template: vnc
script:
accounting_id: "<%= account %>"
native:
<%- slurm_args.each do |arg| %>
- "<%= arg %>"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment