Sha256: 64418e2576d1f0478df52e857ab78edd0caf0d29cf0e860b350c95a4a0b99d1a

Contents?: true

Size: 1.8 KB

Versions: 1

Compression:

Stored size: 1.8 KB

Contents

<% index = reference.applicant_answer_sheet_id -%>

<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}" %>
</li>
<li>
  <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}" %>
</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}" %>
</li>
<li>
  <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}]" %>
</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>

<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>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fe-1.0.0 app/views/fe/reference_pages/_reference.html.erb