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) %>
10 <%= f.text_field :code, elm.field_tag_attributes(:code, no_attr, :size => 8 ) %>
11 <div class="colorpicker-wrap">
12 <div class="colorpicker" style="float: left;" <%= raw elm.field_tag_attr(:code_picker, no_attr) -%>>
13 <div id="<%= elm.tag_id(:code_red) -%>" class="colorpicker-red"></div>
14 <div id="<%= elm.tag_id(:code_green) -%>" class="colorpicker-green"></div>
15 <div id="<%= elm.tag_id(:code_blue) -%>" class="colorpicker-blue"></div>
17 <div style="float: left;">
18 <div id="<%= elm.tag_id(:code_swatch) -%>" class="ui-widget-content ui-corner-all code_swatch"></div>
20 <div style="float: left;">
21 <div id="<%= elm.tag_id(:code_hex) -%>"></div>
22 <div id="<%= elm.tag_id(:code_rgb) -%>"></div>
24 <div style="clear: both;"></div>
29 <%= f.number_field :z, elm.field_tag_attributes(:z, no_attr, :size => 5) %>
32 <%= f.number_field :t, elm.field_tag_attributes(:t, no_attr, :size => 5) %>
35 <%= f.hidden_field :panel_id, elm.field_tag_attributes(:panel_id, no_attr) %>
36 <% unless elm.new_record? %>
37 <%= f.hidden_field :id, elm.field_tag_attributes(:id, no_attr) %>
41 <%= f.submit t('ground_colors.submit'), :class => "submit" %>
44 <div class="submit-new-form" panel_id="<%= elm.tag_panel_id -%>" element_type="<%= elm.tag_element_type -%>"></div>