scinote-web/app/views/my_modules/_my_module_details.html.erb

55 lines
2.3 KiB
Text
Raw Normal View History

<% my_module_editable = can_manage_my_module?(@my_module) %>
2020-03-28 00:35:24 +08:00
2020-04-01 19:05:35 +08:00
<div class="flex-block date-block">
<div class="flex-block-label">
2023-06-22 17:55:23 +08:00
<span class="sn-icon block-icon sn-icon-calendar mr-2.5"></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", 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" >
<div class="flex-block-label">
2023-06-22 17:55:23 +08:00
<span class="sn-icon block-icon sn-icon-calendar mr-2.5"></span>
<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", locals: { my_module: @my_module } %>
</div>
</div>
<% if @my_module.completed? %>
<div class="flex-block date-block" >
<div class="flex-block-label">
2023-07-24 19:16:07 +08:00
<span class="sn-icon sn-icon-calendar mr-2.5"></span>
<span class="hidden-xs hidden-sm hidden-md"><%= t('my_modules.details.completed_date') %></span>
</div>
<div class="datetime-container">
<span class="date-text">
<%= l(@my_module.completed_on, format: :full) %>
</span>
</div>
</div>
<% end %>
<div class="module-tags">
<div class="tags-wrapper">
2023-06-15 21:12:51 +08:00
<span class="sn-icon block-icon sn-icon-users mr-2.5"></span>
<span class="hidden-xs hidden-sm mr-1"><%= t('my_modules.details.assigned_users') %></span>
<%= render partial: "user_my_modules/index", locals: { my_module: @my_module } %>
</div>
</div>
<div class="module-tags">
<div class="tags-wrapper" id="module-tags" data-module-tags-url="<%= my_module_my_module_tags_url(@my_module, format: :json) %>">
2023-06-15 21:12:51 +08:00
<span class="sn-icon block-icon sn-icon-tag mr-2.5"></span>
<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>
<!-- Manage tags modal -->
<%= render partial: "my_modules/modals/manage_module_tags_modal", locals: { my_module: @my_module } %>