scinote-web/app/views/user_my_modules/new.html.erb

14 lines
616 B
Text
Raw Normal View History

2016-02-12 23:52:43 +08:00
<% provide(:head_title, t("user_my_modules.new.head_title", project: @my_module.project.name, module: @my_module.name)) %>
<h2><%=t "user_my_modules.new.title", module: @my_module.name %></h2>
<%= bootstrap_form_for [@my_module, @um] do |f| %>
<% if @users.empty? then %>
<h4><%= t("user_my_modules.new.no_users_available") %></h4>
<%= link_to t("user_my_modules.new.back_button"), :back %>
<% else %>
<%= collection_select(:user_my_module, :user_id, @users, :id, :full_name ) %>
<br />
<%= f.submit t("user_my_modules.new.assign_user"), style: "margin-top: 10px;" %>
<% end %>
<% end %>