2017-06-06 23:35:29 +08:00
|
|
|
<div class="repository-table">
|
2017-07-17 21:05:28 +08:00
|
|
|
<table id="repository-table-<%= repository.id %>" class="table"
|
2017-06-06 23:35:29 +08:00
|
|
|
data-current-uri="<%= request.original_url %>"
|
|
|
|
data-repository-id="<%= repository.id %>"
|
|
|
|
data-source="<%= repository_index_link %>"
|
2018-04-04 17:55:11 +08:00
|
|
|
data-num-columns="<%= 6 + repository.repository_columns.count %>"
|
2017-06-06 23:35:29 +08:00
|
|
|
data-create-record="<%= repository_repository_rows_path(repository) %>"
|
|
|
|
data-delete-record="<%= repository_delete_records_path(repository) %>"
|
2018-04-11 23:17:19 +08:00
|
|
|
data-copy-records="<%= repository_copy_records_path(repository) %>"
|
2017-06-06 23:35:29 +08:00
|
|
|
data-max-dropdown-length="<%= Constants::NAME_TRUNCATION_LENGTH_DROPDOWN %>"
|
2018-06-29 16:28:10 +08:00
|
|
|
data-repository-columns-ids="<%= repository.available_columns_ids %>"
|
2017-06-06 23:35:29 +08:00
|
|
|
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') %>"
|
2018-06-12 21:28:03 +08:00
|
|
|
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') %>">
|
2017-06-06 23:35:29 +08:00
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th id="checkbox"><input name="select_all" value="1" type="checkbox"></th>
|
2017-06-16 17:47:41 +08:00
|
|
|
<th id="assigned"><%= t("repositories.table.assigned") %></th>
|
2018-04-04 17:55:11 +08:00
|
|
|
<th id="row-id"><%= t("repositories.table.id") %></th>
|
2017-06-06 23:35:29 +08:00
|
|
|
<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>
|
2017-07-10 21:32:18 +08:00
|
|
|
<% repository.repository_columns.order(:id).each do |column| %>
|
2018-03-21 23:56:36 +08:00
|
|
|
<th class="repository-column" id="<%= column.id %>" data-type="<%= column.data_type %>">
|
2017-06-06 23:35:29 +08:00
|
|
|
<%= display_tooltip(column.name) %>
|
|
|
|
</th>
|
|
|
|
<% end %>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody></tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|