scinote-web/app/views/protocols/index/_protocols_datatable.html.erb

32 lines
1.6 KiB
Text
Raw Normal View History

2019-06-12 13:19:14 +08:00
<div id="protocols-datatable-spinner">
<div class="protocols-datatable">
<table id="protocols-table" class="table" data-team-id="<%= @current_team.id %>" data-type="<%= @type %>" data-source="<%= datatable_protocols_path(team: @current_team, type: @type) %>">
<thead>
<tr>
<th id="select-all">
<div class="sci-checkbox-container">
<input name="select_all" type="checkbox" class="sci-checkbox">
<span class="sci-checkbox-label"></span>
</div>
</th>
<th id="protocol-name"><%= t("protocols.index.thead.name") %></th>
<th id="protocol-id"><%= t("protocols.index.thead.id") %></th>
<th id="protocol-versions"><%= t("protocols.index.thead.versions") %></th>
<th id="protocol-keywords"><%= t("protocols.index.thead.keywords") %></th>
<th id="protocol-nr-of-linked-children"><%= t("protocols.index.thead.nr_of_linked_children") %></th>
<th id="protocol-access"><%= t("protocols.index.thead.access") %></th>
<% if @type == :archived %>
<th id="protocol-archived-by"><%= t("protocols.index.thead.archived_by") %></th>
<th id="protocol-archived-on"><%= t("protocols.index.thead.archived_on") %></th>
2019-06-12 13:19:14 +08:00
<% else %>
<th id="protocol-published-by"><%= t("protocols.index.thead.published_by") %></th>
<th id="protocol-published-on"><%= t("protocols.index.thead.published_on") %></th>
2019-06-12 13:19:14 +08:00
<% end %>
<th id="protocol-updated-at"><%= t("protocols.index.thead.updated_at") %></th>
2019-06-12 13:19:14 +08:00
</tr>
</thead>
<tbody></tbody>
</table>
</div>
</div>