mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-12-09 13:46:21 +08:00
Display the ID of the parent protocol in reports [SCI-8081]
This commit is contained in:
parent
9b444cd8fb
commit
4cc953663f
2 changed files with 2 additions and 2 deletions
|
|
@ -12,7 +12,7 @@ module Reports::Docx::DrawMyModuleProtocol
|
||||||
end
|
end
|
||||||
|
|
||||||
if @settings.dig('task', 'protocol', 'description') && protocol.description.present?
|
if @settings.dig('task', 'protocol', 'description') && protocol.description.present?
|
||||||
@docx.p I18n.t('projects.reports.elements.module.protocol.user_time', code: protocol.code,
|
@docx.p I18n.t('projects.reports.elements.module.protocol.user_time', code: protocol.original_code,
|
||||||
timestamp: I18n.l(protocol.created_at, format: :full)), color: @color[:gray]
|
timestamp: I18n.l(protocol.created_at, format: :full)), color: @color[:gray]
|
||||||
html = custom_auto_link(protocol.description, team: @report_team)
|
html = custom_auto_link(protocol.description, team: @report_team)
|
||||||
Reports::HtmlToWordConverter.new(@docx, { scinote_url: @scinote_url,
|
Reports::HtmlToWordConverter.new(@docx, { scinote_url: @scinote_url,
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@
|
||||||
<% end %>
|
<% end %>
|
||||||
</h4>
|
</h4>
|
||||||
<div class="user-time">
|
<div class="user-time">
|
||||||
<%= t('projects.reports.elements.module.protocol.user_time', code: protocol.code, timestamp: l(protocol.created_at, format: :full)) %>
|
<%= t('projects.reports.elements.module.protocol.user_time', code: protocol.original_code, timestamp: l(protocol.created_at, format: :full)) %>
|
||||||
</div>
|
</div>
|
||||||
<div class="row module-protocol-description">
|
<div class="row module-protocol-description">
|
||||||
<% if @settings.dig('task', 'protocol', 'description') && protocol.description.present? %>
|
<% if @settings.dig('task', 'protocol', 'description') && protocol.description.present? %>
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue