app/views/fe/reference_pages/_reference.html.erb in fe-1.0.0 vs app/views/fe/reference_pages/_reference.html.erb in fe-2.0.0

- old
+ new

@@ -2,30 +2,30 @@ <h3><%= h reference.title %></h3> <ul class="questions"> <li> - <label for="<%= "name_#{index}" %>" class="desc"><%= _('Name') %></label> - <%= text_field_tag "references[#{index}][name]", reference.name, :class => 'text required', :id => "name_#{index}" %> + <label for="<%= "name_#{index}" %>" class="desc"><%= _("Name") %></label> + <%= text_field_tag "references[#{index}][name]", reference.name, class: "text required", id: "name_#{index}" %> </li> <li> - <label for="<%= "email_#{index}" %>" class="desc"><%= _('E-mail') %></label> + <label for="<%= "email_#{index}" %>" class="desc"><%= _("E-mail") %></label> <% if (!reference.email.blank?) %><div class="warningText">Please be aware that any changes to this email address after your reference has started filling out their form will cause their answers to be lost.</div><% end %> - <%= text_field_tag "references[#{index}][email]", reference.email, :class => 'text required validate-email', :id => "email_#{index}" %> + <%= text_field_tag "references[#{index}][email]", reference.email, class: "text required validate-email", id: "email_#{index}" %> </li> <li> -<label for="<%= "phone_#{index}" %>" class="desc"><%= _('Phone') %></label> - <%= text_field_tag "references[#{index}][phone]", reference.phone, :class => 'text required validate-phone', :id => "phone_#{index}" %> +<label for="<%= "phone_#{index}" %>" class="desc"><%= _("Phone") %></label> + <%= text_field_tag "references[#{index}][phone]", reference.phone, class: "text required validate-phone", id: "phone_#{index}" %> </li> <li> - <label for="<%= "months_known_#{index}" %>" class="desc"><%= _('Length of acquaintance') %></label> + <label for="<%= "months_known_#{index}" %>" class="desc"><%= _("Length of acquaintance") %></label> <%= select_tag "references[#{index}][months_known]", options_for_select([""] + Fe::ReferencePagesController::MONTHS_KNOWN_OPTIONS, reference.months_known), - :class => 'select validate-selection', - :id => "months_known[#{index}]" %> + class: "select validate-selection", + id: "months_known[#{index}]" %> </li> <li><p><%= _("An invitation will be sent to this reference when you submit your application. If you would " \ - "like to get a headstart, please feel free to click 'Send Email Invitation' below.") %></p></li> + "like to get a headstart, please feel free to click "Send Email Invitation" below.") %></p></li> -<li><%= submit_tag(_('Send Email Invitation')) %> - <%= _('Invitation last sent:') %> <span id="ref_last_sent_<%= reference.id %>"><% unless reference.email_sent_at.nil? -%><%= reference.email_sent_at.strftime("%Y-%m-%d @ %I:%M%p") %><% end -%></span></li> +<li><%= submit_tag(_("Send Email Invitation")) %> + <%= _("Invitation last sent:") %> <span id="ref_last_sent_<%= reference.id %>"><% unless reference.email_sent_at.nil? -%><%= reference.email_sent_at.strftime("%Y-%m-%d @ %I:%M%p") %><% end -%></span></li> </ul>