Sha256: 11ba4f150b873460e0ec3c11555ba8ae0322285144cd2703cefa8541295370cb

Contents?: true

Size: 922 Bytes

Versions: 5

Compression:

Stored size: 922 Bytes

Contents

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

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

    <ul>
      <% @tab.errors.full_messages.each do |msg| %>
        <li><%= msg %></li>
      <% end %>
    </ul>
  </div>
  <% end %>

  <%= f.hidden_field :historical_job_id, value: @job.id %>

  <div class="field">
    <%= f.label :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>

  <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/historical_job_affinity_tabs/_form.html.erb
naf-1.1.3 app/views/naf/historical_job_affinity_tabs/_form.html.erb
naf-1.1.2 app/views/naf/historical_job_affinity_tabs/_form.html.erb
naf-1.1.1 app/views/naf/historical_job_affinity_tabs/_form.html.erb
naf-1.1.0 app/views/naf/historical_job_affinity_tabs/_form.html.erb