transferred Code Ocean from original repository to GitHub
This commit is contained in:
15
app/views/internal_users/_form.html.slim
Normal file
15
app/views/internal_users/_form.html.slim
Normal file
@@ -0,0 +1,15 @@
|
||||
= form_for(@user) do |f|
|
||||
= render('shared/form_errors', object: @user)
|
||||
.form-group
|
||||
= f.label(:consumer_id)
|
||||
= f.collection_select(:consumer_id, Consumer.all.sort_by(&:name), :id, :name, {}, class: 'form-control')
|
||||
.form-group
|
||||
= f.label(:email)
|
||||
= f.text_field(:email, class: 'form-control', required: true)
|
||||
.form-group
|
||||
= f.label(:name)
|
||||
= f.text_field(:name, class: 'form-control', required: true)
|
||||
.form-group
|
||||
= f.label(:role)
|
||||
= f.select(:role, User::ROLES.map { |role| [t("users.roles.#{role}"), role] }, {}, class: 'form-control')
|
||||
.actions = render('shared/submit_button', f: f, object: @user)
|
Reference in New Issue
Block a user