scinote-web/app/views/reports/new/_report_navigation.html.erb

53 lines
2.4 KiB
Text
Raw Normal View History

<div class="navbar-report">
<div class="center-block" id="report-menu">
<div class="dropdown" id="sort-report">
2020-01-07 23:13:34 +08:00
<button class="btn btn-secondary dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
<span class="fas fa-sort visible-xs-inline"></span>
<span class="hidden-xs"><%= t'projects.reports.new.nav_sort_by' %></span>
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dropdownMenu1">
2018-08-20 20:46:23 +08:00
<li><a href="#" data-sort="desc" data-turbolinks="false"><%= t('projects.reports.new.nav_sort_desc') %></a></li>
<li><a href="#" data-sort="asc" data-turbolinks="false"><%= t('projects.reports.new.nav_sort_asc') %></a></li>
</ul>
</div>
2016-02-12 23:52:43 +08:00
2020-01-07 23:13:34 +08:00
<%= link_to "", class: "btn btn-secondary", remote: true, id: "print-report" do %>
<span class="fas fa-print"></span>
<span class="hidden-xs"><%=t "projects.reports.new.nav_print" %></span>
<% end %>
<div class="dropdown" id="download-report">
2020-01-07 23:13:34 +08:00
<button class="btn btn-secondary dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
<span class="fas fa-download"></span>
<span class="hidden-xs"><%= t("projects.reports.new.nav_download") %><span>
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dropdownMenu1">
<li><%= link_to t("projects.reports.new.nav_pdf"), generate_project_reports_path(@project, format: :pdf), id: "get-report-pdf" %></li>
<li><%= link_to t("projects.reports.new.nav_docx"), generate_project_reports_path(@project, format: :docx), id: "get-report-docx" %></li>
</ul>
</div>
2016-02-12 23:52:43 +08:00
<button
onclick="$('#savePDFtoInventory').modal('show')"
2020-01-07 23:13:34 +08:00
class="btn btn-secondary">
<span class="fas fa-save">
</span>
<%=t 'projects.reports.new.save_PDF_to_inventory'%>
</button>
<div class="pull-right">
2020-01-07 23:13:34 +08:00
<%= link_to reports_path, data: { no_turbolink: false }, id: "cancel-report-link", class: "btn btn-secondary" do %>
<span class="hidden-xs"><%=t "projects.reports.new.nav_close" %></span>
<% end %>
2020-01-07 23:13:34 +08:00
<%= link_to "", class: "btn btn-primary", remote: true, id: "save-report-link" do %>
<span class="hidden-xs"><%=t "projects.reports.new.nav_save" %></span>
<% end %>
</div>
2016-02-12 23:52:43 +08:00
</div>
</div>