mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-10-07 20:40:26 +08:00
Add item field to shared tasks [SCI-11689]
This commit is contained in:
parent
70b07d4c55
commit
ecf513db6d
4 changed files with 13 additions and 1 deletions
|
@ -8,7 +8,7 @@
|
||||||
:excludeRows="assignedIds"
|
:excludeRows="assignedIds"
|
||||||
@close="rowSelectorOpened = false"
|
@close="rowSelectorOpened = false"
|
||||||
@save="addValue" />
|
@save="addValue" />
|
||||||
<div class="flex items-center gap-2 mt-4 flex-wrap">
|
<div v-if="field.field_value" class="flex items-center gap-2 mt-4 flex-wrap">
|
||||||
<template v-for="(row, index) in field.field_value.value" :key="row.id">
|
<template v-for="(row, index) in field.field_value.value" :key="row.id">
|
||||||
<div class="flex items-center gap-2">
|
<div class="flex items-center gap-2">
|
||||||
<span v-if="index > 0">|</span>
|
<span v-if="index > 0">|</span>
|
||||||
|
|
|
@ -25,6 +25,10 @@ class FormRepositoryRowsFieldValue < FormFieldValue
|
||||||
data
|
data
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def formatted
|
||||||
|
value&.map { |i| "#{i['name']} (IT#{i['id']})" }&.join(' | ')
|
||||||
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
def repository_row_snapshots(repository_row_ids)
|
def repository_row_snapshots(repository_row_ids)
|
||||||
|
|
|
@ -62,6 +62,13 @@
|
||||||
<% else %>
|
<% else %>
|
||||||
—
|
—
|
||||||
<% end %>
|
<% end %>
|
||||||
|
<% if field_value && field_value.submitted_at %>
|
||||||
|
<div class="text-sn-grey-700 text-xs text-right w-full mt-2">
|
||||||
|
<span class='iso-formatted-date'><%= field_value.submitted_at.iso8601 %></span>
|
||||||
|
<%= I18n.t('forms.fields.by') %>
|
||||||
|
<span ><%= field_value.submitted_by.full_name %></span>
|
||||||
|
</div>
|
||||||
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1102,6 +1102,7 @@ en:
|
||||||
add_number: "Add number"
|
add_number: "Add number"
|
||||||
from: "From"
|
from: "From"
|
||||||
submitted_by: "%{date} by %{user}"
|
submitted_by: "%{date} by %{user}"
|
||||||
|
by: "by"
|
||||||
to: "To"
|
to: "To"
|
||||||
add_date: "Add date"
|
add_date: "Add date"
|
||||||
add_datetime: "Add date & time"
|
add_datetime: "Add date & time"
|
||||||
|
|
Loading…
Add table
Reference in a new issue