2020-03-28 00:35:24 +08:00
|
|
|
<% my_module_editable = can_manage_module?(@my_module) %>
|
|
|
|
|
2020-04-01 19:05:35 +08:00
|
|
|
<div class="flex-block date-block">
|
2020-05-07 22:11:22 +08:00
|
|
|
<div class="flex-block-label">
|
|
|
|
<span class="fas block-icon fa-calendar-alt"></span>
|
|
|
|
<span class="hidden-xs hidden-sm hidden-md"><%= t('my_modules.details.start_date') %></span>
|
|
|
|
</div>
|
2020-04-01 19:05:35 +08:00
|
|
|
<div id="startDateContainer" class="datetime-container" data-update-url="<%= my_module_path(@my_module, format: :json) %>">
|
|
|
|
<%= render partial: "module_header_start_date.html.erb", locals: { my_module: @my_module } %>
|
2016-02-12 23:52:43 +08:00
|
|
|
</div>
|
2020-04-01 19:05:35 +08:00
|
|
|
</div>
|
2016-02-12 23:52:43 +08:00
|
|
|
|
2020-04-01 19:05:35 +08:00
|
|
|
<div class="flex-block date-block" >
|
2020-05-07 22:11:22 +08:00
|
|
|
<div class="flex-block-label">
|
2020-05-21 14:37:40 +08:00
|
|
|
<span class="fas block-icon fa-calendar-day"></span>
|
2020-05-07 22:11:22 +08:00
|
|
|
<span class="hidden-xs hidden-sm hidden-md"><%= t('my_modules.details.due_date') %></span>
|
|
|
|
</div>
|
2020-04-01 19:05:35 +08:00
|
|
|
<div id="dueDateContainer" class="datetime-container" data-update-url="<%= my_module_path(@my_module, format: :json) %>">
|
|
|
|
<%= render partial: "module_header_due_date.html.erb", locals: { my_module: @my_module } %>
|
2017-02-10 21:27:20 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
2019-05-06 22:20:00 +08:00
|
|
|
|
2020-04-08 22:24:59 +08:00
|
|
|
<div class="flex-block">
|
|
|
|
<div class="flex-block-label">
|
|
|
|
<span class="fas block-icon fa-users"></span>
|
2020-05-07 22:11:22 +08:00
|
|
|
<span class="hidden-xs hidden-sm"><%= t('my_modules.details.assigned_users') %></span>
|
2020-04-08 22:24:59 +08:00
|
|
|
</div>
|
2020-04-14 23:25:36 +08:00
|
|
|
<%= render partial: "user_my_modules/index" %>
|
2020-04-08 22:24:59 +08:00
|
|
|
</div>
|
|
|
|
|
2019-05-06 22:20:00 +08:00
|
|
|
<div class="module-tags">
|
|
|
|
<div id="module-tags" data-module-tags-url="<%= my_module_my_module_tags_url(@my_module, format: :json) %>">
|
2019-11-21 19:14:43 +08:00
|
|
|
<span class="fas block-icon fa-tags"></span>
|
2020-05-07 22:11:22 +08:00
|
|
|
<span class="hidden-xs hidden-sm tags-title"><%=t "my_modules.details.tags" %></span>
|
2020-03-28 00:35:24 +08:00
|
|
|
<%= render partial: "my_modules/tags", locals: { my_module: @my_module, editable: my_module_editable } %>
|
2016-02-12 23:52:43 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2020-04-08 22:24:59 +08:00
|
|
|
<!-- Manage users modal -->
|
|
|
|
<%= render partial: "my_modules/modals/manage_users_modal" %>
|
|
|
|
|
2016-02-12 23:52:43 +08:00
|
|
|
<!-- Manage tags modal -->
|
|
|
|
<%= render partial: "my_modules/modals/manage_module_tags_modal", locals: { my_module: @my_module } %>
|