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

30 lines
1.6 KiB
Text

<div id="protocols-datatable-spinner">
<div class="protocols-datatable">
<table id="protocols-table" class="table" style="width: 100%" 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>
<th id="protocol-published-by"><%= t("protocols.index.thead.published_by") %></th>
<th id="protocol-published-on"><%= t("protocols.index.thead.published_on") %></th>
<th id="protocol-updated-at"><%= t("protocols.index.thead.updated_at") %></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>
<% end %>
</tr>
</thead>
<tbody></tbody>
</table>
</div>
</div>