<% 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' : ''} prevent-shrink", 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' : ''} prevent-shrink", form_class: 'change-experiments-view-type-form', params: { project: { view_type: 'cards', project_id: @project.id } }) do %> <%= t('toolbar.cards_view') %> <% end %>
  • <% end %> <%= render partial: 'shared/state_view_switch', locals: { disabled: false, switchable: true, archived: params[:view_mode] =='archived', active_url: project_path(@project, view_mode: :active), archived_url: project_path(@project, view_mode: :archived), } %>
    <%= 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 %>