scinote-web/app/views/projects/index/_toolbar.html.erb
Urban Rotnik 152990b4d6 Add archived mode for Projects
[SCI-5266]
2020-12-09 08:51:55 +01:00

48 lines
2.4 KiB
Text

<div id="projectsToolbar" class="projects-toolbar">
<form class="form-inline" action="<%= projects_path %>">
<div class="form-group">
<div class="new-project-actions pull-left">
<!-- new project button -->
<% if current_team && can_create_projects?(current_team) %>
<a href="#" class="btn btn-primary new-project-btn" data-view-mode="active">
<span class="fas fa-plus" aria-hidden="true"></span>
<span class="hidden-xs"><%= t('projects.index.new') %></span>
</a>
<% end %>
<!-- new project folder button -->
<% if current_team && can_create_project_folders?(current_team) %>
<a href="<%= new_project_folder_path(project_folder_id: @current_folder) %>"
data-remote="true"
class="btn btn-secondary new-project-folder-btn">
<span class="fas fa-folder" aria-hidden="true"></span>
<span class="hidden-xs"><%= t('projects.index.new_folder') %></span>
</a>
<% end %>
</div>
<div class="project-actions pull-left">
<a href="#" class="btn btn-secondary edit-project-btn single-project-action hidden" data-view-mode="active">
<span class="fas fa-folder" aria-hidden="true"></span>
<span class="hidden-xs"><%= t('projects.index.edit_button') %></span>
</a>
<a href="#" class="btn btn-secondary move-projects-btn multiple-projects-action hidden" >
<span class="fas fa-arrow-right" aria-hidden="true"></span>
<span class="hidden-xs"><%= t('projects.index.move_button') %></span>
</a>
<a href="#" class="btn btn-secondary archive-projects-btn multiple-projects-action project-only-action hidden" data-view-mode="active">
<span class="fas fa-archive" aria-hidden="true"></span>
<span class="hidden-xs"><%= t('projects.index.archive_button') %></span>
</a>
<!-- export projects button -->
<a href="#" class="btn btn-secondary export-projects-btn multiple-projects-action project-only-action hidden"
data-export-projects-modal-url="<%= export_projects_modal_team_path(current_team) %>">
<span class="fas fa-file-export"></span>
<span class="hidden-xs-custom"><%= t('projects.export_projects.export_button') %></span>
</a>
</div>
</div>
</form>
</div>