OSDN Git Service

t#32246:add sheet
[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="field">
12     <%= f.label :z %>
13     <%= f.number_field :z, elm.field_tag_attributes(:z, no_attr, :size => 5) %>
14
15     <%= f.label :t %>
16     <%= f.number_field :t, elm.field_tag_attributes(:t, no_attr, :size => 5) %>
17   </div>
18
19   <%= f.hidden_field :panel_id, elm.field_tag_attributes(:panel_id, no_attr) %>
20   <%= f.hidden_field :sheet_id, elm.field_tag_attributes(:sheet_id, no_attr) %>
21   <% unless elm.new_record?  %>
22     <%= f.hidden_field :id, elm.field_tag_attributes(:id, no_attr) %>
23   <% end %>
24
25   <div class="actions">
26     <%= f.submit t('sheet_panels.submit'), :class => "submit" %>
27   </div>
28 <% end %>