2020-10-02 20:49:08 +08:00
|
|
|
<div class="current-tasks-widget basic-widget <%= widget[:size] %>" style="order: <%= widget[:position] %>">
|
2020-02-21 17:41:42 +08:00
|
|
|
<div class="widget-header">
|
2020-02-26 22:40:28 +08:00
|
|
|
<div class="widget-title"><%= t("dashboard.current_tasks.title") %></div>
|
2020-02-21 17:41:42 +08:00
|
|
|
<div class="actions-container">
|
|
|
|
<div class="filter-container dropdown">
|
|
|
|
<div class="btn btn-light icon-btn filter-button" data-toggle="dropdown"><i class="fas fa-filter"></i></div>
|
2020-09-15 00:15:57 +08:00
|
|
|
<div class="dropdown-menu current-tasks-filters" role="menu" data-team-id="<%= current_team.id %>">
|
2020-02-21 17:41:42 +08:00
|
|
|
<div class="header">
|
|
|
|
<div class="title"><%= t("dashboard.current_tasks.filter.title") %></div>
|
2023-03-14 19:53:27 +08:00
|
|
|
<button type="button" class="close-dropdown close" aria-label="close">×</button>
|
2020-02-21 17:41:42 +08:00
|
|
|
</div>
|
|
|
|
<div class="select-block">
|
|
|
|
<label><%= t("dashboard.current_tasks.filter.sort") %></label>
|
|
|
|
<select class="sort-filter">
|
2020-07-29 22:09:23 +08:00
|
|
|
<option value="start_date" ><%= t("dashboard.current_tasks.filter.start_date") %></option>
|
|
|
|
<option value="due_date" selected><%= t("dashboard.current_tasks.filter.due_date") %></option>
|
2020-02-21 17:41:42 +08:00
|
|
|
<option value="atoz" ><%= t("dashboard.current_tasks.filter.atoz") %></option>
|
|
|
|
<option value="ztoa" ><%= t("dashboard.current_tasks.filter.ztoa") %></option>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
<div class="select-block">
|
|
|
|
<label><%= t("dashboard.current_tasks.filter.display") %></label>
|
2020-08-12 19:54:05 +08:00
|
|
|
<select class="view-filter"
|
|
|
|
data-combine-tags="true"
|
|
|
|
data-placeholder="<%= t("dashboard.current_tasks.filter.statuses.placeholder") %>"
|
|
|
|
data-select-multiple-all-selected="<%= t("dashboard.current_tasks.filter.statuses.all_selected") %>"
|
|
|
|
data-select-multiple-name="<%= t("dashboard.current_tasks.filter.statuses.selected") %>"
|
|
|
|
multiple
|
|
|
|
>
|
2020-09-25 16:14:57 +08:00
|
|
|
<% @my_module_status_flows.each do |status_flow| %>
|
2020-08-12 19:54:05 +08:00
|
|
|
<% status_flow.my_module_statuses.each do |status| %>
|
2020-09-15 00:15:57 +08:00
|
|
|
<option value="<%= status.id %>"
|
2020-09-25 16:14:57 +08:00
|
|
|
data-completion-consequence="<%= status.my_module_status_consequences.any? { |c| c.type == 'MyModuleStatusConsequences::Completion'} %>">
|
2020-09-15 00:15:57 +08:00
|
|
|
<%= status.name %>
|
|
|
|
</option>
|
2020-08-12 19:54:05 +08:00
|
|
|
<% end %>
|
|
|
|
<% end %>
|
2020-02-21 17:41:42 +08:00
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
<div class="select-block">
|
|
|
|
<label><%= t("dashboard.current_tasks.filter.project") %></label>
|
|
|
|
<select class="project-filter"
|
|
|
|
data-ajax-url="<%= project_filter_dashboard_current_tasks_path %>"
|
|
|
|
data-placeholder="<%= t("dashboard.current_tasks.filter.select_project") %>"></select>
|
|
|
|
</div>
|
|
|
|
<div class="select-block">
|
|
|
|
<label><%= t("dashboard.current_tasks.filter.experiment") %></label>
|
|
|
|
<select class="experiment-filter"
|
|
|
|
data-ajax-url="<%= experiment_filter_dashboard_current_tasks_path %>"
|
|
|
|
data-disable-on-load="true"
|
|
|
|
data-disable-placeholder="<%= t("dashboard.current_tasks.filter.select_experiment") %>"
|
|
|
|
data-placeholder="<%= t("dashboard.current_tasks.filter.select_experiment") %>"></select>
|
|
|
|
</div>
|
2021-02-15 19:40:26 +08:00
|
|
|
<div class="footer center">
|
2023-03-14 19:53:27 +08:00
|
|
|
<div class="btn btn-light clear-button"><%= t("dashboard.current_tasks.filter.clear") %></div>
|
|
|
|
<div class="btn btn-primary apply-filters"><%= t("dashboard.current_tasks.filter.show_results") %></div>
|
2020-02-21 17:41:42 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
2020-02-14 19:07:40 +08:00
|
|
|
</div>
|
2020-02-21 17:41:42 +08:00
|
|
|
<div class="search-container">
|
2020-03-03 16:50:44 +08:00
|
|
|
<div class="sci-input-container left-icon ">
|
|
|
|
<input type="text" class="sci-input-field task-search-field" placeholder="<%= t("dashboard.current_tasks.search") %>"></input>
|
|
|
|
<i class="fas fa-search"></i>
|
|
|
|
</div>
|
2020-02-14 19:07:40 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
2020-02-21 17:41:42 +08:00
|
|
|
|
|
|
|
<div class="sci-secondary-navbar current-tasks-navbar">
|
2020-03-06 20:51:18 +08:00
|
|
|
<span class="navbar-link active" data-mode="assigned"><%= t("dashboard.current_tasks.navbar.assigned") %></span>
|
|
|
|
<span class="navbar-link" data-mode="team"><%= t("dashboard.current_tasks.navbar.all") %></span>
|
2020-02-21 17:41:42 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2020-02-26 18:07:17 +08:00
|
|
|
<div class="widget-body">
|
2020-08-10 15:10:56 +08:00
|
|
|
<div class="current-tasks-list-wrapper perfect-scrollbar">
|
|
|
|
<div class="current-tasks-list "
|
|
|
|
data-tasks-list-url="<%= dashboard_current_tasks_path %>">
|
|
|
|
</div>
|
2020-02-21 17:41:42 +08:00
|
|
|
</div>
|
2020-02-14 19:07:40 +08:00
|
|
|
</div>
|
2020-02-13 20:55:25 +08:00
|
|
|
</div>
|
2020-03-12 22:00:14 +08:00
|
|
|
|
|
|
|
<template id="dashboard-current-task-no-tasks">
|
|
|
|
<div class="widget-placeholder">
|
|
|
|
<p class="widget-placeholder-title team"><%= I18n.t('dashboard.current_tasks.no_tasks.team_tasks.title') %></p>
|
|
|
|
<p class="widget-placeholder-title assigned"><%= I18n.t('dashboard.current_tasks.no_tasks.assigned_tasks.title') %></p>
|
2022-05-19 19:46:03 +08:00
|
|
|
<p class="widget-placeholder-description"><%= I18n.t('dashboard.current_tasks.no_tasks.assigned_tasks.description') %></p>
|
2020-03-12 22:00:14 +08:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<template id="dashboard-current-task-no-search-results">
|
|
|
|
<div class="widget-placeholder">
|
|
|
|
<p class="widget-placeholder-title"><%= I18n.t('dashboard.current_tasks.no_tasks.search_result.title') %></p>
|
|
|
|
</div>
|
2020-08-10 15:10:56 +08:00
|
|
|
</template>
|