2022-12-06 21:51:11 +08:00
|
|
|
<div class="modal table-display-modal" id="tableDisplayModal" tabindex="-1" role="dialog" data-column-state-url="<%= save_table_state_my_modules_path %>">
|
2022-11-15 19:02:20 +08:00
|
|
|
<div class="modal-dialog" role="document">
|
|
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header">
|
2023-08-17 19:55:17 +08:00
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="<%= t('general.close') %>"><i class="sn-icon sn-icon-close"></i></button>
|
2022-11-15 19:02:20 +08:00
|
|
|
<h4 class="modal-title">
|
|
|
|
<%= t("experiments.table.column_display_modal.title") %>
|
|
|
|
</h4>
|
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
2023-07-18 19:38:50 +08:00
|
|
|
<p class='modal-description'><%= t("experiments.table.column_display_modal.description") %></p>
|
2022-11-15 19:02:20 +08:00
|
|
|
<% Experiments::TableViewService::COLUMNS.each do |col| %>
|
|
|
|
<div class="column-container <%= col %> visible">
|
2022-12-01 16:34:29 +08:00
|
|
|
<% if col == :archived && params[:view_mode] != 'archived' %>
|
2023-06-08 14:33:37 +08:00
|
|
|
<i class="sn-icon sn-icon-visibility-hide disabled" data-column="<%= col %>"></i>
|
2022-12-01 16:34:29 +08:00
|
|
|
<% elsif col != :task_name %>
|
2023-06-08 14:33:37 +08:00
|
|
|
<i class="sn-icon sn-icon-<%= col.to_s.in?(@my_module_visible_table_columns) ? 'visibility-show' : 'visibility-hide' %>" data-column="<%= col %>"></i>
|
2022-11-15 19:02:20 +08:00
|
|
|
<% end %>
|
|
|
|
<%= t("experiments.table.column_display_modal.#{col}") %>
|
|
|
|
</div>
|
2022-12-01 16:34:29 +08:00
|
|
|
|
2022-11-15 19:02:20 +08:00
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|