Sha256: e273a5421ebb8c684b90048557fe0f5d9145840054b2eefe0f80d9bb32e9319b

Contents?: true

Size: 901 Bytes

Versions: 5

Compression:

Stored size: 901 Bytes

Contents

<%= form_for([@application, @application_schedule, @tab]) do |f| %>

  <% if @tab.errors.any? %>
  <div id="errorExplanation">
    <h2><%= pluralize(@tab.errors.count, "error") %> prohibited this application schedule affinity tab from being saved:</h2>
  </div>
  <% end %>

  <%= f.hidden_field :application_schedule_id, value: @application_schedule.id %>

  <div class="field">
    <%= f.label :affinity_id, "Affinity*" %></br>
    <%= f.select(:affinity_id,
                 ::Naf::Affinity.selectable.map{
                    |a| [a.affinity_classification.affinity_classification_name + ', ' + a.affinity_name, a.id]
                 },
                 include_blank: true) %>
  </div>
  </br>

  <div class="field">
    <%= f.label :affinity_parameter %></br>
    <%= f.text_field :affinity_parameter %>
  </div>
  </br>

  <br />
  <div class="actions">
    <%= f.submit %>
  </div>
<% end %>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
naf-1.1.4 app/views/naf/application_schedule_affinity_tabs/_form.html.erb
naf-1.1.3 app/views/naf/application_schedule_affinity_tabs/_form.html.erb
naf-1.1.2 app/views/naf/application_schedule_affinity_tabs/_form.html.erb
naf-1.1.1 app/views/naf/application_schedule_affinity_tabs/_form.html.erb
naf-1.1.0 app/views/naf/application_schedule_affinity_tabs/_form.html.erb