mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-02 21:51:51 +08:00
b1df8c9aa7
* Adding inline editing to experiment title, project title and task title
19 lines
No EOL
667 B
Text
19 lines
No EOL
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> |