<% 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 %>