mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-14 21:24:54 +08:00
15 lines
668 B
Text
15 lines
668 B
Text
<% if can_manage_protocol_in_repository?(@protocol) && editable %>
|
|
<%= render partial: "shared/inline_editing.html.erb",
|
|
locals: {
|
|
initial_value: @protocol.authors,
|
|
config: {
|
|
field_to_udpate: 'authors',
|
|
params_group: 'protocol',
|
|
placeholder: t("protocols.header.no_authors"),
|
|
path_to_update: authors_protocol_path(@protocol)
|
|
}
|
|
}
|
|
%>
|
|
<% else %>
|
|
<span class="view-mode"><%= @protocol.authors || t("protocols.header.no_authors") %></span>
|
|
<% end %>
|