Sha256: d1001e320cbd1da8f0da8e948306dfa1b0449ff88ddc4e8b35689fbc3470de71

Contents?: true

Size: 937 Bytes

Versions: 5

Compression:

Stored size: 937 Bytes

Contents

<%= form_for([@machine, @slot]) do |f| %>

  <% if @slot.errors.any? %>
  <div id="errorExplanation">
    <h2><%= pluralize(@slot.errors.count, "error") %> prohibited this Machine Affinity Slot from being saved:</h2>
  </div>
  <% end %>

  <%= f.hidden_field :machine_id, value: @machine.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>

  <div class="field">
    <%= f.label :required %></br>
    <%= f.check_box :required %>
  </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/machine_affinity_slots/_form.html.erb
naf-1.1.3 app/views/naf/machine_affinity_slots/_form.html.erb
naf-1.1.2 app/views/naf/machine_affinity_slots/_form.html.erb
naf-1.1.1 app/views/naf/machine_affinity_slots/_form.html.erb
naf-1.1.0 app/views/naf/machine_affinity_slots/_form.html.erb