2020-12-08 15:30:47 +08:00
|
|
|
<div class="content-header">
|
|
|
|
<h1 data-view-mode="active"><%= t('projects.index.head_title') %></h1>
|
|
|
|
<h1 data-view-mode="archived"><i class="fas fa-archive"></i> <%= t('projects.index.head_title') %></h1>
|
|
|
|
|
2020-12-18 06:13:45 +08:00
|
|
|
<div class="sci-btn-group header-actions">
|
|
|
|
<div class="filter-container dropdown project-filters-dropdown">
|
|
|
|
<button class="btn btn-light icon-btn filter-button" data-toggle="dropdown"><i class="fas fa-filter"></i></button>
|
|
|
|
<div class="dropdown-menu dropdown-menu-right projects-filters" role="menu" data-team-id="<%= current_team.id %>">
|
|
|
|
<div class="header">
|
|
|
|
<div class="title"><%= t("projects.index.filters_modal.title") %></div>
|
|
|
|
<div class="btn btn-light clear-button">
|
|
|
|
<i class="fas fa-times-circle"></i><%= t("projects.index.filters_modal.clear_btn") %></div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="select-block dropdown-selector-container">
|
|
|
|
<label><%= t('projects.index.filters_modal.text.label') %></label>
|
|
|
|
<div class="input-field dropdown text-search-filter">
|
|
|
|
<input id="textSearchFilterInput"
|
|
|
|
class="dropdown-toggle search-field"
|
|
|
|
type="text"
|
|
|
|
name="search"
|
|
|
|
autocomplete="off"
|
|
|
|
data-toggle="dropdown"
|
|
|
|
placeholder="<%= t('projects.index.filters_modal.text.placeholder') %>">
|
2020-12-08 15:30:47 +08:00
|
|
|
</div>
|
2020-12-18 06:13:45 +08:00
|
|
|
<div id="textSearchFilterHistory" class="dropdown-menu recent-searches" aria-labelledby="textSearchFilterInput">
|
|
|
|
<label><%= t("projects.index.filters_modal.recent_searches_label") %></label>
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-12-08 15:30:47 +08:00
|
|
|
|
2020-12-18 06:13:45 +08:00
|
|
|
<div class="select-block">
|
|
|
|
<div class="created-on-label">
|
|
|
|
<label><%= t("projects.index.filters_modal.created_on.label") %></label>
|
|
|
|
</div>
|
|
|
|
<div class="datetime-picker-container" id="from-date">
|
|
|
|
<span class="fas fa-calendar-alt"></span>
|
|
|
|
<input id="createdOnStartDate"
|
|
|
|
type="datetime"
|
|
|
|
data-toggle='date-time-picker'
|
|
|
|
class="form-control calendar-input"
|
|
|
|
readonly
|
|
|
|
placeholder="<%= t('projects.index.filters_modal.created_on.from_placeholder') %>"
|
|
|
|
data-date-format="<%= datetime_picker_format_full %>"
|
|
|
|
data-date-locale="<%= I18n.locale %>"
|
|
|
|
data-date-use-current="false"
|
|
|
|
value=""/>
|
2020-12-08 15:30:47 +08:00
|
|
|
</div>
|
|
|
|
|
2020-12-18 06:13:45 +08:00
|
|
|
<div class="connect-line"></div>
|
2020-12-08 15:30:47 +08:00
|
|
|
|
2020-12-18 06:13:45 +08:00
|
|
|
<div class="datetime-picker-container" id="to-date">
|
|
|
|
<span class="fas fa-calendar-alt"></span>
|
|
|
|
<input id="createdOnEndDate"
|
|
|
|
type="datetime"
|
|
|
|
data-toggle='date-time-picker'
|
|
|
|
class="form-control calendar-input"
|
|
|
|
readonly
|
|
|
|
placeholder="<%= t('projects.index.filters_modal.created_on.to_placeholder') %>"
|
|
|
|
data-date-format="<%= datetime_picker_format_full %>"
|
|
|
|
data-date-locale="<%= I18n.locale %>"
|
|
|
|
data-date-use-current="false"
|
|
|
|
data-date-orientation="left"
|
|
|
|
value=""/>
|
2020-12-08 15:30:47 +08:00
|
|
|
</div>
|
2020-12-18 06:13:45 +08:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="select-block">
|
|
|
|
<label><%= t("projects.index.filters_modal.members.label") %></label>
|
|
|
|
<select class="members-filter"
|
|
|
|
data-ajax-url="<%= users_filter_projects_path %>"
|
|
|
|
data-placeholder="<%= t('projects.index.filters_modal.members.placeholder') %>">
|
|
|
|
</select>
|
|
|
|
</div>
|
2020-12-08 15:30:47 +08:00
|
|
|
|
2020-12-18 06:13:45 +08:00
|
|
|
<div class="select-block" data-view-mode="archived">
|
|
|
|
<div class="created-on-label">
|
|
|
|
<label><%= t("projects.index.filters_modal.archived_on.label") %></label>
|
|
|
|
</div>
|
|
|
|
<div class="datetime-picker-container" id="from-date">
|
|
|
|
<span class="fas fa-calendar-alt"></span>
|
|
|
|
<input id="archivedOnStartDate"
|
|
|
|
type="datetime"
|
|
|
|
data-toggle='date-time-picker'
|
|
|
|
class="form-control calendar-input"
|
|
|
|
readonly
|
|
|
|
placeholder="<%= t('projects.index.filters_modal.created_on.from_placeholder') %>"
|
|
|
|
data-date-format="<%= datetime_picker_format_full %>"
|
|
|
|
data-date-locale="<%= I18n.locale %>"
|
|
|
|
data-date-use-current="false"
|
|
|
|
value=""/>
|
2020-12-08 15:30:47 +08:00
|
|
|
</div>
|
|
|
|
|
2020-12-18 06:13:45 +08:00
|
|
|
<div class="connect-line"></div>
|
2020-12-08 15:30:47 +08:00
|
|
|
|
2020-12-18 06:13:45 +08:00
|
|
|
<div class="datetime-picker-container" id="to-date">
|
|
|
|
<span class="fas fa-calendar-alt"></span>
|
|
|
|
<input id="archivedOnEndDate"
|
|
|
|
type="datetime"
|
|
|
|
data-toggle='date-time-picker'
|
|
|
|
class="form-control calendar-input"
|
|
|
|
readonly
|
|
|
|
placeholder="<%= t('projects.index.filters_modal.created_on.to_placeholder') %>"
|
|
|
|
data-date-format="<%= datetime_picker_format_full %>"
|
|
|
|
data-date-locale="<%= I18n.locale %>"
|
|
|
|
data-date-use-current="false"
|
|
|
|
data-date-orientation="left"
|
|
|
|
value=""/>
|
2020-12-08 15:30:47 +08:00
|
|
|
</div>
|
2020-12-18 06:13:45 +08:00
|
|
|
</div>
|
2020-12-08 15:30:47 +08:00
|
|
|
|
2020-12-18 06:13:45 +08:00
|
|
|
<div class="select-block folders">
|
2020-12-08 15:30:47 +08:00
|
|
|
<span class="sci-checkbox-container">
|
|
|
|
<%= check_box_tag :folder_search, 'accepted', false, {class: "sci-checkbox"} %>
|
|
|
|
<span class="sci-checkbox-label"></span>
|
|
|
|
</span>
|
2020-12-18 06:13:45 +08:00
|
|
|
<span class="folder-search-label"><%= t("projects.index.filters_modal.folders.label") %></span>
|
|
|
|
<div class="dropdown folder-search-info">
|
|
|
|
<a class="fas fa-info-circle" id="folderSearchInfoBtn" data-toggle="dropdown"></a>
|
|
|
|
<div id="folderSearchInfo" class="dropdown-menu folder-search-popover" aria-labelledby="folderSearchInfo">
|
|
|
|
<%= t("projects.index.filters_modal.folders.popover_html") %>
|
|
|
|
</div>
|
2020-12-08 15:30:47 +08:00
|
|
|
</div>
|
|
|
|
|
2020-12-18 06:13:45 +08:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="footer">
|
|
|
|
<div id="applyProjectFiltersButton" class="btn btn-primary"><%= t("projects.index.filters_modal.show_btn.one") %></div>
|
2020-12-08 15:30:47 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-12-18 06:13:45 +08:00
|
|
|
|
2020-12-17 01:32:07 +08:00
|
|
|
<div class="dropdown view-switch sort-switch">
|
2020-12-18 06:13:45 +08:00
|
|
|
<button class="btn btn-light dropdown-toggle" type="button" id="sortMenu" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
|
2020-12-17 01:32:07 +08:00
|
|
|
<span><i class="fas fa-sort-amount-down"></i></span>
|
2020-12-18 06:13:45 +08:00
|
|
|
<span class="caret"></span>
|
|
|
|
</button>
|
2020-12-17 01:32:07 +08:00
|
|
|
<ul id="sortMenuDropdown" class="dropdown-menu sort-projects-menu" aria-labelledby="sortMenu">
|
2020-12-18 06:13:45 +08:00
|
|
|
<% %w(new old atoz ztoa archived_first archived_last).each do |sort| %>
|
2020-12-17 01:32:07 +08:00
|
|
|
<li data-sort="<%= sort %>"
|
|
|
|
<%= %w(archived_first archived_last).include?(sort) ? 'data-view-mode=archived' : '' %>
|
|
|
|
class="<%= @current_sort == sort ? 'active' : '' %>">
|
|
|
|
|
|
|
|
<%= t("projects.index.sort.#{sort}") %>
|
2020-12-18 06:13:45 +08:00
|
|
|
</li>
|
|
|
|
<% end %>
|
|
|
|
</ul>
|
2020-12-08 15:30:47 +08:00
|
|
|
</div>
|
2020-12-18 06:13:45 +08:00
|
|
|
|
2020-12-10 18:39:45 +08:00
|
|
|
<%= render layout: 'shared/view_switch', locals: { disabled: false } do %>
|
2020-12-08 15:30:47 +08:00
|
|
|
<li class="view-switch-cards projects-view-mode active">
|
2020-12-10 18:39:45 +08:00
|
|
|
<i class="fas fa-th-large button-icon"></i> <%= t('projects.index.header.cards') %>
|
2020-12-08 15:30:47 +08:00
|
|
|
</li>
|
|
|
|
|
|
|
|
<li class="view-switch-list projects-view-mode ">
|
2020-12-10 18:39:45 +08:00
|
|
|
<i class="fas fa-list button-icon"></i> <%= t('projects.index.header.table') %>
|
2020-12-08 15:30:47 +08:00
|
|
|
</li>
|
|
|
|
|
2020-12-17 01:32:07 +08:00
|
|
|
<li class="view-switch-active archive-switch" data-view-mode="archived" data-url="<%= projects_path(mode: 'active') %>">
|
2020-12-10 18:39:45 +08:00
|
|
|
<i class="fas fa-rocket button-icon"></i> <%= t('projects.index.header.active_projects') %>
|
2020-12-08 15:30:47 +08:00
|
|
|
</li>
|
|
|
|
|
2020-12-17 01:32:07 +08:00
|
|
|
<li class="view-switch-archived archive-switch" data-view-mode="active" data-url="<%= projects_path(mode: 'archived') %>">
|
2020-12-10 18:39:45 +08:00
|
|
|
<i class="fas fa-archive button-icon"></i> <%= t('projects.index.header.archived_projects') %>
|
2020-12-08 15:30:47 +08:00
|
|
|
</li>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
</div>
|