Commit e9199bdd2b563ae0ed1abe99314614dc0e980528

Authored by Braulio Bhavamitra
1 parent 074724cd

Put missing required

Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
app/views/contact/new.rhtml
@@ -18,10 +18,10 @@ @@ -18,10 +18,10 @@
18 <% unless environment.enabled?('disable_select_city_for_contact') || location_fields.blank? %> 18 <% unless environment.enabled?('disable_select_city_for_contact') || location_fields.blank? %>
19 <%= labelled_form_field _('City and state'), location_fields %> 19 <%= labelled_form_field _('City and state'), location_fields %>
20 <% end %> 20 <% end %>
21 - <%= f.text_field :subject %> 21 + <%= required f.text_field(:subject) %>
22 22
23 <%= render :file => 'shared/tiny_mce' %> 23 <%= render :file => 'shared/tiny_mce' %>
24 - <%= f.text_area :message, :class => 'mceEditor' %> 24 + <%= required f.text_area(:message, :class => 'mceEditor') %>
25 25
26 <%= labelled_form_field check_box(:contact, :receive_a_copy) + _('I want to receive a copy of the message in my e-mail.'), '' %> 26 <%= labelled_form_field check_box(:contact, :receive_a_copy) + _('I want to receive a copy of the message in my e-mail.'), '' %>
27 27