OSDN Git Service

Merge branch 'v06sheet' of git.sourceforge.jp:/gitroot/pettanr/pettanr into v06sheet
[pettanr/pettanr.git] / app / views / sheet_panels / _form.html.erb
1 <%= form_for(elm) do |f| %>
2   <%= render 'system/error_explanation', :obj => elm %>
3
4   <div class="field">
5     <%= f.label :sheet_id %>
6     <% if elm.new_record? %>
7       <%= f.number_field :sheet_id %>
8     <% else %>
9       <%= f.number_field :sheet_id, elm.field_tag_attributes(:sheet_id, no_attr) %>
10     <% end %>
11
12     <%= f.label :panel_id %>
13     <% if elm.new_record? %>
14       <%= f.number_field :panel_id %>
15     <% else %>
16       <%= f.number_field :panel_id, elm.field_tag_attributes(:panel_id, no_attr) %>
17     <% end %>
18   </div>
19   <div class="field">
20     <%= f.label :x %>
21     <% if elm.new_record? %>
22       <%= f.number_field :x %>
23     <% else %>
24       <%= f.number_field :x, elm.field_tag_attributes(:x, no_attr, :size => 5) %>
25     <% end %>
26
27     <%= f.label :y %>
28     <% if elm.new_record? %>
29       <%= f.number_field :y %>
30     <% else %>
31       <%= f.number_field :y, elm.field_tag_attributes(:y, no_attr, :size => 5) %>
32     <% end %>
33   </div>
34   <div class="row_break">
35   </div>
36   <div class="field">
37     <%= f.label :z %>
38     <% if elm.new_record? %>
39       <%= f.number_field :z %>
40     <% else %>
41       <%= f.number_field :z, elm.field_tag_attributes(:z, no_attr, :size => 5) %>
42     <% end %>
43
44     <%= f.label :t %>
45     <% if elm.new_record? %>
46       <%= f.number_field :t %>
47     <% else %>
48       <%= f.number_field :t, elm.field_tag_attributes(:t, no_attr, :size => 5) %>
49     <% end %>
50   </div>
51   <div class="row_break">
52   </div>
53
54   <% unless elm.new_record?  %>
55     <%= f.hidden_field :id, elm.field_tag_attributes(:id, no_attr) %>
56   <% end %>
57
58   <div class="actions">
59     <%= f.submit t('sheet_panels.submit'), :class => "submit" %>
60   </div>
61 <% end %>