OSDN Git Service

fix owner
[pettanr/pettanr.git] / app / helpers / application_helper.rb
index 0ce67d3..d83d256 100644 (file)
@@ -1,4 +1,8 @@
 module ApplicationHelper
+  def manifest
+    Manifest.manifest
+  end
+  
   def full_url filename
     request.protocol + request.host_with_port + filename
   end
@@ -21,13 +25,17 @@ module ApplicationHelper
   end
   
   def t_selected_item(name, index)
-    t(MagicNumber[name][index][0])
+    t(manifest.system_resources.select_items[name][index][0])
+  end
+  
+  def item_tag 
+    tag :img, :src => asset_path('item.png'), :width => 35, :height => 35
   end
   
   def icon_tag name, opt = {}
     title = opt[:object] ? (name.to_s + ' ID:' + opt[:object].id.to_s) : name
     size = opt[:size] ? opt[:size].to_i : 35
-    tag :img, :src => asset_path(name.to_s.downcase + '.gif'), :width => size, :height => size, :alt => name.to_s + ' Icon', :title => title
+    tag :img, :src => '/images/' + name.to_s.underscore + '.gif', :width => size, :height => size, :alt => name.to_s + ' Icon', :title => title
   end
   
   def author_icon opt = {}
@@ -38,6 +46,14 @@ module ApplicationHelper
     icon_tag :Artist, opt
   end
   
+  def scroll_icon opt = {}
+    icon_tag :Scroll, opt
+  end
+  
+  def scroll_panel_icon opt = {}
+    icon_tag :ScrollPanel, opt
+  end
+  
   def comic_icon opt = {}
     icon_tag :Comic, opt
   end
@@ -46,1202 +62,33 @@ module ApplicationHelper
     icon_tag :Story, opt
   end
   
+  def story_sheet_icon opt = {}
+    icon_tag :StorySheet, opt
+  end
+  
+  def sheet_icon opt = {}
+    icon_tag :Sheet, opt
+  end
+  
+  def sheet_panel_icon opt = {}
+    icon_tag :Sheet, opt
+  end
+  
   def panel_icon opt = {}
     icon_tag :Panel, opt
   end
   
   def panel_editor_javascript_include_tags
-    WritingFormat.list().map {|wf|
+    WritingFormat.enable_list().map {|wf|
 #      javascript_include_tag wf.engine_name
-      javascript_include_tag wf.engine_name + "/application"
+      javascript_include_tag wf.my_engine_name + "/application"
     }.join("\n") + 
     SpeechBalloonTemplate.enable_list().map {|sbt|
-      stylesheet_link_tag sbt.engine_name + "/application"
+      stylesheet_link_tag sbt.my_engine_name + "/application"
     }.join("\n") + 
     SpeechBalloonTemplate.enable_list().map {|sbt|
-      javascript_include_tag sbt.engine_name + "/application"
+      javascript_include_tag sbt.my_engine_name + "/application"
     }.join("\n")
   end
   
-  def configurations
-    JSON.parse(<<HD
-{
-    "models": {
-        "PanelPicture": "panel_picture",
-        "panel_picture": {
-            "class_name": "PanelPicture",
-            "table_name": "panel_pictures",
-            "attributes": {
-                "id": {
-                    "type": "number",
-                    "primary_key": 1
-                },
-                "panel_id": {
-                    "type": "number"
-                },
-                "picture_id": {
-                    "type": "number"
-                },
-                "caption": {
-                    "type": "text"
-                },
-                "x": {
-                    "type": "number"
-                },
-                "y": {
-                    "type": "number"
-                },
-                "width": {
-                    "type": "number"
-                },
-                "height": {
-                    "type": "number"
-                },
-                "link": {
-                    "type": "text"
-                },
-                "z": {
-                    "type": "number"
-                },
-                "t": {
-                    "type": "number"
-                },
-                "created_at": {
-                    "type": "datetime"
-                },
-                "updated_at": {
-                    "type": "datetime"
-                }
-            }
-        },
-        "SpeechBalloon": "speech_balloon",
-        "speech_balloon": {
-            "class_name": "SpeechBalloon",
-            "table_name": "speech_balloons",
-            "extend": "classname",
-            "attributes": {
-                "id": {
-                    "type": "number",
-                    "primary_key": 1
-                },
-                "panel_id": {
-                    "type": "number"
-                },
-                "speech_balloon_template_id": {
-                    "type": "number"
-                },
-                "classname": {
-                    "type": "text"
-                },
-                "z": {
-                    "type": "number"
-                },
-                "t": {
-                    "type": "number"
-                },
-                "settings": {
-                    "type": "text"
-                },
-                "caption": {
-                    "type": "text"
-                },
-                "created_at": {
-                    "type": "datetime"
-                },
-                "updated_at": {
-                    "type": "datetime"
-                }
-            }
-        },
-        "Balloon": "balloon",
-        "balloon": {
-            "class_name": "Balloon",
-            "table_name": "balloons",
-            "attributes": {
-                "id": {
-                    "type": "number",
-                    "primary_key": 1
-                },
-                "speech_balloon_id": {
-                    "type": "number"
-                },
-                "system_picture_id": {
-                    "type": "number"
-                },
-                "x": {
-                    "type": "number"
-                },
-                "y": {
-                    "type": "number"
-                },
-                "width": {
-                    "type": "number"
-                },
-                "height": {
-                    "type": "number"
-                },
-                "r": {
-                    "type": "number"
-                },
-                "settings": {
-                    "type": "text"
-                },
-                "created_at": {
-                    "type": "datetime"
-                },
-                "updated_at": {
-                    "type": "datetime"
-                }
-            }
-        },
-        "Speech": "speech",
-        "speech": {
-            "class_name": "Speech",
-            "table_name": "speeches",
-            "attributes": {
-                "id": {
-                    "type": "number",
-                    "primary_key": 1
-                },
-                "speech_balloon_id": {
-                    "type": "number"
-                },
-                "writing_format_id": {
-                    "type": "number"
-                },
-                "content": {
-                    "type": "text"
-                },
-                "font_size": {
-                    "type": "float"
-                },
-                "text_align": {
-                    "type": "number"
-                },
-                "fore_color": {
-                    "type": "number"
-                },
-                "x": {
-                    "type": "number"
-                },
-                "y": {
-                    "type": "number"
-                },
-                "width": {
-                    "type": "number"
-                },
-                "height": {
-                    "type": "number"
-                },
-                "quotes": {
-                    "type": "text"
-                },
-                "settings": {
-                    "type": "text"
-                },
-                "created_at": {
-                    "type": "datetime"
-                },
-                "updated_at": {
-                    "type": "datetime"
-                }
-            }
-        },
-        "GroundPicture": "ground_picture",
-        "ground_picture": {
-            "class_name": "GroundPicture",
-            "table_name": "ground_pictures",
-            "attributes": {
-                "id": {
-                    "type": "number",
-                    "primary_key": 1
-                },
-                "panel_id": {
-                    "type": "number"
-                },
-                "picture_id": {
-                    "type": "number"
-                },
-                "caption": {
-                    "type": "text"
-                },
-                "repeat": {
-                    "type": "number"
-                },
-                "x": {
-                    "type": "number"
-                },
-                "y": {
-                    "type": "number"
-                },
-                "z": {
-                    "type": "number"
-                },
-                "t": {
-                    "type": "number"
-                },
-                "created_at": {
-                    "type": "datetime"
-                },
-                "updated_at": {
-                    "type": "datetime"
-                }
-            }
-        },
-        "GroundColor": "ground_color",
-        "ground_color": {
-            "class_name": "GroundColor",
-            "table_name": "ground_colors",
-            "attributes": {
-                "id": {
-                    "type": "number",
-                    "primary_key": 1
-                },
-                "panel_id": {
-                    "type": "number"
-                },
-                "caption": {
-                    "type": "text"
-                },
-                "code": {
-                    "type": "number"
-                },
-                "z": {
-                    "type": "number"
-                },
-                "t": {
-                    "type": "number"
-                },
-                "created_at": {
-                    "type": "datetime"
-                },
-                "updated_at": {
-                    "type": "datetime"
-                }
-            }
-        },
-        "WritingFormat": "writing_format",
-        "writing_format": {
-            "class_name": "WritingFormat",
-            "table_name": "writing_formats",
-            "attributes": {
-                "id": {
-                    "type": "number",
-                    "primary_key": 1
-                },
-                "name": {
-                    "type": "text"
-                },
-                "classname": {
-                    "type": "text"
-                },
-                "caption": {
-                    "type": "text"
-                },
-                "system_picture_id": {
-                    "type": "number"
-                },
-                "settings": {
-                    "type": "text"
-                },
-                "created_at": {
-                    "type": "datetime"
-                },
-                "updated_at": {
-                    "type": "datetime"
-                }
-            }
-        }
-    },
-    "elements": [
-        {
-            "name": "panel_picture",
-            "path_name": "panel_pictures",
-            "parts": []
-        },
-        {
-            "name": "speech_balloon",
-            "path_name": "circle_speech_balloon/speech_balloons",
-            "parts": [
-                "balloon",
-                "speech"
-            ]
-        },
-        {
-            "name": "ground_picture",
-            "path_name": "ground_pictures",
-            "parts": []
-        },
-        {
-            "name": "ground_color",
-            "path_name": "ground_colors",
-            "parts": []
-        }
-    ],
-    "forms": {
-        "PanelPicture": "panel_picture",
-        "panel_picture": {
-            "fields": [
-                {
-                    "column": "caption",
-                    "type": "text",
-                    "options": {
-                        "label_break": false,
-                        "row_break": true
-                    }
-                },
-                {
-                    "column": "x",
-                    "type": "number",
-                    "options": {
-                        "size": 5
-                    }
-                },
-                {
-                    "column": "y",
-                    "type": "number",
-                    "options": {
-                        "size": 5,
-                        "row_break": true
-                    }
-                },
-                {
-                    "column": "width",
-                    "type": "number",
-                    "options": {
-                        "size": 5,
-                        "row_break": true
-                    },
-                    "helpers": {
-                        "size": {
-                            "path": "panels/size_helper",
-                            "options": {
-                                "class": "panel_picture_width_tool"
-                            }
-                        }
-                    }
-                },
-                {
-                    "column": "height",
-                    "type": "number",
-                    "options": {
-                        "size": 5,
-                        "row_break": true
-                    },
-                    "helpers": {
-                        "size": {
-                            "path": "panels/size_helper",
-                            "options": {
-                                "class": "panel_picture_height_tool"
-                            }
-                        }
-                    }
-                },
-                {
-                    "column": "link",
-                    "type": "text",
-                    "options": {
-                        "row_break": true
-                    }
-                },
-                {
-                    "column": "id",
-                    "type": "hidden",
-                    "options": {}
-                },
-                {
-                    "column": "panel_id",
-                    "type": "hidden",
-                    "options": {}
-                },
-                {
-                    "column": "picture_id",
-                    "type": "hidden",
-                    "options": {}
-                },
-                {
-                    "column": "z",
-                    "type": "hidden",
-                    "options": {}
-                },
-                {
-                    "column": "t",
-                    "type": "hidden",
-                    "options": {}
-                }
-            ]
-        },
-        "CircleSpeechBalloon": "circle_speech_balloon",
-        "circle_speech_balloon": {
-            "base": "speech_balloon",
-            "fields": [
-                {
-                    "column": "caption",
-                    "type": "text",
-                    "options": {
-                        "row_break": true
-                    }
-                },
-                {
-                    "part": "balloon",
-                    "column": "r",
-                    "type": "number",
-                    "options": {
-                        "size": 5,
-                        "row_break": true
-                    },
-                    "helpers": {
-                        "tail_angle": {
-                            "path": "panels/tail_angle_helper",
-                            "options": {}
-                        }
-                    }
-                },
-                {
-                    "part": "balloon",
-                    "column": "x",
-                    "type": "number",
-                    "options": {
-                        "size": 5
-                    }
-                },
-                {
-                    "part": "balloon",
-                    "column": "y",
-                    "type": "number",
-                    "options": {
-                        "size": 5,
-                        "row_break": true
-                    }
-                },
-                {
-                    "part": "balloon",
-                    "column": "width",
-                    "type": "number",
-                    "options": {
-                        "size": 5
-                    }
-                },
-                {
-                    "part": "balloon",
-                    "column": "height",
-                    "type": "number",
-                    "options": {
-                        "size": 5,
-                        "row_break": true
-                    }
-                },
-                {
-                    "part": "balloon",
-                    "column": "id",
-                    "type": "hidden",
-                    "options": {}
-                },
-                {
-                    "part": "balloon",
-                    "column": "speech_balloon_id",
-                    "type": "hidden",
-                    "options": {}
-                },
-                {
-                    "part": "balloon",
-                    "column": "system_picture_id",
-                    "type": "hidden",
-                    "options": {}
-                },
-                {
-                    "part": "balloon",
-                    "column": "settings",
-                    "type": "hidden",
-                    "options": {}
-                },
-                {
-                    "part": "speech",
-                    "column": "writing_format_id",
-                    "type": "select",
-                    "options": {
-                        "source": "model",
-                        "model": "writing_format",
-                        "method": "list",
-                        "caption": "caption"
-                    }
-                },
-                {
-                    "part": "speech",
-                    "column": "font_size",
-                    "type": "select",
-                    "options": {
-                        "source": "magic_number",
-                        "key": "speech_font_size_items",
-                        "row_break": true
-                    }
-                },
-                {
-                    "part": "speech",
-                    "column": "text_align",
-                    "type": "select",
-                    "options": {
-                        "source": "magic_number",
-                        "key": "speech_text_align_items"
-                    }
-                },
-                {
-                    "part": "speech",
-                    "column": "quotes",
-                    "type": "text",
-                    "options": {
-                        "size": 5
-                    }
-                },
-                {
-                    "part": "speech",
-                    "column": "content",
-                    "type": "text_area",
-                    "options": {
-                        "label_break": true,
-                        "size": "45x5"
-                    }
-                },
-                {
-                    "part": "speech",
-                    "column": "fore_color",
-                    "type": "hidden",
-                    "options": {
-                        "label_break": true
-                    },
-                    "helpers": {
-                        "color": {
-                            "path": "panels/color_helper",
-                            "options": {},
-                            "wrapper": "speech-fore_color-wrap"
-                        }
-                    }
-                },
-                {
-                    "part": "speech",
-                    "column": "id",
-                    "type": "hidden",
-                    "options": {}
-                },
-                {
-                    "part": "speech",
-                    "column": "speech_balloon_id",
-                    "type": "hidden",
-                    "options": {}
-                },
-                {
-                    "part": "speech",
-                    "column": "x",
-                    "type": "hidden",
-                    "options": {}
-                },
-                {
-                    "part": "speech",
-                    "column": "y",
-                    "type": "hidden",
-                    "options": {}
-                },
-                {
-                    "part": "speech",
-                    "column": "width",
-                    "type": "hidden",
-                    "options": {}
-                },
-                {
-                    "part": "speech",
-                    "column": "height",
-                    "type": "hidden",
-                    "options": {}
-                },
-                {
-                    "part": "speech",
-                    "column": "settings",
-                    "type": "hidden",
-                    "options": {}
-                },
-                {
-                    "column": "id",
-                    "type": "hidden",
-                    "options": {}
-                },
-                {
-                    "column": "panel_id",
-                    "type": "hidden",
-                    "options": {}
-                },
-                {
-                    "column": "speech_balloon_template_id",
-                    "type": "hidden",
-                    "options": {}
-                },
-                {
-                    "column": "classname",
-                    "type": "hidden",
-                    "options": {}
-                },
-                {
-                    "column": "z",
-                    "type": "hidden",
-                    "options": {}
-                },
-                {
-                    "column": "t",
-                    "type": "hidden",
-                    "options": {}
-                },
-                {
-                    "column": "settings",
-                    "type": "hidden",
-                    "options": {}
-                }
-            ]
-        },
-        "PlainSpeechBalloon": "plain_speech_balloon",
-        "plain_speech_balloon": {
-            "base": "speech_balloon",
-            "fields": [
-                {
-                    "column": "caption",
-                    "type": "text",
-                    "options": {
-                        "row_break": true
-                    }
-                },
-                {
-                    "part": "balloon",
-                    "column": "r",
-                    "type": "hidden",
-                    "options": {}
-                },
-                {
-                    "part": "balloon",
-                    "column": "x",
-                    "type": "number",
-                    "options": {
-                        "size": 5
-                    }
-                },
-                {
-                    "part": "balloon",
-                    "column": "y",
-                    "type": "number",
-                    "options": {
-                        "size": 5,
-                        "row_break": true
-                    }
-                },
-                {
-                    "part": "balloon",
-                    "column": "width",
-                    "type": "number",
-                    "options": {
-                        "size": 5
-                    }
-                },
-                {
-                    "part": "balloon",
-                    "column": "height",
-                    "type": "number",
-                    "options": {
-                        "size": 5,
-                        "row_break": true
-                    }
-                },
-                {
-                    "part": "balloon",
-                    "column": "id",
-                    "type": "hidden",
-                    "options": {}
-                },
-                {
-                    "part": "balloon",
-                    "column": "speech_balloon_id",
-                    "type": "hidden",
-                    "options": {}
-                },
-                {
-                    "part": "balloon",
-                    "column": "system_picture_id",
-                    "type": "hidden",
-                    "options": {}
-                },
-                {
-                    "part": "balloon",
-                    "column": "settings",
-                    "type": "hidden",
-                    "options": {}
-                },
-                {
-                    "part": "speech",
-                    "column": "writing_format_id",
-                    "type": "select",
-                    "options": {
-                        "source": "model",
-                        "model": "writing_format",
-                        "method": "list",
-                        "caption": "caption"
-                    }
-                },
-                {
-                    "part": "speech",
-                    "column": "font_size",
-                    "type": "select",
-                    "options": {
-                        "source": "magic_number",
-                        "key": "speech_font_size_items",
-                        "row_break": true
-                    }
-                },
-                {
-                    "part": "speech",
-                    "column": "text_align",
-                    "type": "select",
-                    "options": {
-                        "source": "magic_number",
-                        "key": "speech_text_align_items"
-                    }
-                },
-                {
-                    "part": "speech",
-                    "column": "quotes",
-                    "type": "text",
-                    "options": {
-                        "size": 5
-                    }
-                },
-                {
-                    "part": "speech",
-                    "column": "content",
-                    "type": "text_area",
-                    "options": {
-                        "label_break": true,
-                        "size": "45x5"
-                    }
-                },
-                {
-                    "part": "speech",
-                    "column": "fore_color",
-                    "type": "hidden",
-                    "options": {
-                        "label_break": true
-                    },
-                    "helpers": {
-                        "color": {
-                            "path": "panels/color_helper",
-                            "options": {},
-                            "wrapper": "speech-fore_color-wrap"
-                        }
-                    }
-                },
-                {
-                    "part": "speech",
-                    "column": "id",
-                    "type": "hidden",
-                    "options": {}
-                },
-                {
-                    "part": "speech",
-                    "column": "speech_balloon_id",
-                    "type": "hidden",
-                    "options": {}
-                },
-                {
-                    "part": "speech",
-                    "column": "x",
-                    "type": "hidden",
-                    "options": {}
-                },
-                {
-                    "part": "speech",
-                    "column": "y",
-                    "type": "hidden",
-                    "options": {}
-                },
-                {
-                    "part": "speech",
-                    "column": "width",
-                    "type": "hidden",
-                    "options": {}
-                },
-                {
-                    "part": "speech",
-                    "column": "height",
-                    "type": "hidden",
-                    "options": {}
-                },
-                {
-                    "part": "speech",
-                    "column": "settings",
-                    "type": "hidden",
-                    "options": {}
-                },
-                {
-                    "column": "id",
-                    "type": "hidden",
-                    "options": {}
-                },
-                {
-                    "column": "panel_id",
-                    "type": "hidden",
-                    "options": {}
-                },
-                {
-                    "column": "speech_balloon_template_id",
-                    "type": "hidden",
-                    "options": {}
-                },
-                {
-                    "column": "classname",
-                    "type": "hidden",
-                    "options": {}
-                },
-                {
-                    "column": "z",
-                    "type": "hidden",
-                    "options": {}
-                },
-                {
-                    "column": "t",
-                    "type": "hidden",
-                    "options": {}
-                },
-                {
-                    "column": "settings",
-                    "type": "hidden",
-                    "options": {}
-                }
-            ]
-        },
-        "SquareSpeechBalloon": "square_speech_balloon",
-        "square_speech_balloon": {
-            "base": "speech_balloon",
-            "fields": [
-                {
-                    "column": "caption",
-                    "type": "text",
-                    "options": {
-                        "row_break": true
-                    }
-                },
-                {
-                    "part": "balloon",
-                    "column": "r",
-                    "type": "hidden",
-                    "options": {}
-                },
-                {
-                    "part": "balloon",
-                    "column": "x",
-                    "type": "number",
-                    "options": {
-                        "size": 5
-                    }
-                },
-                {
-                    "part": "balloon",
-                    "column": "y",
-                    "type": "number",
-                    "options": {
-                        "size": 5,
-                        "row_break": true
-                    }
-                },
-                {
-                    "part": "balloon",
-                    "column": "width",
-                    "type": "number",
-                    "options": {
-                        "size": 5
-                    }
-                },
-                {
-                    "part": "balloon",
-                    "column": "height",
-                    "type": "number",
-                    "options": {
-                        "size": 5,
-                        "row_break": true
-                    }
-                },
-                {
-                    "part": "balloon",
-                    "column": "id",
-                    "type": "hidden",
-                    "options": {}
-                },
-                {
-                    "part": "balloon",
-                    "column": "speech_balloon_id",
-                    "type": "hidden",
-                    "options": {}
-                },
-                {
-                    "part": "balloon",
-                    "column": "system_picture_id",
-                    "type": "hidden",
-                    "options": {}
-                },
-                {
-                    "part": "balloon",
-                    "column": "settings",
-                    "type": "hidden",
-                    "options": {}
-                },
-                {
-                    "part": "speech",
-                    "column": "writing_format_id",
-                    "type": "select",
-                    "options": {
-                        "source": "model",
-                        "model": "writing_format",
-                        "method": "list",
-                        "caption": "caption"
-                    }
-                },
-                {
-                    "part": "speech",
-                    "column": "font_size",
-                    "type": "select",
-                    "options": {
-                        "source": "magic_number",
-                        "key": "speech_font_size_items",
-                        "row_break": true
-                    }
-                },
-                {
-                    "part": "speech",
-                    "column": "text_align",
-                    "type": "select",
-                    "options": {
-                        "source": "magic_number",
-                        "key": "speech_text_align_items"
-                    }
-                },
-                {
-                    "part": "speech",
-                    "column": "quotes",
-                    "type": "text",
-                    "options": {
-                        "size": 5
-                    }
-                },
-                {
-                    "part": "speech",
-                    "column": "content",
-                    "type": "text_area",
-                    "options": {
-                        "label_break": true,
-                        "size": "45x5"
-                    }
-                },
-                {
-                    "part": "speech",
-                    "column": "fore_color",
-                    "type": "hidden",
-                    "options": {
-                        "label_break": true
-                    },
-                    "helpers": {
-                        "color": {
-                            "path": "panels/color_helper",
-                            "options": {},
-                            "wrapper": "speech-fore_color-wrap"
-                        }
-                    }
-                },
-                {
-                    "part": "speech",
-                    "column": "id",
-                    "type": "hidden",
-                    "options": {}
-                },
-                {
-                    "part": "speech",
-                    "column": "speech_balloon_id",
-                    "type": "hidden",
-                    "options": {}
-                },
-                {
-                    "part": "speech",
-                    "column": "x",
-                    "type": "hidden",
-                    "options": {}
-                },
-                {
-                    "part": "speech",
-                    "column": "y",
-                    "type": "hidden",
-                    "options": {}
-                },
-                {
-                    "part": "speech",
-                    "column": "width",
-                    "type": "hidden",
-                    "options": {}
-                },
-                {
-                    "part": "speech",
-                    "column": "height",
-                    "type": "hidden",
-                    "options": {}
-                },
-                {
-                    "part": "speech",
-                    "column": "settings",
-                    "type": "hidden",
-                    "options": {}
-                },
-                {
-                    "column": "id",
-                    "type": "hidden",
-                    "options": {}
-                },
-                {
-                    "column": "panel_id",
-                    "type": "hidden",
-                    "options": {}
-                },
-                {
-                    "column": "speech_balloon_template_id",
-                    "type": "hidden",
-                    "options": {}
-                },
-                {
-                    "column": "classname",
-                    "type": "hidden",
-                    "options": {}
-                },
-                {
-                    "column": "z",
-                    "type": "hidden",
-                    "options": {}
-                },
-                {
-                    "column": "t",
-                    "type": "hidden",
-                    "options": {}
-                },
-                {
-                    "column": "settings",
-                    "type": "hidden",
-                    "options": {}
-                }
-            ]
-        },
-        "GroundPicture": "ground_picture",
-        "ground_picture": {
-            "fields": [
-                {
-                    "column": "caption",
-                    "type": "text",
-                    "options": {
-                        "row_break": true
-                    }
-                },
-                {
-                    "column": "repeat",
-                    "type": "select",
-                    "options": {
-                        "source": "magic_number",
-                        "key": "ground_picture_repeat_items",
-                        "row_break": true
-                    }
-                },
-                {
-                    "column": "x",
-                    "type": "number",
-                    "options": {
-                        "size": 5
-                    }
-                },
-                {
-                    "column": "y",
-                    "type": "number",
-                    "options": {
-                        "size": 5,
-                        "row_break": true
-                    }
-                },
-                {
-                    "column": "z",
-                    "type": "hidden",
-                    "options": {}
-                },
-                {
-                    "column": "t",
-                    "type": "hidden",
-                    "options": {}
-                },
-                {
-                    "column": "id",
-                    "type": "hidden",
-                    "options": {}
-                },
-                {
-                    "column": "panel_id",
-                    "type": "hidden",
-                    "options": {}
-                },
-                {
-                    "column": "picture_id",
-                    "type": "hidden",
-                    "options": {}
-                }
-            ]
-        },
-        "GroundColor": "ground_color",
-        "ground_color": {
-            "fields": [
-                {
-                    "column": "caption",
-                    "type": "text",
-                    "options": {
-                        "row_break": true
-                    }
-                },
-                {
-                    "column": "code",
-                    "type": "hidden",
-                    "options": {
-                        "label_break": true,
-                        "row_break": true
-                    },
-                    "helpers": {
-                        "color": {
-                            "path": "panels/color_helper",
-                            "options": {},
-                            "wrapper": "ground_color-code-wrap"
-                        }
-                    }
-                },
-                {
-                    "column": "z",
-                    "type": "hidden",
-                    "options": {}
-                },
-                {
-                    "column": "t",
-                    "type": "hidden",
-                    "options": {}
-                },
-                {
-                    "column": "id",
-                    "type": "hidden",
-                    "options": {}
-                },
-                {
-                    "column": "panel_id",
-                    "type": "hidden",
-                    "options": {}
-                }
-            ]
-        }
-    },
-    "locales": {
-        "ja": {}
-    }
-}
-HD
-)
-  end
 end