Sha256: d0f71d737d91c7594998219bf65c6b7b07736662df16a322b14b5f11dfeb9527
Contents?: true
Size: 1.16 KB
Versions: 23
Compression:
Stored size: 1.16 KB
Contents
<%= form_for(@affinity) do |f| %> <% if @affinity.errors.any? %> <div id="errorExplanation"> <h2><%= pluralize(@affinity.errors.count, "error") %> prohibited Affinity from being saved:</h2> <ul> <% @affinity.errors.full_messages.each do |msg| %> <li><%= msg %></li> <% end %> </ul> </div> <% end %> <div class="field"> <%= f.label :affinity_name, "Name*" %><br /> <%= f.text_field :affinity_name %> </div> </br> <div class="field"> <%= f.label :affinity_short_name %><br /> <%= f.text_field :affinity_short_name %> </div> </br> <div class="field"> <%= f.label :affinity_classification_id, "Classification*" %><br /> <%= f.select(:affinity_classification_id, Naf::AffinityClassification.all.map{ |a| [a.affinity_classification_name, a.id] }, { include_blank: true }) %> </div> </br> <div class="field"> <%= f.label :affinity_note %><br /> <%= f.text_field :affinity_note %> </div> </br> <div class="field"> <%= f.label :selectable %></br /> <%= f.check_box :selectable %> </div> </br> <div class="actions"> <%= f.submit %> </div> <% end %>
Version data entries
23 entries across 23 versions & 1 rubygems