refactored dtext field helper
This commit is contained in:
@@ -1,9 +1,7 @@
|
||||
<%= simple_form_for(dmail) do |f| %>
|
||||
<%= f.input :to_name, :label => "To" %>
|
||||
<%= f.input :title %>
|
||||
|
||||
<%= render "dtext/form", :name => "Body", :input_id => "dmail_body", :input_name => "dmail[body]", :value => dmail.body, :preview_id => "dtext-preview" %>
|
||||
|
||||
<%= dtext_field "dmail", "body" %>
|
||||
<%= f.button :submit, "Send" %>
|
||||
<%= f.button :submit, "Preview", "data-input-id" => "dmail_body", "data-preview-id" => "dtext-preview" %>
|
||||
<%= dtext_preview_button "dmail", "body" %>
|
||||
<% end %>
|
||||
|
||||
Reference in New Issue
Block a user