OSDN Git Service

fix manifest
[pettanr/pettanr.git] / app / views / ground_pictures / _form.html.erb
index 5422d57..6480cad 100644 (file)
@@ -5,24 +5,38 @@
     <%= f.label :caption %>
     <%= f.text_field :caption, elm.field_tag_attributes(:caption, no_attr) %>
   </div>
+  <div class="row_break">
+  </div>
   <div class="field">
     <%= f.label :repeat %>
-    <%= f.collection_select :repeat, t_select_items(MagicNumber['ground_picture_repeat_items']), *elm.select_tag_attributes(elm.repeat, :repeat, no_attr) %>
+    <%= f.collection_select :repeat, t_select_items(manifest.system_resources.select_items['ground_picture_repeat_items']), *elm.select_tag_attributes(elm.repeat, :repeat, no_attr) %>
+  </div>
+  <div class="row_break">
   </div>
   <div class="field">
     <%= f.label :x %>
     <%= f.number_field :x, elm.field_tag_attributes(:x, no_attr, :size => 5) %>
-
+  </div>
+  <div class="row_break">
+  </div>
+  <div class="field">
     <%= f.label :y %>
     <%= f.number_field :y, elm.field_tag_attributes(:y, no_attr, :size => 5) %>
   </div>
+  <div class="row_break">
+  </div>
   <div class="field">
     <%= f.label :z %>
     <%= f.number_field :z, elm.field_tag_attributes(:z, no_attr, :size => 5) %>
-
+  </div>
+  <div class="row_break">
+  </div>
+  <div class="field">
     <%= f.label :t %>
     <%= f.number_field :t, elm.field_tag_attributes(:t, no_attr, :size => 5) %>
   </div>
+  <div class="row_break">
+  </div>
   
   <%= f.hidden_field :panel_id, elm.field_tag_attributes(:panel_id, no_attr) %>
   <%= f.hidden_field :picture_id, elm.field_tag_attributes(:picture_id, no_attr) %>