eBooru/app/views/dmails/_form.html.erb

8 lines
415 B
Plaintext

<%= error_messages_for :dmail %>
<%= custom_form_for(dmail) do |f| %>
<%= f.input :to_name, label: "To", autocomplete: "user", input_html: { value: dmail.to.try(:name) } %>
<%= f.input :title, as: :string, input_html: { size: 100 } %>
<%= f.input :body, as: :dtext, limit: Danbooru.config.dmail_max_size, allow_color: false %>
<%= f.button :submit, "Send", data: { disable_with: "Sending..." } %>
<% end %>