<% if current_team && can_create_projects?(current_team) %> <%= link_to new_project_path(project_folder_id: current_folder), class: 'btn btn-primary new-project-btn', title: t('projects.index.new_tooltip'), data: { view_mode: 'active' }, remote: true do %> <% end %> <% end %> <% if current_team && can_create_project_folders?(current_team) %> <%= link_to new_project_folder_path(project_folder_id: current_folder, view_mode: projects_view_mode), class: 'btn btn-light new-project-folder-btn', title: t('projects.index.new_folder_tooltip'), remote: true do %> <% end %> <% end %> <%= render layout: 'shared/view_switch', locals: { disabled: false, name: t("toolbar.#{@current_view_type}_view") } do %>
  • <%= button_to(view_type_projects_path(format: :json), method: :put, remote: true, class: "btn btn-light button-to #{ @current_view_type == 'table' ? 'selected' : ''} prevent-shrink", form_class: 'change-projects-view-type-form', params: { projects: { view_type: 'table' } }) do %> <%= t('toolbar.table_view') %> <% end %>
  • <%= button_to(view_type_projects_path(format: :json), method: :put, remote: true, class: "btn btn-light button-to #{ @current_view_type == 'cards' ? 'selected' : ''} prevent-shrink", form_class: 'change-projects-view-type-form', params: { projects: { view_type: 'cards' } }) 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: projects_path(view_mode: :active), archived_url: projects_path(view_mode: :archived), } %>
    <%= render layout: 'shared/filter_dropdown', locals: { container_class: 'projects-filters', dropdown_title: t("filters_modal.title"), search_field_history_key: 'project_filters_per_team' } do %> <%= render partial: 'shared/filter_dropdown/text_search', locals: {container_class: ''} %> <%= render partial: 'shared/filter_dropdown/datetime_search', locals: {container_class: 'created-on-filter', label: t("filters_modal.created_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' } %>
    <%= check_box_tag :folder_search, 'accepted', false, {class: "sci-checkbox"} %> <%= t("projects.index.filters_modal.folders.label") %> <% end %>