<%= form_for(elm) do |f| %> <%= render 'system/error_explanation', :obj => elm %>
<%= f.label :caption %> <%= f.text_field :caption, elm.field_tag_attributes(:caption, no_attr) %>
<%= f.label :code %> <%= f.text_field :code, elm.field_tag_attributes(:code, no_attr, :size => 8) %> <% if elm.has_helper?(:code) %> <%= render elm.form_helper_template(:code), :elm => elm, :no_attr => no_attr %> <% end %>
<%= f.label :z %> <%= f.number_field :z, elm.field_tag_attributes(:z, no_attr, :size => 5) %> <%= f.label :t %> <%= f.number_field :t, elm.field_tag_attributes(:t, no_attr, :size => 5) %>
<%= f.hidden_field :panel_id, elm.field_tag_attributes(:panel_id, no_attr) %> <% unless elm.new_record? %> <%= f.hidden_field :id, elm.field_tag_attributes(:id, no_attr) %> <% end %>
<%= f.submit t('ground_colors.submit'), :class => "submit" %>
<% if no_attr > 0 %>
<% end %> <% end %>