scinote-web/app/views/shared/_inline_editing.html.erb
aignatov-bio 24e30867da
Add smart annotation to comments [SCI-3458] (#1768)
* Add smart annotation to comments
2019-05-15 14:59:15 +02:00

19 lines
No EOL
666 B
Text

<div
class="inline-editing-container <%= name %>-editable-field"
data-field-to-update="<%= field_to_udpate %>"
data-params-group="<%= params_group %>"
data-path-to-update="<%= 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('<%= name %>')
</script>