Sha256: 3fef6daf0b90e0388f4deb08d61902ce17e9a038bb71e0d9f090bc30ca3f74f6
Contents?: true
Size: 1.02 KB
Versions: 21
Compression:
Stored size: 1.02 KB
Contents
<%# locals: post, content_label, button_text, button_submitting_text. %> <%= form_for post, url: post.submit_path, as: :post, html: { class: 'thredded--form thredded--post-form', 'data-thredded-post-form' => true, 'data-autocomplete-url' => autocomplete_users_path, 'data-autocomplete-min-length' => Thredded.autocomplete_min_length, 'data-thredded-submit-hotkey' => true, } do |form| %> <ul class="thredded--form-list"> <%= render 'thredded/posts_common/form/content', form: form, content_label: content_label, preview_url: post.preview_path %> <li> <% button_submitting_text ||= post.persisted? ? t('thredded.form.update_btn_submitting') : t('thredded.form.create_btn_submitting') %> <button type="submit" class="thredded--form--submit" data-disable-with="<%= button_submitting_text %>"> <%= button_text %> </button> </li> </ul> <% end %>
Version data entries
21 entries across 21 versions & 1 rubygems