2019-05-20 19:13:31 +08:00
|
|
|
<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] %>"
|
2019-03-06 16:17:34 +08:00
|
|
|
data-original-name="<%= initial_value %>"
|
|
|
|
error="false"
|
|
|
|
>
|
2019-05-15 20:59:15 +08:00
|
|
|
<div class="view-mode"><%= initial_value %></div>
|
|
|
|
<input class="hidden" type="text" value="<%= initial_value %>" disabled/>
|
2019-03-06 16:17:34 +08:00
|
|
|
<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>
|
2019-05-20 19:13:31 +08:00
|
|
|
initInlineEditing('<%= @inline_editable_title_config[:name] %>')
|
|
|
|
</script>
|