mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-17 14:46:00 +08:00
36 lines
1.9 KiB
Text
36 lines
1.9 KiB
Text
<div class="repository-table">
|
|
<table id="repository-table-<%= repository.id %>" class="table"
|
|
data-current-uri="<%= request.original_url %>"
|
|
data-repository-id="<%= repository.id %>"
|
|
data-source="<%= repository_index_link %>"
|
|
data-num-columns="<%= 6 + repository.repository_columns.count %>"
|
|
data-create-record="<%= repository_repository_rows_path(repository) %>"
|
|
data-delete-record="<%= repository_delete_records_path(repository) %>"
|
|
data-copy-records="<%= repository_copy_records_path(repository) %>"
|
|
data-max-dropdown-length="<%= Constants::NAME_TRUNCATION_LENGTH_DROPDOWN %>"
|
|
data-repository-columns-ids="<%= repository.available_columns_ids %>"
|
|
data-save-text="<%= I18n.t('general.save') %>"
|
|
data-edit-text="<%= I18n.t('general.edit') %>"
|
|
data-cancel-text="<%= I18n.t('general.cancel') %>"
|
|
data-columns-visibility-text="<%= I18n.t('repositories.columns_visibility') %>"
|
|
data-columns-delete-text="<%= I18n.t('repositories.columns_delete') %>"
|
|
data-available-columns="<%= repository_available_columns_path(repository) %>"
|
|
data-columns-changed="<%= I18n.t('repositories.columns_changed') %>">
|
|
<thead>
|
|
<tr>
|
|
<th id="checkbox"><input name="select_all" value="1" type="checkbox"></th>
|
|
<th id="assigned"><%= t("repositories.table.assigned") %></th>
|
|
<th id="row-id"><%= t("repositories.table.id") %></th>
|
|
<th id="row-name"><%= t("repositories.table.row_name") %></th>
|
|
<th id="added-on"><%= t("repositories.table.added_on") %></th>
|
|
<th id="added-by"><%= t("repositories.table.added_by") %></th>
|
|
<% repository.repository_columns.order(:id).each do |column| %>
|
|
<th class="repository-column" id="<%= column.id %>" data-type="<%= column.data_type %>">
|
|
<%= display_tooltip(column.name) %>
|
|
</th>
|
|
<% end %>
|
|
</tr>
|
|
</thead>
|
|
<tbody></tbody>
|
|
</table>
|
|
</div>
|