<%= 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 %>
