1 <%= form_for(elm) do |f| %>
2 <%= render 'system/error_explanation', :obj => elm %>
5 <%= f.label :caption %>
6 <%= f.text_field :caption, elm.field_tag_attributes(:caption, no_attr) %>
8 <div class="row_break">
12 <%= f.number_field :x, elm.field_tag_attributes(:x, no_attr, :size => 5) %>
14 <div class="row_break">
18 <%= f.number_field :y, elm.field_tag_attributes(:y, no_attr, :size => 5) %>
20 <div class="row_break">
24 <%= f.number_field :z, elm.field_tag_attributes(:z, no_attr, :size => 5) %>
26 <div class="row_break">
30 <%= f.number_field :t, elm.field_tag_attributes(:t, no_attr, :size => 5) %>
32 <div class="row_break">
36 <%= f.number_field :width, elm.field_tag_attributes(:width, no_attr, :size => 5) %>
37 <% if elm.has_helper?(:width) %>
38 <%= render elm.form_helper_template(:width), :elm => elm, :no_attr => no_attr, :opt => {:class => "panel_picture_width_tool"} %>
41 <div class="row_break">
44 <%= f.label :height %>
45 <%= f.number_field :height, elm.field_tag_attributes(:height, no_attr, :size => 5) %>
46 <% if elm.has_helper?(:height) %>
47 <%= render elm.form_helper_template(:height), :elm => elm, :no_attr => no_attr, :opt => {:class => "panel_picture_height_tool"} %>
50 <div class="row_break">
54 <%= f.text_field :link, elm.field_tag_attributes(:link, no_attr) %>
56 <%= f.hidden_field :panel_id, elm.field_tag_attributes(:panel_id, no_attr) %>
57 <%= f.hidden_field :picture_id, elm.field_tag_attributes(:picture_id, no_attr) %>
58 <% unless elm.new_record? %>
59 <%= f.hidden_field :id, elm.field_tag_attributes(:id, no_attr) %>
63 <%= f.submit t('panel_pictures.submit'), :class => "submit" %>