1 <%= form_for(@panel) do |f| %>
2 <%= render 'system/error_explanation', :obj => @panel %>
5 <%= f.label :caption %><br />
6 <%= f.text_field :caption %>
9 <%= f.label :width %><br />
10 <%= f.number_field :width %>
13 <%= f.label :height %><br />
14 <%= f.number_field :height %>
17 <%= f.label :border %><br />
18 <%= f.number_field :border %>
21 <%= f.label :publish %><br />
22 <%= f.collection_select :publish, t_select_items(MagicNumber['panel_visible_items']), :last, :first, :html => {:selected => @panel.publish} %>
29 <h2><%= t 'panels.create_from_json' -%></h2>
30 <%= form_for(@panel) do |f| %>
31 <%= render 'system/error_explanation', :obj => @panel %>
34 <label for="json">json data</label>
36 <%= text_field_tag "json" %>
38 <%= submit_tag t('panels.create_from_json') -%>