mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-03-05 20:23:16 +08:00
Fix duedate for PDF and DOCX
This commit is contained in:
parent
c628fb2598
commit
9066586149
2 changed files with 9 additions and 19 deletions
|
@ -46,6 +46,9 @@ module Reports::Docx::DrawMyModule
|
||||||
text I18n.t('projects.reports.elements.module.status')
|
text I18n.t('projects.reports.elements.module.status')
|
||||||
text ' '
|
text ' '
|
||||||
text "[#{status.name}]", color: status.color.delete('#')
|
text "[#{status.name}]", color: status.color.delete('#')
|
||||||
|
if my_module.completed?
|
||||||
|
text " #{I18n.t('my_modules.states.completed')} #{I18n.l(my_module.completed_on, format: :full)}"
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@docx.p do
|
@docx.p do
|
||||||
|
|
|
@ -24,25 +24,6 @@
|
||||||
<% end %>
|
<% end %>
|
||||||
</h4>
|
</h4>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="pull-right module-start-date">
|
|
||||||
<% if my_module.started_on.present? %>
|
|
||||||
<%= t('projects.reports.elements.module.started_on', started_on: l(my_module.started_on, format: :full)) %>
|
|
||||||
<% else %>
|
|
||||||
<em><%=t "projects.reports.elements.module.no_start_date" %></em>
|
|
||||||
<% end %>
|
|
||||||
</div>
|
|
||||||
<div class="pull-right module-due-date">
|
|
||||||
<% if my_module.due_date.present? %>
|
|
||||||
<%=t "projects.reports.elements.module.due_date", due_date: l(my_module.due_date, format: :full) %>
|
|
||||||
<% else %>
|
|
||||||
<em><%=t "projects.reports.elements.module.no_due_date" %></em>
|
|
||||||
<% end %>
|
|
||||||
<% if my_module.completed? %>
|
|
||||||
<%= t("my_modules.states.completed") %>
|
|
||||||
<%= l(my_module.completed_on, format: :full) %>
|
|
||||||
<% end %>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<p class="module-start-date">
|
<p class="module-start-date">
|
||||||
<% if my_module.started_on.present? %>
|
<% if my_module.started_on.present? %>
|
||||||
|
@ -62,6 +43,12 @@
|
||||||
<% status = my_module.my_module_status %>
|
<% status = my_module.my_module_status %>
|
||||||
<%= t("projects.reports.elements.module.status") %>
|
<%= t("projects.reports.elements.module.status") %>
|
||||||
<span class="status-block" style="background: <%= status.color %>"><%= status.name %></span>
|
<span class="status-block" style="background: <%= status.color %>"><%= status.name %></span>
|
||||||
|
<% if my_module.completed? %>
|
||||||
|
<span style="margin-left: 10px;">
|
||||||
|
<%= t("my_modules.states.completed") %>
|
||||||
|
<%= l(my_module.completed_on, format: :full) %>
|
||||||
|
</span>
|
||||||
|
<% end %>
|
||||||
</p>
|
</p>
|
||||||
<div class="row module-tags">
|
<div class="row module-tags">
|
||||||
<div class="pull-left">
|
<div class="pull-left">
|
||||||
|
|
Loading…
Reference in a new issue