2016-07-29 22:53:50 +08:00
|
|
|
<%= bootstrap_form_tag remote: true, url: experiment_contents_project_reports_path(project, format: :json), method: :post, html: { id: "add-contents-form" } do |f| %>
|
|
|
|
<%= hidden_field_tag :id, experiment.id %>
|
|
|
|
<div>
|
|
|
|
<!-- Nav tabs -->
|
|
|
|
<ul class="nav nav-tabs" role="tablist">
|
2017-05-10 19:15:17 +08:00
|
|
|
<li role="presentation" class="active">
|
|
|
|
<a href="#tasks-tab" aria-controls="tasks-tab" role="tab" data-toggle="tab">
|
2018-07-09 19:13:44 +08:00
|
|
|
<span class="fas fa-credit-card visible-xs"></span>
|
2017-05-10 19:15:17 +08:00
|
|
|
<span class="hidden-xs"><%= t("projects.reports.elements.modals.project_contents.tasks_tab") %></span>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li role="presentation">
|
|
|
|
<a href="#content-tab" aria-controls="content-tab" role="tab" data-toggle="tab">
|
2018-07-09 19:13:44 +08:00
|
|
|
<span class="fas fa-link visible-xs"></span>
|
2017-05-10 19:15:17 +08:00
|
|
|
<span class="hidden-xs"><%= t("projects.reports.elements.modals.project_contents.content_tab") %></span>
|
|
|
|
</a>
|
|
|
|
</li>
|
2016-07-29 22:53:50 +08:00
|
|
|
</ul>
|
|
|
|
|
|
|
|
<!-- Tab panes -->
|
|
|
|
<div class="tab-content">
|
2017-05-10 19:15:17 +08:00
|
|
|
<div role="tabpanel" class="tab-pane active" id="tasks-tab">
|
|
|
|
<h5 class="visible-xs"><%= t("projects.reports.elements.modals.project_contents.tasks_tab") %></h5>
|
2016-07-29 22:53:50 +08:00
|
|
|
<%= render partial: "reports/new/modal/experiment_contents_inner.html.erb", locals: { form: f, experiment: experiment } %>
|
|
|
|
</div>
|
2017-05-10 19:15:17 +08:00
|
|
|
<div role="tabpanel" class="tab-pane" id="content-tab">
|
|
|
|
<h5 class="visible-xs"><%= t("projects.reports.elements.modals.project_contents.content_tab") %></h5>
|
2016-07-29 22:53:50 +08:00
|
|
|
<%= render partial: "reports/new/modal/module_contents_inner.html.erb", locals: { form: f } %>
|
2017-05-10 19:15:17 +08:00
|
|
|
<hr>
|
2016-07-29 22:53:50 +08:00
|
|
|
<%= render partial: "reports/new/modal/step_contents_inner.html.erb", locals: { form: f } %>
|
2017-05-10 19:15:17 +08:00
|
|
|
<hr>
|
2016-07-29 22:53:50 +08:00
|
|
|
<%= render partial: "reports/new/modal/result_contents_inner.html.erb", locals: { form: f } %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<% end %>
|