scinote-web/app/views/shared/_inline_editing.html.erb

20 lines
949 B
Text
Raw Normal View History

<div
data-e2e="e2e-CO-invInventory-<%= config[:item_id] %>"
2019-11-12 18:26:18 +08:00
class="inline-editing-container inline-init-handler"
2019-11-03 21:59:30 +08:00
data-field-to-update="<%= config[:field_to_udpate] %>"
data-params-group="<%= config[:params_group] %>"
data-item-id="<%= config[:item_id] %>"
2019-11-03 21:59:30 +08:00
data-path-to-update="<%= config[:path_to_update] %>"
data-original-name="<%= initial_value %>"
data-label-after='<%= config[:label_after] %>'
2019-11-15 23:23:48 +08:00
data-placeholder='<%= config[:placeholder] %>'
>
<div class="view-mode" data-placeholder="<%= config[:placeholder] %>" tabindex=0><%= initial_value %></div>
2023-09-19 19:13:52 +08:00
<input placeholder="<%= config[:placeholder] %>" class="hidden input-field" type="text" value="<%= initial_value %>" disabled/>
<div class="button-container hidden">
2023-06-15 21:12:51 +08:00
<span class="save-button"><i class="sn-icon sn-icon-check"></i></span>
2023-06-08 23:33:50 +08:00
<span class="cancel-button"><i class="sn-icon sn-icon-close"></i></span>
</div>
<span class="error-block"></span>
</div>