mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-12 20:24:43 +08:00
13 lines
512 B
Text
13 lines
512 B
Text
<% if can_manage_protocol_in_repository?(@protocol) %>
|
|
<%= render partial: "shared/inline_editing.html.erb",
|
|
locals: {
|
|
initial_value: @protocol.name,
|
|
config: {
|
|
field_to_udpate: 'name',
|
|
params_group: 'protocol',
|
|
path_to_update: name_protocol_path(@protocol)
|
|
}
|
|
} %>
|
|
<% else %>
|
|
<span class="view-mode"><%= @protocol.name %></span>
|
|
<% end %>
|