* Refactors DText form fields to use a custom SimpleForm input instead of manually generated html. This fixes it so that DText fields use the same markup as normal SimpleForm fields, which lets us apply browser maxlength validations to DText input fields. * Fixes autocomplete for @-mentions only working in comments and forum posts. Now @-mention autocomplete works in all DText fields, including dmails. Known bug: it applies in artist commentary fields when it shouldn't.
8 lines
362 B
Plaintext
8 lines
362 B
Plaintext
<%= edit_form_for(dmail) do |f| %>
|
|
<%= f.input :to_name, :label => "To", :input_html => { value: dmail.to.try(:name), data: { autocomplete: "user" } } %>
|
|
<%= f.input :title, :as => :string %>
|
|
<%= f.input :body, as: :dtext %>
|
|
<%= f.button :submit, "Send", :data => { :disable_with => "Sending..." } %>
|
|
<%= dtext_preview_button "dmail_body" %>
|
|
<% end %>
|