OSDN Git Service

t#29400
[pettanr/pettanr.git] / app / views / comics / _form.html.erb
1 <%= form_for(@comic) do |f| %>
2   <% if @comic.errors.any? %>
3     <div id="error_explanation">
4       <h2><%= pluralize(@comic.errors.count, "error") %> prohibited this comic from being saved:</h2>
5
6       <ul>
7       <% @comic.errors.full_messages.each do |msg| %>
8         <li><%= msg %></li>
9       <% end %>
10       </ul>
11     </div>
12   <% end %>
13
14   <div class="field">
15     <%= f.label :title %><br />
16     <%= f.text_field :title %>
17   </div>
18   <div class="field">
19     <%= f.label :visible %><br />
20     <%= f.collection_select :visible, [['only me', 0], ['everyone', 1]], :last, :first, :html => {:selected => @comic.visible} %>
21   </div>
22
23   <div class="actions">
24     <%= f.submit %>
25   </div>
26 <% end %>