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.text_field :code, elm.field_tag_attributes(:code, no_attr, :size => 8) %>
13 <% if elm.has_helper?(:code) %>
14 <div class="ground_color-code-wrap">
15 <%= render elm.form_helper_template(:code), :elm => elm, :no_attr => no_attr %>
19 <div class="row_break">
23 <%= f.number_field :z, elm.field_tag_attributes(:z, no_attr, :size => 5) %>
25 <div class="row_break">
29 <%= f.number_field :t, elm.field_tag_attributes(:t, no_attr, :size => 5) %>
32 <%= f.hidden_field :panel_id, elm.field_tag_attributes(:panel_id, no_attr) %>
33 <% unless elm.new_record? %>
34 <%= f.hidden_field :id, elm.field_tag_attributes(:id, no_attr) %>
38 <%= f.submit t('ground_colors.submit'), :class => "submit" %>
41 <div class="submit-new-form" panel_id="<%= elm.tag_panel_id -%>" element_type="<%= elm.tag_element_type -%>"></div>