scinote-web/app/views/protocols/index/_create_new_modal_body.html.erb

13 lines
552 B
Plaintext
Raw Normal View History

2016-07-21 19:11:15 +08:00
<%= bootstrap_form_for @new_protocol, remote: :true do |f| %>
2017-01-25 19:01:23 +08:00
<input type="hidden" name="team" id="team" value="<%= @current_team.id %>">
2016-07-21 19:11:15 +08:00
<input type="hidden" name="type" id="type" value="<%= @type %>">
<%= f.text_field :name, label: t("protocols.index.create.name_label"), placeholder: t("protocols.index.create.name_placeholder") %>
<% if @type == :public %>
<em><%= t("protocols.index.create.message_public") %></em>
<% elsif @type == :private %>
<em><%= t("protocols.index.create.message_private") %></em>
<% end %>
<% end %>