<% if can_create_project_experiments?(@project) %> <%= button_to new_project_experiment_url(@project), remote: true, form_class: 'new-experiment-form', data: {view_mode: :active}, id: 'new-experiment', method: :get, class: 'btn btn-primary' do %> <% end %> <% end %> <%= render layout: 'shared/view_switch', locals: { disabled: false, name: t("toolbar.#{@current_view_type}_view") } do %>
  • <%= button_to(view_type_project_path(@project, format: :json), method: :put, remote: true, class: "btn btn-light button-to #{ @current_view_type == 'table' ? 'selected' : ''}", form_class: 'change-experiments-view-type-form', params: { project: { view_type: 'table', project_id: @project.id } }) do %> <%= t('toolbar.table_view') %> <% end %>
  • <%= button_to(view_type_project_path(@project, format: :json), method: :put, remote: true, class: "btn btn-light button-to #{ @current_view_type == 'cards' ? 'selected' : ''}", form_class: 'change-experiments-view-type-form', params: { project: { view_type: 'cards', project_id: @project.id } }) do %> <%= t('toolbar.cards_view') %> <% end %>
  • <% end %> <%= render layout: 'shared/state_view_switch', locals: { disabled: false } do %>
  • <%= button_tag class: "btn btn-#{params[:view_mode] ? 'light' : 'primary'} state-view-switch archive-switch", data: { url: project_path(@project) } do %> <%= t('toolbar.active_state') %> <% end %>
  • <%= button_tag class: "btn btn-#{params[:view_mode] ? 'primary' : 'light'} state-view-switch archive-switch", data: { url: project_path(@project, view_mode: 'archived') } do %> <%= t('toolbar.archived_state') %> <% end %>
  • <% end %>
    <%= render layout: 'shared/filter_dropdown', locals: { container_class: 'experiments-filters', dropdown_title: t("filters_modal.title"), search_field_history_key: 'experiment_filters_per_team' } do %> <%= render partial: 'shared/filter_dropdown/text_search', locals: {container_class: ''} %> <%= render partial: 'shared/filter_dropdown/datetime_search', locals: {container_class: 'started-on-filter', label: t("filters_modal.created_on.label"), view_mode: nil } %> <%= render partial: 'shared/filter_dropdown/datetime_search', locals: {container_class: 'modified-on-filter', label: t("filters_modal.updated_on.label"), view_mode: nil } %> <%= render partial: 'shared/filter_dropdown/datetime_search', locals: {container_class: 'archived-on-filter', label: t("filters_modal.archived_on.label"), view_mode: 'archived' } %> <% end %> <% button_to edit_experiments_path(), class: 'btn btn-light edit-experiment-btn single-object-action hidden', form_class: 'edit-experiments-form', data: { for: :editable, view_mode: 'active' }, remote: true, method: :get do %> <% end %> <% button_to clone_modal_experiments_path(), class: 'btn btn-light clone-experiment-btn single-object-action hidden', form_class: 'clone-experiments-form', data: { for: :duplicable, view_mode: 'active' }, remote: true, method: :get do %> <% end %> <% button_to move_modal_experiments_path(), class: 'btn btn-light move-experiment-btn single-object-action hidden', form_class: 'move-experiments-form', data: { for: :moveable }, remote: true, method: :get do %> <% end %> <% button_to archive_group_project_experiments_path(@project), class: 'btn btn-light archive-experiments-btn multiple-object-action hidden', form_class: 'archive-experiments-form', data: { for: :archivable, view_mode: 'active' }, remote: true, method: :post do %> <% end %> <% button_to restore_group_project_experiments_path(@project), class: 'btn btn-light restore-experiments-btn multiple-object-action hidden', form_class: 'restore-experiments-form', data: { for: :restorable, view_mode: 'archived' }, remote: true, method: :post do %> <% end %>