OSDN Git Service

merge 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 :x %>
6     <%= f.number_field :x, elm.field_tag_attributes(:x, no_attr, :size => 5) %>
7
8     <%= f.label :y %>
9     <%= f.number_field :y, elm.field_tag_attributes(:y, no_attr, :size => 5) %>
10   </div>
11   <div class="row_break">
12   </div>
13   <div class="field">
14     <%= f.label :z %>
15     <%= f.number_field :z, elm.field_tag_attributes(:z, no_attr, :size => 5) %>
16
17     <%= f.label :t %>
18     <%= f.number_field :t, elm.field_tag_attributes(:t, no_attr, :size => 5) %>
19   </div>
20   <div class="row_break">
21   </div>
22
23   <%= f.hidden_field :panel_id, elm.field_tag_attributes(:panel_id, no_attr) %>
24   <%= f.hidden_field :sheet_id, elm.field_tag_attributes(:sheet_id, no_attr) %>
25   <% unless elm.new_record?  %>
26     <%= f.hidden_field :id, elm.field_tag_attributes(:id, no_attr) %>
27   <% end %>
28
29   <div class="actions">
30     <%= f.submit t('sheet_panels.submit'), :class => "submit" %>
31   </div>
32 <% end %>