2016-02-12 23:52:43 +08:00
|
|
|
<ul class="nav nav-tabs">
|
2016-07-21 19:11:15 +08:00
|
|
|
<li role="presentation" id="new-step-main-tab" class="active">
|
2016-02-12 23:52:43 +08:00
|
|
|
<a href="#new-step-main" data-toggle="tab">
|
|
|
|
<span class="glyphicon glyphicon-pencil"></span>
|
|
|
|
</a>
|
|
|
|
</li>
|
2016-07-21 19:11:15 +08:00
|
|
|
<li role="presentation" id="new-step-checklists-tab">
|
2016-02-12 23:52:43 +08:00
|
|
|
<a href="#new-step-checklists" data-toggle="tab">
|
|
|
|
<span class="glyphicon glyphicon-list"></span>
|
2016-07-21 19:11:15 +08:00
|
|
|
<%= t("protocols.steps.new.tab_checklists") %>
|
2016-02-12 23:52:43 +08:00
|
|
|
</a>
|
|
|
|
</li>
|
2016-07-21 19:11:15 +08:00
|
|
|
<li role="presentation" id="new-step-assets-tab">
|
2016-02-12 23:52:43 +08:00
|
|
|
<a href="#new-step-assets" data-toggle="tab">
|
|
|
|
<span class="glyphicon glyphicon-file"></span>
|
2016-07-21 19:11:15 +08:00
|
|
|
<%= t("protocols.steps.new.tab_assets") %>
|
2016-02-12 23:52:43 +08:00
|
|
|
</a>
|
|
|
|
</li>
|
2016-07-21 19:11:15 +08:00
|
|
|
<li role="presentation" id="new-step-tables-tab">
|
|
|
|
<a href="#new-step-tables" data-toggle="tab">
|
2016-02-12 23:52:43 +08:00
|
|
|
<span class="glyphicon glyphicon-th"></span>
|
2016-07-21 19:11:15 +08:00
|
|
|
<%= t("protocols.steps.new.tab_tables") %>
|
2016-02-12 23:52:43 +08:00
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
<div class="tab-content">
|
|
|
|
<div class="tab-pane active" role="tabpanel" id="new-step-main">
|
2016-07-21 19:11:15 +08:00
|
|
|
<%= f.text_field :name, label: t("protocols.steps.new.name"), placeholder: t("protocols.steps.new.name_placeholder") %>
|
2016-11-11 00:20:17 +08:00
|
|
|
<div class="form-group">
|
2016-11-16 20:59:35 +08:00
|
|
|
<label class="control-label" for="step_description"><%= t('protocols.steps.new.description') %></label>
|
2016-11-11 00:20:17 +08:00
|
|
|
<%= quill_editor nil, { id: 'step_description', name: 'step[description]', value: @step.description } %>
|
|
|
|
</div>
|
2016-02-12 23:52:43 +08:00
|
|
|
</div>
|
|
|
|
<div class="tab-pane" role="tabpanel" id="new-step-checklists">
|
|
|
|
<%= f.nested_fields_for :checklists do |ff| %>
|
|
|
|
<%= render "form_checklists.html.erb", ff: ff %>
|
|
|
|
<% end %>
|
|
|
|
<%= f.add_nested_fields_link :checklists do %>
|
|
|
|
<span class="glyphicon glyphicon-plus"></span>
|
2016-07-21 19:11:15 +08:00
|
|
|
<%= t("protocols.steps.new.add_checklist") %>
|
2016-02-12 23:52:43 +08:00
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
<div class="tab-pane" role="tabpanel" id="new-step-assets">
|
|
|
|
<%= f.nested_fields_for :assets do |ff| %>
|
|
|
|
<%= render "form_assets.html.erb", ff: ff %>
|
|
|
|
<% end %>
|
|
|
|
<%= f.add_nested_fields_link :assets do %>
|
|
|
|
<span class="glyphicon glyphicon-plus"></span>
|
2016-07-21 19:11:15 +08:00
|
|
|
<%= t("protocols.steps.new.add_asset") %>
|
2016-02-12 23:52:43 +08:00
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
<div class="tab-pane" role="tabpanel" id="new-step-tables">
|
|
|
|
<%= f.nested_fields_for :tables do |ff| %>
|
|
|
|
<%= render "form_tables.html.erb", ff: ff %>
|
|
|
|
<% end %>
|
|
|
|
<%= f.add_nested_fields_link :tables, id: "add-table" do %>
|
|
|
|
<span class="glyphicon glyphicon-plus"></span>
|
2016-07-21 19:11:15 +08:00
|
|
|
<%= t("protocols.steps.new.add_table") %>
|
2016-02-12 23:52:43 +08:00
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
</div>
|