Files
danbooru/app/views/dmails/_form.html.erb
evazion 5b27726635 views: fixup regressions in new dmail, new feedback forms.
Fixup regression in 59b277ead. Simpleform expected `to_name`,
`user_name` methods to exist on these models.
2019-08-18 13:33:05 -05:00

8 lines
369 B
Plaintext

<%= simple_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 %>
<%= dtext_field "dmail", "body" %>
<%= f.button :submit, "Send", :data => { :disable_with => "Sending..." } %>
<%= dtext_preview_button "dmail", "body" %>
<% end %>