mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-12 20:24:43 +08:00
19 lines
826 B
Text
19 lines
826 B
Text
<div
|
|
class="inline-editing-container <%= @inline_editable_title_config[:name] %>-editable-field"
|
|
data-field-to-update="<%= @inline_editable_title_config[:field_to_udpate] %>"
|
|
data-params-group="<%= @inline_editable_title_config[:params_group] %>"
|
|
data-path-to-update="<%= @inline_editable_title_config[:path_to_update] %>"
|
|
data-original-name="<%= initial_value %>"
|
|
error="false"
|
|
>
|
|
<div class="view-mode"><%= initial_value %></div>
|
|
<input class="hidden" type="text" value="<%= initial_value %>" disabled/>
|
|
<div class="button-container">
|
|
<span class="save-button"><i class="fas fa-check"></i></span>
|
|
<span class="cancel-button"><i class="fas fa-times"></i></span>
|
|
</div>
|
|
<span class="error-block"></span>
|
|
</div>
|
|
<script>
|
|
initInlineEditing('<%= @inline_editable_title_config[:name] %>')
|
|
</script>
|