blob: 9c905f5a3ea54776adb377763358b498f42fc4f4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
<%= form_for(@disposition) do |f| %>
<% if @disposition.errors.any? %>
<div id="error_explanation">
<h2><%= pluralize(@disposition.errors.count, "error") %> prohibited this disposition from being saved:</h2>
<ul>
<% @disposition.errors.full_messages.each do |message| %>
<li><%= message %></li>
<% end %>
</ul>
</div>
<% end %>
<div class="field">
<%= f.label :fingerprint %><br>
<%= f.text_field :fingerprint %>
</div>
<div class="field">
<%= f.label :state %><br>
<%= f.select :state, options_for_select(@states.collect { |s| [s[0].humanize, s[0]] }, selected: @disposition.state) %>
</div>
<div class="actions">
<%= f.submit %>
</div>
<% end %>
|