Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Adding placeholder text to form

  • Loading branch information...
commit de58df120846a5702c36692428b6dff930e42709 1 parent 62b45a9
@nahurst authored
Showing with 6 additions and 7 deletions.
  1. +6 −7 app/views/mail_merges/_form.html.erb
View
13 app/views/mail_merges/_form.html.erb
@@ -11,7 +11,6 @@
</div>
<% end %>
-
<%= f.hidden_field :data %>
<table id="pulled_data" style="display: none">
<thead>
@@ -22,17 +21,17 @@
<div class="field">
<%= f.label :from %>
- <%= f.text_field :from %>
+ <%= f.text_field :from, :placeholder => "you@wherever.com" %>
</div>
<div class="field">
- <%= f.label :subject_template %>
- <%= f.text_field :subject_template %>
+ <%= f.label :subject_template, "Subject template (Mustache)" %>
+ <%= f.text_field :subject_template, :placeholder => "Hi {{name}}" %>
</div>
<div class="field">
- <%= f.label :body_template %>
- <%= f.text_area :body_template %>
+ <%= f.label :body_template, "Body template (HTML + Mustache)" %>
+ <%= f.text_area :body_template, :placeholder => "Hi {{name}}, Great to see you!" %>
</div>
<div class="actions">
- <%= f.submit %>
+ <%= f.submit "Send mail now", :class => "button" %>
</div>
<% end %>
Please sign in to comment.
Something went wrong with that request. Please try again.