mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-07 08:01:51 +08:00
53699193a2
Conflicts: app/assets/javascripts/comments.js.erb app/assets/javascripts/protocols/index.js app/assets/javascripts/protocols/steps.js.erb app/assets/javascripts/samples/sample_datatable.js.erb app/controllers/my_module_comments_controller.rb app/controllers/project_comments_controller.rb app/controllers/result_comments_controller.rb app/controllers/step_comments_controller.rb app/datatables/sample_datatable.rb app/views/my_module_comments/_comment.html.erb app/views/project_comments/_comment.html.erb app/views/projects/show/_experiment.html.erb app/views/reports/elements/_experiment_element.html.erb app/views/reports/elements/_result_comments_element.html.erb app/views/reports/elements/_result_text_element.html.erb app/views/reports/elements/_step_checklist_element.html.erb app/views/reports/elements/_step_comments_element.html.erb app/views/reports/elements/_step_element.html.erb app/views/result_comments/_comment.html.erb app/views/results/_result_text.html.erb app/views/step_comments/_comment.html.erb app/views/steps/_step.html.erb db/schema.rb
60 lines
2.2 KiB
Text
60 lines
2.2 KiB
Text
<ul class="nav nav-tabs">
|
|
<li role="presentation" id="new-step-main-tab" class="active">
|
|
<a href="#new-step-main" data-toggle="tab">
|
|
<span class="glyphicon glyphicon-pencil"></span>
|
|
</a>
|
|
</li>
|
|
<li role="presentation" id="new-step-checklists-tab">
|
|
<a href="#new-step-checklists" data-toggle="tab">
|
|
<span class="glyphicon glyphicon-list"></span>
|
|
<%= t("protocols.steps.new.tab_checklists") %>
|
|
</a>
|
|
</li>
|
|
<li role="presentation" id="new-step-assets-tab">
|
|
<a href="#new-step-assets" data-toggle="tab">
|
|
<span class="glyphicon glyphicon-file"></span>
|
|
<%= t("protocols.steps.new.tab_assets") %>
|
|
</a>
|
|
</li>
|
|
<li role="presentation" id="new-step-tables-tab">
|
|
<a href="#new-step-tables" data-toggle="tab">
|
|
<span class="glyphicon glyphicon-th"></span>
|
|
<%= t("protocols.steps.new.tab_tables") %>
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
<div class="tab-content">
|
|
<div class="tab-pane active" role="tabpanel" id="new-step-main">
|
|
<%= f.text_field :name, label: t("protocols.steps.new.name"), placeholder: t("protocols.steps.new.name_placeholder") %>
|
|
<div class="form-group">
|
|
<%= f.tiny_mce_editor(:description) %>
|
|
</div>
|
|
</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>
|
|
<%= t("protocols.steps.new.add_checklist") %>
|
|
<% 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, step: step %>
|
|
<% end %>
|
|
<%= f.add_nested_fields_link :assets do %>
|
|
<span class="glyphicon glyphicon-plus"></span>
|
|
<%= t("protocols.steps.new.add_asset") %>
|
|
<% 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>
|
|
<%= t("protocols.steps.new.add_table") %>
|
|
<% end %>
|
|
</div>
|
|
</div>
|