mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-17 14:46:00 +08:00
19 lines
667 B
Text
19 lines
667 B
Text
|
<div
|
||
|
class="inline-editing-container <%= name %>-editable-field"
|
||
|
style="width:<%= (defined? width) ? width.html_safe : '100%' %>"
|
||
|
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"
|
||
|
>
|
||
|
<input 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>
|