2018-04-18 20:40:53 +08:00
|
|
|
<div class="navbar-report">
|
|
|
|
<div class="center-block" id="report-menu">
|
|
|
|
|
|
|
|
<div class="dropdown" id="sort-report">
|
|
|
|
<button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
|
2018-07-09 19:13:44 +08:00
|
|
|
<span class="fas fa-sort visible-xs-inline"></span>
|
2018-04-18 20:40:53 +08:00
|
|
|
<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>
|
2018-04-18 20:40:53 +08:00
|
|
|
</ul>
|
|
|
|
</div>
|
2016-02-12 23:52:43 +08:00
|
|
|
|
2018-04-25 19:57:12 +08:00
|
|
|
<%= link_to "", class: "btn btn-default", remote: true, id: "print-report" do %>
|
2018-07-09 19:13:44 +08:00
|
|
|
<span class="fas fa-print"></span>
|
2018-04-18 20:40:53 +08:00
|
|
|
<span class="hidden-xs"><%=t "projects.reports.new.nav_print" %></span>
|
|
|
|
<% end %>
|
|
|
|
<%= form_tag generate_project_reports_path(@project, format: :pdf), method: :post, target: "_blank", class: "get-report-pdf-form" do %>
|
|
|
|
<div class="form-group">
|
|
|
|
<%= hidden_field_tag "html", "" %>
|
2018-04-25 19:57:12 +08:00
|
|
|
<%= link_to "", class: "btn btn-default", remote: true, id: "get-report-pdf" do %>
|
2018-08-14 19:26:48 +08:00
|
|
|
<span class="fas fa-upload"></span>
|
2018-04-18 20:40:53 +08:00
|
|
|
<span class="hidden-xs"><%=t "projects.reports.new.nav_pdf" %></span>
|
|
|
|
<% end %>
|
2016-02-12 23:52:43 +08:00
|
|
|
</div>
|
2018-04-18 20:40:53 +08:00
|
|
|
<% end %>
|
2016-02-12 23:52:43 +08:00
|
|
|
|
2018-05-16 15:31:19 +08:00
|
|
|
<button
|
|
|
|
onclick="$('#savePDFtoInventory').modal('show')"
|
|
|
|
class="btn btn-default">
|
2018-08-14 19:26:48 +08:00
|
|
|
<span class="fas fa-save">
|
|
|
|
</span>
|
2018-05-16 15:31:19 +08:00
|
|
|
<%=t 'projects.reports.new.save_PDF_to_inventory'%>
|
|
|
|
</button>
|
|
|
|
|
2018-04-25 19:57:12 +08:00
|
|
|
<div class="pull-right">
|
|
|
|
<%= link_to reports_path, data: { no_turbolink: false }, id: "cancel-report-link", class: "btn btn-default" do %>
|
|
|
|
<span class="hidden-xs"><%=t "projects.reports.new.nav_close" %></span>
|
|
|
|
<% end %>
|
|
|
|
<%= link_to "", class: "btn btn-success", 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
|
|
|
|
2018-04-18 20:40:53 +08:00
|
|
|
</div>
|
|
|
|
</div>
|