Commit 9d4e3c6854d5d587c92e9a6529b672f33a4111a7

Authored by Antonio Terceiro
1 parent 974f333d

ActionItem791: higlighting required fields

Showing 1 changed file with 4 additions and 4 deletions   Show diff stats
app/views/contact/new.rhtml
... ... @@ -7,11 +7,11 @@
7 7  
8 8 <%= required_fields_message %>
9 9  
10   - <%= f.text_field :name %>
11   - <%= f.text_field :email %>
  10 + <%= required f.text_field(:name) %>
  11 + <%= required f.text_field(:email) %>
12 12 <%= labelled_form_field _('City and state'), select_city(true) %>
13   - <%= f.text_field :subject %>
14   - <%= f.text_area :message, :rows => 10, :cols => 60 %>
  13 + <%= required f.text_field(:subject) %>
  14 + <%= required f.text_area(:message, :rows => 10, :cols => 60) %>
15 15 <%= labelled_form_field check_box(:contact, :receive_a_copy) + _('Want to receive a copy of your message in your mailbox?'), '' %>
16 16  
17 17 <%= submit_button(:send, _('Send')) %>
... ...