2017-03-08 20:18:20 +08:00
|
|
|
<%= bootstrap_form_for(:comment, url: @update_url, remote: true, html: { method: :put, class: 'comment-form edit-comment-form' }, data: { role: 'edit-comment-message-form' }) do |f| %>
|
2016-08-24 23:38:31 +08:00
|
|
|
<div class="form-group">
|
|
|
|
<div class="input-group">
|
2017-01-11 21:56:47 +08:00
|
|
|
<%= f.smart_text_area :message,
|
|
|
|
single_line: true,
|
|
|
|
autofocus: true,
|
|
|
|
hide_label: true,
|
|
|
|
data: { role: 'message-input', 'atwho-edit' => '' },
|
|
|
|
value: @comment.message %>
|
2016-08-24 23:38:31 +08:00
|
|
|
<span class="input-group-btn">
|
|
|
|
<a class="btn btn-default" data-action="save">
|
2018-07-09 19:13:44 +08:00
|
|
|
<span class="fas fa-check"></span>
|
2016-08-24 23:38:31 +08:00
|
|
|
</a>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
<span class="help-block hide"></span>
|
2018-11-13 23:57:42 +08:00
|
|
|
<a data-action="cancel" data-turbolinks="false" href="#"><%= t('general.cancel') %></a>
|
2016-08-24 23:38:31 +08:00
|
|
|
</div>
|
2017-01-11 21:56:47 +08:00
|
|
|
<% end %>
|