OSDN Git Service

91a3227f742810313ad90940bdd5fd17ea65eb19
[pettanr/pettanr.git] / app / assets / javascripts / manifest / work / forms.js.coffee.erb
1 #マニフェスト\r
2 @elements = [\r
3   {\r
4     name: 'panel_picture',\r
5     path_name: 'panel_pictures', \r
6     parts: []\r
7   },\r
8   {\r
9     name: 'speech_balloon',\r
10     path_name: 'circle_speech_balloon/speech_balloons', \r
11     parts: ['balloon', 'speech']\r
12   },\r
13   {\r
14     name: 'ground_picture',\r
15     path_name: 'ground_pictures', \r
16     parts: []\r
17   },\r
18   {\r
19     name: 'ground_color',\r
20     path_name: 'ground_colors', \r
21     parts: []\r
22   },\r
23 ]\r
24 @forms = {\r
25   base: {\r
26     scroll: {\r
27       fields: {\r
28         title: {\r
29           args: {\r
30             column: 'title',\r
31             label: {\r
32               args: {\r
33                 row_break: true,\r
34               },\r
35             },\r
36             tag: {\r
37               type: 'text',\r
38             },\r
39             row_break: true,\r
40           },\r
41         },\r
42         description: {\r
43           args: {\r
44             column: 'description',\r
45             label: {\r
46               args: {\r
47                 row_break: true,\r
48               },\r
49             },\r
50             tag: {\r
51               type: 'text_area',\r
52               args: {\r
53                 options: {\r
54                   size: '45x15', \r
55                 },\r
56               },\r
57             },\r
58           },\r
59         },\r
60         visible: {\r
61           args: {\r
62             column: 'visible',\r
63             label: {\r
64             },\r
65             tag: {\r
66               type: 'select',\r
67             },\r
68             row_break: true,\r
69           },\r
70         },\r
71         id: {\r
72           args: {\r
73             column: 'id',\r
74             label: {\r
75               type: 'none',\r
76             },\r
77             tag: {\r
78               type: 'hidden',\r
79             },\r
80           },\r
81         },\r
82         author_id: {\r
83           args: {\r
84             column: 'author_id',\r
85             label: {\r
86               type: 'none',\r
87             },\r
88             tag: {\r
89               type: 'hidden',\r
90             },\r
91           },\r
92         },\r
93       },\r
94       field_names: [\r
95         'title',\r
96         'description',\r
97         'visible',\r
98         'id',\r
99         'author_id',\r
100       ]\r
101     },\r
102     scroll_panel: {\r
103       fields: {\r
104         scroll_id: {\r
105           args: {\r
106             column: 'scroll_id',\r
107             label: {\r
108             },\r
109             tag: {\r
110               type: 'number',\r
111             },\r
112           },\r
113         },\r
114         panel_id: {\r
115           args: {\r
116             column: 'panel_id',\r
117             label: {\r
118             },\r
119             tag: {\r
120               type: 'number',\r
121             },\r
122           },\r
123         },\r
124         t: {\r
125           args: {\r
126             column: 't',\r
127             label: {\r
128             },\r
129             tag: {\r
130               type: 'number',\r
131             },\r
132           },\r
133         },\r
134         id: {\r
135           args: {\r
136             column: 'id',\r
137             label: {\r
138               type: 'none',\r
139             },\r
140             tag: {\r
141               type: 'hidden',\r
142             },\r
143           },\r
144         },\r
145       },\r
146       field_names: [\r
147         'scroll_id',\r
148         'panel_id',\r
149         't',\r
150         'id',\r
151       ]\r
152     },\r
153     comic: {\r
154       fields: {\r
155         title: {\r
156           args: {\r
157             column: 'title',\r
158             label: {\r
159               args: {\r
160                 row_break: true,\r
161               },\r
162             },\r
163             tag: {\r
164               type: 'text',\r
165             },\r
166             row_break: true,\r
167           },\r
168         },\r
169         description: {\r
170           args: {\r
171             column: 'description',\r
172             label: {\r
173               args: {\r
174                 row_break: true,\r
175               },\r
176             },\r
177             tag: {\r
178               type: 'text_area',\r
179               args: {\r
180                 options: {\r
181                   size: '45x15', \r
182                 },\r
183               },\r
184             },\r
185           },\r
186         },\r
187         visible: {\r
188           args: {\r
189             column: 'visible',\r
190             label: {\r
191             },\r
192             tag: {\r
193               type: 'select',\r
194             },\r
195             row_break: true,\r
196           },\r
197         },\r
198         id: {\r
199           args: {\r
200             column: 'id',\r
201             label: {\r
202               type: 'none',\r
203             },\r
204             tag: {\r
205               type: 'hidden',\r
206             },\r
207           },\r
208         },\r
209         author_id: {\r
210           args: {\r
211             column: 'author_id',\r
212             label: {\r
213               type: 'none',\r
214             },\r
215             tag: {\r
216               type: 'hidden',\r
217             },\r
218           },\r
219         },\r
220       },\r
221       field_names: [\r
222         'title',\r
223         'description',\r
224         'visible',\r
225         'id',\r
226         'author_id',\r
227       ]\r
228     },\r
229     story: {\r
230       fields: {\r
231         comic_id: {\r
232           args: {\r
233             column: 'comic_id',\r
234             label: {\r
235               type: 'none',\r
236             },\r
237             tag: {\r
238               type: 'hidden',\r
239             },\r
240           },\r
241         },\r
242         title: {\r
243           args: {\r
244             column: 'title',\r
245             label: {\r
246               args: {\r
247                 row_break: true,\r
248               },\r
249             },\r
250             tag: {\r
251               type: 'text',\r
252             },\r
253             row_break: true,\r
254           },\r
255         },\r
256         description: {\r
257           args: {\r
258             column: 'description',\r
259             label: {\r
260               args: {\r
261                 row_break: true,\r
262               },\r
263             },\r
264             tag: {\r
265               type: 'text_area',\r
266               args: {\r
267                 options: {\r
268                   size: '45x15', \r
269                 },\r
270               },\r
271             },\r
272             row_break: true,\r
273           },\r
274         },\r
275         visible: {\r
276           args: {\r
277             column: 'visible',\r
278             label: {\r
279             },\r
280             tag: {\r
281               type: 'select',\r
282             },\r
283             row_break: true,\r
284           },\r
285         },\r
286         t: {\r
287           args: {\r
288             column: 't',\r
289             label: {\r
290             },\r
291             tag: {\r
292               type: 'number',\r
293             },\r
294           },\r
295         },\r
296         id: {\r
297           args: {\r
298             column: 'id',\r
299             label: {\r
300               type: 'none',\r
301             },\r
302             tag: {\r
303               type: 'hidden',\r
304             },\r
305           },\r
306         },\r
307         author_id: {\r
308           args: {\r
309             column: 'author_id',\r
310             label: {\r
311               type: 'none',\r
312             },\r
313             tag: {\r
314               type: 'hidden',\r
315             },\r
316           },\r
317         },\r
318       },\r
319       field_names: [\r
320         'comic_id',\r
321         'title',\r
322         'description',\r
323         'visible',\r
324         't',\r
325         'id',\r
326         'author_id',\r
327       ]\r
328     },\r
329     story_sheet: {\r
330       fields: {\r
331         story_id: {\r
332           args: {\r
333             column: 'story_id',\r
334             label: {\r
335               type: 'none',\r
336             },\r
337             tag: {\r
338               type: 'number',\r
339             },\r
340           },\r
341         },\r
342         sheet_id: {\r
343           args: {\r
344             column: 'sheet_id',\r
345             label: {\r
346               type: 'none',\r
347             },\r
348             tag: {\r
349               type: 'number',\r
350             },\r
351           },\r
352         },\r
353         t: {\r
354           args: {\r
355             column: 't',\r
356             label: {\r
357             },\r
358             tag: {\r
359               type: 'number',\r
360             },\r
361           },\r
362         },\r
363         id: {\r
364           args: {\r
365             column: 'id',\r
366             label: {\r
367               type: 'none',\r
368             },\r
369             tag: {\r
370               type: 'hidden',\r
371             },\r
372           },\r
373         },\r
374       },\r
375       field_names: [\r
376         'story_id',\r
377         'sheet_id',\r
378         't',\r
379         'id',\r
380       ]\r
381     },\r
382     sheet: {\r
383       fields: {\r
384         caption: {\r
385           args: {\r
386             column: 'caption',\r
387             label: {\r
388               args: {\r
389                 row_break: true,\r
390               },\r
391             },\r
392             tag: {\r
393               type: 'text',\r
394             },\r
395             row_break: true,\r
396           },\r
397         },\r
398         width: {\r
399           args: {\r
400             column: 'width',\r
401             label: {\r
402             },\r
403             tag: {\r
404               type: 'number',\r
405               args: {\r
406                 options: {\r
407                   size: 5, \r
408                 },\r
409               },\r
410             },\r
411           },\r
412         },\r
413         height: {\r
414           args: {\r
415             column: 'height',\r
416             label: {\r
417             },\r
418             tag: {\r
419               type: 'number',\r
420               args: {\r
421                 options: {\r
422                   size: 5, \r
423                 },\r
424               }, \r
425             },\r
426             row_break: true, \r
427           },\r
428         },\r
429         visible: {\r
430           args: {\r
431             column: 'visible',\r
432             label: {\r
433             },\r
434             tag: {\r
435               type: 'select',\r
436             },\r
437             row_break: true,\r
438           },\r
439         },\r
440         id: {\r
441           args: {\r
442             column: 'id',\r
443             label: {\r
444               type: 'none',\r
445             },\r
446             tag: {\r
447               type: 'hidden',\r
448             },\r
449           },\r
450         },\r
451         author_id: {\r
452           args: {\r
453             column: 'author_id',\r
454             label: {\r
455               type: 'none',\r
456             },\r
457             tag: {\r
458               type: 'hidden',\r
459             },\r
460           },\r
461         },\r
462       },\r
463       field_names: [\r
464         'caption',\r
465         'width',\r
466         'height',\r
467         'visible',\r
468         'id',\r
469         'author_id',\r
470       ]\r
471     },\r
472     sheet_panel: {\r
473       fields: {\r
474         sheet_id: {\r
475           args: {\r
476             column: 'sheet_id',\r
477             label: {\r
478             },\r
479             tag: {\r
480               type: 'number',\r
481             },\r
482           },\r
483         },\r
484         panel_id: {\r
485           args: {\r
486             column: 'panel_id',\r
487             label: {\r
488             },\r
489             tag: {\r
490               type: 'number',\r
491             },\r
492           },\r
493         },\r
494         x: {\r
495           args: {\r
496             column: 'x',\r
497             label: {\r
498             },\r
499             tag: {\r
500               type: 'number',\r
501               args: {\r
502                 options: {\r
503                   size: 5, \r
504                 },\r
505               },\r
506             },\r
507           },\r
508         },\r
509         y: {\r
510           args: {\r
511             column: 'y',\r
512             label: {\r
513             },\r
514             tag: {\r
515               type: 'number',\r
516               args: {\r
517                 options: {\r
518                   size: 5, \r
519                 },\r
520               },\r
521             },\r
522             row_break: true,\r
523           },\r
524         },\r
525         z: {\r
526           args: {\r
527             column: 'z',\r
528             label: {\r
529               type: 'none',\r
530             },\r
531             tag: {\r
532               type: 'hidden',\r
533             },\r
534           },\r
535         },\r
536         t: {\r
537           args: {\r
538             column: 't',\r
539             label: {\r
540               type: 'none',\r
541             },\r
542             tag: {\r
543               type: 'hidden',\r
544             },\r
545           },\r
546         },\r
547         id: {\r
548           args: {\r
549             column: 'id',\r
550             label: {\r
551               type: 'none',\r
552             },\r
553             tag: {\r
554               type: 'hidden',\r
555             },\r
556           },\r
557         },\r
558       },\r
559       field_names: [\r
560         'sheet_id',\r
561         'panel_id',\r
562         'x',\r
563         'y',\r
564         'z',\r
565         't',\r
566         'id',\r
567       ]\r
568     },\r
569     panel: {\r
570       fields: {\r
571         caption: {\r
572           args: {\r
573             column: 'caption',\r
574             label: {\r
575             },\r
576             tag: {\r
577               type: 'text',\r
578             },\r
579             row_break: true,\r
580           },\r
581         },\r
582         width: {\r
583           args: {\r
584             column: 'width',\r
585             label: {\r
586             },\r
587             tag: {\r
588               type: 'number',\r
589               args: {\r
590                 options: {\r
591                   size: 5, \r
592                 },\r
593               },\r
594             },\r
595           },\r
596         },\r
597         height: {\r
598           args: {\r
599             column: 'height',\r
600             label: {\r
601             },\r
602             tag: {\r
603               type: 'number',\r
604               args: {\r
605                 options: {\r
606                   size: 5, \r
607                 },\r
608               }, \r
609             },\r
610             row_break: true, \r
611           },\r
612         },\r
613         border: {\r
614           args: {\r
615             column: 'border',\r
616             label: {\r
617             },\r
618             tag: {\r
619               type: 'number',\r
620               args: {\r
621                 options: {\r
622                   size: 5, \r
623                 },\r
624               },\r
625             },\r
626           },\r
627         },\r
628         publish: {\r
629           args: {\r
630             column: 'publish',\r
631             label: {\r
632             },\r
633             tag: {\r
634               type: 'select',\r
635             },\r
636             row_break: true,\r
637           },\r
638         },\r
639         id: {\r
640           args: {\r
641             column: 'id',\r
642             label: {\r
643               type: 'none',\r
644             },\r
645             tag: {\r
646               type: 'hidden',\r
647             },\r
648           },\r
649         },\r
650         author_id: {\r
651           args: {\r
652             column: 'author_id',\r
653             label: {\r
654               type: 'none',\r
655             },\r
656             tag: {\r
657               type: 'hidden',\r
658             },\r
659           },\r
660         },\r
661       },\r
662       field_names: [\r
663         'caption',\r
664         'width',\r
665         'height',\r
666         'border',\r
667         'publish',\r
668         'id',\r
669         'author_id',\r
670       ]\r
671     },\r
672     panel_picture: {\r
673       fields: {\r
674         caption: {\r
675           args: {\r
676             column: 'caption',\r
677             label: {\r
678             },\r
679             tag: {\r
680               type: 'text',\r
681             },\r
682             row_break: true,\r
683           },\r
684         },\r
685         x: {\r
686           args: {\r
687             column: 'x',\r
688             label: {\r
689             },\r
690             tag: {\r
691               type: 'number',\r
692               args: {\r
693                 options: {\r
694                   size: 5, \r
695                 },\r
696               },\r
697             },\r
698           },\r
699         },\r
700         y: {\r
701           args: {\r
702             column: 'y',\r
703             label: {\r
704             },\r
705             tag: {\r
706               type: 'number',\r
707               args: {\r
708                 options: {\r
709                   size: 5, \r
710                 },\r
711               },\r
712             },\r
713             row_break: true,\r
714           },\r
715         },\r
716         width: {\r
717           args: {\r
718             column: 'width',\r
719             label: {\r
720             },\r
721             tag: {\r
722               type: 'number',\r
723               args: {\r
724                 options: {\r
725                   size: 5, \r
726                 },\r
727               },\r
728             },\r
729             helpers: {\r
730               size: {\r
731                 type: 'size',\r
732                 args: {\r
733                   path: 'panels/size_helper',\r
734                   class: 'panel_picture_width_tool', \r
735                 },\r
736               },\r
737             },\r
738             row_break: true,\r
739           },\r
740         },\r
741         height: {\r
742           args: {\r
743             column: 'height',\r
744             label: {\r
745             },\r
746             tag: {\r
747               type: 'number',\r
748               args: {\r
749                 options: {\r
750                   size: 5, \r
751                 },\r
752               }, \r
753             },\r
754             helpers: {\r
755               size: {\r
756                 type: 'size',\r
757                 args: {\r
758                   path: 'panels/size_helper',\r
759                   class: 'panel_picture_height_tool', \r
760                 },\r
761               },\r
762             },\r
763             row_break: true,\r
764           },\r
765         },\r
766         link: {\r
767           args: {\r
768             column: 'link',\r
769             label: {\r
770             },\r
771             tag: {\r
772               type: 'text',\r
773             },\r
774             row_break: true,\r
775           },\r
776         },\r
777         id: {\r
778           args: {\r
779             column: 'id',\r
780             label: {\r
781               type: 'none',\r
782             },\r
783             tag: {\r
784               type: 'hidden',\r
785             },\r
786           },\r
787         },\r
788         panel_id: {\r
789           args: {\r
790             column: 'panel_id',\r
791             label: {\r
792               type: 'none',\r
793             },\r
794             tag: {\r
795               type: 'hidden',\r
796             },\r
797           },\r
798         },\r
799         picture_id: {\r
800           args: {\r
801             column: 'picture_id',\r
802             label: {\r
803             },\r
804             tag: {\r
805               type: 'hidden',\r
806             },\r
807             helpers: {\r
808               popup: {\r
809                 type: 'size',\r
810                 args: {\r
811                   path: 'panels/popup_helper',\r
812                   source: 'pictures',\r
813                 },\r
814               },\r
815             },\r
816           },\r
817         },\r
818         z: {\r
819           args: {\r
820             column: 'z',\r
821             label: {\r
822               type: 'none',\r
823             },\r
824             tag: {\r
825               type: 'hidden',\r
826             },\r
827           },\r
828         },\r
829         t: {\r
830           args: {\r
831             column: 't',\r
832             label: {\r
833               type: 'none',\r
834             },\r
835             tag: {\r
836               type: 'hidden',\r
837             },\r
838           },\r
839         },\r
840       },\r
841       field_names: [\r
842         'caption',\r
843         'x',\r
844         'y',\r
845         'width',\r
846         'height',\r
847         'link',\r
848         'id',\r
849         'panel_id',\r
850         'picture_id',\r
851         'z',\r
852         't',\r
853       ]\r
854     },\r
855     speech_balloon: {\r
856       fields: {\r
857         'speech_balloon.id': {\r
858           args: {\r
859             column: 'id',\r
860             label: {\r
861               type: 'none',\r
862             },\r
863             tag: {\r
864               type: 'hidden',\r
865             },\r
866           },\r
867         },\r
868         'speech_balloon.panel_id': {\r
869           args: {\r
870             column: 'panel_id',\r
871             label: {\r
872               type: 'none',\r
873             },\r
874             tag: {\r
875               type: 'hidden',\r
876             },\r
877           },\r
878         },\r
879         'speech_balloon.speech_balloon_template_id': {\r
880           args: {\r
881             column: 'speech_balloon_template_id',\r
882             label: {\r
883               type: 'none',\r
884             },\r
885             tag: {\r
886               type: 'hidden',\r
887             },\r
888           },\r
889         },\r
890         'speech_balloon.caption': {\r
891           args: {\r
892             column: 'caption',\r
893             label: {\r
894             },\r
895             tag: {\r
896               type: 'text',\r
897             },\r
898             row_break: true,\r
899           },\r
900         },\r
901         'speech_balloon.z': {\r
902           args: {\r
903             column: 'z',\r
904             label: {\r
905               type: 'none',\r
906             },\r
907             tag: {\r
908               type: 'hidden',\r
909             },\r
910           },\r
911         },\r
912         'speech_balloon.t': {\r
913           args: {\r
914             column: 't',\r
915             label: {\r
916               type: 'none',\r
917             },\r
918             tag: {\r
919               type: 'hidden',\r
920             },\r
921           },\r
922         },\r
923         'speech_balloon.classname': {\r
924           args: {\r
925             column: 'classname',\r
926             label: {\r
927               type: 'none',\r
928             },\r
929             tag: {\r
930               type: 'hidden',\r
931             },\r
932           },\r
933         },\r
934         'speech_balloon.settings': {\r
935           args: {\r
936             column: 'settings',\r
937             label: {\r
938               type: 'none',\r
939             },\r
940             tag: {\r
941               type: 'hidden',\r
942             },\r
943           },\r
944         },\r
945         'balloon.id': {\r
946           type: 'part',\r
947           args: {\r
948             model: 'balloon',\r
949             part: 'balloon',\r
950             column: 'id',\r
951             label: {\r
952               type: 'none',\r
953             },\r
954             tag: {\r
955               type: 'hidden',\r
956             },\r
957           },\r
958         },\r
959         'balloon.speech_balloon_id': {\r
960           type: 'part',\r
961           args: {\r
962             model: 'balloon',\r
963             part: 'balloon',\r
964             column: 'speech_balloon_id',\r
965             label: {\r
966               type: 'none',\r
967             },\r
968             tag: {\r
969               type: 'hidden',\r
970             },\r
971           },\r
972         },\r
973         'balloon.system_picture_id': {\r
974           type: 'part',\r
975           args: {\r
976             model: 'balloon',\r
977             part: 'balloon',\r
978             column: 'system_picture_id',\r
979             label: {\r
980               type: 'none',\r
981             },\r
982             tag: {\r
983               type: 'hidden',\r
984             },\r
985           },\r
986         },\r
987         'balloon.r': {\r
988           type: 'part',\r
989           args: {\r
990             model: 'balloon',\r
991             part: 'balloon',\r
992             column: 'r',\r
993             label: {\r
994             },\r
995             tag: {\r
996               type: 'number',\r
997               args: {\r
998                 options: {\r
999                   size: 5, \r
1000                 },\r
1001               },\r
1002             },\r
1003             helpers: {\r
1004               tail_angle: {\r
1005                 type: 'size',\r
1006                 args: {\r
1007                   path: 'panels/tail_angle_helper',\r
1008                 },\r
1009               },\r
1010             },\r
1011             row_break: true,\r
1012           },\r
1013         },\r
1014         'balloon.x': {\r
1015           type: 'part',\r
1016           args: {\r
1017             model: 'balloon',\r
1018             part: 'balloon',\r
1019             column: 'x',\r
1020             label: {\r
1021             },\r
1022             tag: {\r
1023               type: 'number',\r
1024               args: {\r
1025                 options: {\r
1026                   size: 5, \r
1027                 },\r
1028               },\r
1029             },\r
1030           },\r
1031         },\r
1032         'balloon.y': {\r
1033           type: 'part',\r
1034           args: {\r
1035             model: 'balloon',\r
1036             part: 'balloon',\r
1037             column: 'y',\r
1038             label: {\r
1039             },\r
1040             tag: {\r
1041               type: 'number',\r
1042               args: {\r
1043                 options: {\r
1044                   size: 5, \r
1045                 },\r
1046               },\r
1047             },\r
1048             row_break: true,\r
1049           },\r
1050         },\r
1051         'balloon.width': {\r
1052           type: 'part',\r
1053           args: {\r
1054             model: 'balloon',\r
1055             part: 'balloon',\r
1056             column: 'width',\r
1057             label: {\r
1058             },\r
1059             tag: {\r
1060               type: 'number',\r
1061               args: {\r
1062                 options: {\r
1063                   size: 5, \r
1064                 },\r
1065               },\r
1066             },\r
1067           },\r
1068         },\r
1069         'balloon.height': {\r
1070           type: 'part',\r
1071           args: {\r
1072             model: 'balloon',\r
1073             part: 'balloon',\r
1074             column: 'height',\r
1075             label: {\r
1076             },\r
1077             tag: {\r
1078               type: 'number',\r
1079               args: {\r
1080                 options: {\r
1081                   size: 5, \r
1082                 },\r
1083               },\r
1084             },\r
1085             row_break: true,\r
1086           },\r
1087         },\r
1088         'balloon.settings': {\r
1089           type: 'part',\r
1090           args: {\r
1091             model: 'balloon',\r
1092             part: 'balloon',\r
1093             column: 'settings',\r
1094             label: {\r
1095               type: 'none',\r
1096             },\r
1097             tag: {\r
1098               type: 'hidden',\r
1099             },\r
1100           },\r
1101         },\r
1102         'speech.id': {\r
1103           type: 'part',\r
1104           args: {\r
1105             model: 'speech',\r
1106             part: 'speech',\r
1107             column: 'id',\r
1108             label: {\r
1109               type: 'none',\r
1110             },\r
1111             tag: {\r
1112               type: 'hidden',\r
1113             },\r
1114           },\r
1115         },\r
1116         'speech.speech_balloon_id': {\r
1117           type: 'part',\r
1118           args: {\r
1119             model: 'speech',\r
1120             part: 'speech',\r
1121             column: 'speech_balloon_id',\r
1122             label: {\r
1123               type: 'none',\r
1124             },\r
1125             tag: {\r
1126               type: 'hidden',\r
1127             },\r
1128           },\r
1129         },\r
1130         'speech.x': {\r
1131           type: 'part',\r
1132           args: {\r
1133             model: 'speech',\r
1134             part: 'speech',\r
1135             column: 'x',\r
1136             label: {\r
1137               type: 'none',\r
1138             },\r
1139             tag: {\r
1140               type: 'hidden',\r
1141             },\r
1142           },\r
1143         },\r
1144         'speech.y': {\r
1145           type: 'part',\r
1146           args: {\r
1147             model: 'speech',\r
1148             part: 'speech',\r
1149             column: 'y',\r
1150             label: {\r
1151               type: 'none',\r
1152             },\r
1153             tag: {\r
1154               type: 'hidden',\r
1155             },\r
1156           },\r
1157         },\r
1158         'speech.width': {\r
1159           type: 'part',\r
1160           args: {\r
1161             model: 'speech',\r
1162             part: 'speech',\r
1163             column: 'width',\r
1164             label: {\r
1165               type: 'none',\r
1166             },\r
1167             tag: {\r
1168               type: 'hidden',\r
1169             },\r
1170           },\r
1171         },\r
1172         'speech.height': {\r
1173           type: 'part',\r
1174           args: {\r
1175             model: 'speech',\r
1176             part: 'speech',\r
1177             column: 'height',\r
1178             label: {\r
1179               type: 'none',\r
1180             },\r
1181             tag: {\r
1182               type: 'hidden',\r
1183             },\r
1184           },\r
1185         },\r
1186         'speech.writing_format_id': {\r
1187           type: 'part',\r
1188           args: {\r
1189             model: 'speech',\r
1190             part: 'speech',\r
1191             column: 'writing_format_id',\r
1192             label: {\r
1193             },\r
1194             tag: {\r
1195               type: 'select',\r
1196             },\r
1197           },\r
1198         },\r
1199         'speech.font_size': {\r
1200           type: 'part',\r
1201           args: {\r
1202             model: 'speech',\r
1203             part: 'speech',\r
1204             column: 'font_size',\r
1205             label: {\r
1206             },\r
1207             tag: {\r
1208               type: 'select',\r
1209             },\r
1210             row_break: true,\r
1211           },\r
1212         },\r
1213         'speech.text_align': {\r
1214           type: 'part',\r
1215           args: {\r
1216             model: 'speech',\r
1217             part: 'speech',\r
1218             column: 'text_align',\r
1219             label: {\r
1220             },\r
1221             tag: {\r
1222               type: 'select',\r
1223             },\r
1224           },\r
1225         },\r
1226         'speech.quotes': {\r
1227           type: 'part',\r
1228           args: {\r
1229             model: 'speech',\r
1230             part: 'speech',\r
1231             column: 'quotes',\r
1232             label: {\r
1233             },\r
1234             tag: {\r
1235               type: 'text',\r
1236               args: {\r
1237                 options: {\r
1238                   size: 5, \r
1239                 },\r
1240               },\r
1241             },\r
1242           },\r
1243         },\r
1244         'speech.content': {\r
1245           type: 'part',\r
1246           args: {\r
1247             model: 'speech',\r
1248             part: 'speech',\r
1249             column: 'content',\r
1250             label: {\r
1251               args: {\r
1252                 row_break: true,\r
1253               },\r
1254             },\r
1255             tag: {\r
1256               type: 'text_area',\r
1257               args: {\r
1258                 options: {\r
1259                   size: '45x5', \r
1260                 },\r
1261               },\r
1262             },\r
1263           },\r
1264         },\r
1265         'speech.fore_color': {\r
1266           type: 'part',\r
1267           args: {\r
1268             model: 'speech',\r
1269             part: 'speech',\r
1270             column: 'fore_color',\r
1271             label: {\r
1272               row_break: true,\r
1273             },\r
1274             tag: {\r
1275               type: 'hidden',\r
1276             },\r
1277             helpers: {\r
1278               color: {\r
1279                 type: 'size',\r
1280                 args: {\r
1281                   path: 'panels/color_helper',\r
1282                   wrapper: 'speech-fore_color-wrap',\r
1283                 },\r
1284               },\r
1285             },\r
1286           },\r
1287         },\r
1288         'speech.settings': {\r
1289           type: 'part',\r
1290           args: {\r
1291             model: 'speech',\r
1292             part: 'speech',\r
1293             column: 'settings',\r
1294             label: {\r
1295               type: 'none',\r
1296             },\r
1297             tag: {\r
1298               type: 'hidden',\r
1299             },\r
1300           },\r
1301         },\r
1302       },\r
1303     },\r
1304     ground_picture: {\r
1305       fields: {\r
1306         id: {\r
1307           args: {\r
1308             column: 'id',\r
1309             label: {\r
1310               type: 'none',\r
1311             },\r
1312             tag: {\r
1313               type: 'hidden',\r
1314             },\r
1315           },\r
1316         },\r
1317         panel_id: {\r
1318           args: {\r
1319             column: 'panel_id',\r
1320             label: {\r
1321               type: 'none',\r
1322             },\r
1323             tag: {\r
1324               type: 'hidden',\r
1325             },\r
1326           },\r
1327         },\r
1328         picture_id: {\r
1329           args: {\r
1330             column: 'picture_id',\r
1331             label: {\r
1332               type: 'none',\r
1333             },\r
1334             tag: {\r
1335               type: 'hidden',\r
1336             },\r
1337           },\r
1338         },\r
1339         caption: {\r
1340           args: {\r
1341             column: 'caption',\r
1342             label: {\r
1343             },\r
1344             tag: {\r
1345               type: 'text',\r
1346             },\r
1347             row_break: true,\r
1348           },\r
1349         },\r
1350         repeat: {\r
1351           args: {\r
1352             column: 'repeat',\r
1353             label: {\r
1354             },\r
1355             tag: {\r
1356               type: 'select',\r
1357               args: {\r
1358                 source: 'magic_number',\r
1359                 key: 'ground_picture_repeat_items',\r
1360               },\r
1361             },\r
1362             row_break: true,\r
1363           },\r
1364         },\r
1365         x: {\r
1366           args: {\r
1367             column: 'x',\r
1368             label: {\r
1369             },\r
1370             tag: {\r
1371               type: 'number',\r
1372               args: {\r
1373                 options: {\r
1374                   size: 5, \r
1375                 },\r
1376               },\r
1377             },\r
1378           },\r
1379         },\r
1380         y: {\r
1381           args: {\r
1382             column: 'y',\r
1383             label: {\r
1384             },\r
1385             tag: {\r
1386               type: 'number',\r
1387               args: {\r
1388                 options: {\r
1389                   size: 5, \r
1390                 },\r
1391               },\r
1392             },\r
1393             row_break: true,\r
1394           },\r
1395         },\r
1396         z: {\r
1397           args: {\r
1398             column: 'z',\r
1399             label: {\r
1400               type: 'none',\r
1401             },\r
1402             tag: {\r
1403               type: 'hidden',\r
1404             },\r
1405           },\r
1406         },\r
1407         t: {\r
1408           args: {\r
1409             column: 't',\r
1410             label: {\r
1411               type: 'none',\r
1412             },\r
1413             tag: {\r
1414               type: 'hidden',\r
1415             },\r
1416           },\r
1417         },\r
1418       },\r
1419       field_names: [\r
1420         'caption',\r
1421         'repeat',\r
1422         'x',\r
1423         'y',\r
1424         'z',\r
1425         't',\r
1426         'id',\r
1427         'panel_id',\r
1428         'picture_id',\r
1429       ]\r
1430     },\r
1431     ground_color: {\r
1432       fields: {\r
1433         id: {\r
1434           args: {\r
1435             column: 'id',\r
1436             label: {\r
1437               type: 'none',\r
1438             },\r
1439             tag: {\r
1440               type: 'hidden',\r
1441             },\r
1442           },\r
1443         },\r
1444         panel_id: {\r
1445           args: {\r
1446             column: 'panel_id',\r
1447             label: {\r
1448               type: 'none',\r
1449             },\r
1450             tag: {\r
1451               type: 'hidden',\r
1452             },\r
1453           },\r
1454         },\r
1455         caption: {\r
1456           args: {\r
1457             column: 'caption',\r
1458             label: {\r
1459             },\r
1460             tag: {\r
1461               type: 'text',\r
1462             },\r
1463             row_break: true,\r
1464           },\r
1465         },\r
1466         code: {\r
1467           args: {\r
1468             column: 'code',\r
1469             label: {\r
1470               args: {\r
1471                 row_break: true,\r
1472               },\r
1473             },\r
1474             tag: {\r
1475               type: 'hidden',\r
1476             },\r
1477             helpers: {\r
1478               color: {\r
1479                 type: 'size',\r
1480                 args: {\r
1481                   path: 'panels/color_helper',\r
1482                   wrapper: 'ground_color-code-wrap'\r
1483                 },\r
1484               }\r
1485             },\r
1486             row_break: true,\r
1487           },\r
1488         },\r
1489         orientation: {\r
1490           args: {\r
1491             column: 'orientation',\r
1492             label: {\r
1493             },\r
1494             tag: {\r
1495               type: 'select',\r
1496             },\r
1497             row_break: true,\r
1498           },\r
1499         },\r
1500         xy: {\r
1501           args: {\r
1502             column: 'xy',\r
1503             label: {\r
1504             },\r
1505             tag: {\r
1506               type: 'number',\r
1507               args: {\r
1508                 options: {\r
1509                   size: 5, \r
1510                 },\r
1511               },\r
1512             },\r
1513           },\r
1514         },\r
1515         wh: {\r
1516           args: {\r
1517             column: 'wh',\r
1518             label: {\r
1519             },\r
1520             tag: {\r
1521               type: 'number',\r
1522               args: {\r
1523                 options: {\r
1524                   size: 5, \r
1525                 },\r
1526               }\r
1527             },\r
1528             row_break: true,\r
1529           },\r
1530         },\r
1531         z: {\r
1532           args: {\r
1533             column: 'z',\r
1534             label: {\r
1535               type: 'none',\r
1536             },\r
1537             tag: {\r
1538               type: 'hidden',\r
1539             },\r
1540           },\r
1541         },\r
1542         t: {\r
1543           args: {\r
1544             column: 't',\r
1545             label: {\r
1546               type: 'none',\r
1547             },\r
1548             tag: {\r
1549               type: 'hidden',\r
1550             },\r
1551           },\r
1552         },\r
1553       },\r
1554       field_names: [\r
1555         'id',\r
1556         'panel_id',\r
1557         'caption',\r
1558         'code',\r
1559         'orientation',\r
1560         'xy',\r
1561         'wh',\r
1562         'z',\r
1563         't',\r
1564       ]\r
1565     }\r
1566     author: {\r
1567       fields: {\r
1568         id: {\r
1569           args: {\r
1570             column: 'id',\r
1571             label: {\r
1572               type: 'none',\r
1573             },\r
1574             tag: {\r
1575               type: 'hidden',\r
1576             },\r
1577           },\r
1578         },\r
1579         name: {\r
1580           args: {\r
1581             column: 'name',\r
1582             label: {\r
1583               args: {\r
1584                 row_break: true,\r
1585               },\r
1586             },\r
1587             tag: {\r
1588               type: 'text',\r
1589             },\r
1590             row_break: true,\r
1591           },\r
1592         },\r
1593       },\r
1594       field_names: [\r
1595         'id',\r
1596         'name',\r
1597       ]\r
1598     },\r
1599     artist: {\r
1600       fields: {\r
1601         id: {\r
1602           args: {\r
1603             column: 'id',\r
1604             label: {\r
1605               type: 'none',\r
1606             },\r
1607             tag: {\r
1608               type: 'hidden',\r
1609             },\r
1610           },\r
1611         },\r
1612         name: {\r
1613           args: {\r
1614             column: 'name',\r
1615             label: {\r
1616               args: {\r
1617                 row_break: true,\r
1618               },\r
1619             },\r
1620             tag: {\r
1621               type: 'text',\r
1622             },\r
1623             row_break: true,\r
1624           },\r
1625         },\r
1626       },\r
1627       field_names: [\r
1628         'id',\r
1629         'name',\r
1630       ]\r
1631     },\r
1632   },\r
1633   extend: {\r
1634     CircleSpeechBalloon: {\r
1635       base: 'speech_balloon',\r
1636       fields: {\r
1637       },\r
1638       field_names: [\r
1639         'speech_balloon.caption',\r
1640         'balloon.r',\r
1641         'balloon.x',\r
1642         'balloon.y',\r
1643         'balloon.width',\r
1644         'balloon.height',\r
1645         'balloon.id',\r
1646         'balloon.speech_balloon_id',\r
1647         'balloon.system_picture_id',\r
1648         'balloon.settings',\r
1649         'speech.writing_format_id',\r
1650         'speech.font_size',\r
1651         'speech.text_align',\r
1652         'speech.quotes',\r
1653         'speech.content',\r
1654         'speech.fore_color',\r
1655         'speech.id',\r
1656         'speech.speech_balloon_id',\r
1657         'speech.x',\r
1658         'speech.y',\r
1659         'speech.width',\r
1660         'speech.height',\r
1661         'speech.settings',\r
1662         'speech_balloon.id',\r
1663         'speech_balloon.panel_id',\r
1664         'speech_balloon.speech_balloon_template_id',\r
1665         'speech_balloon.classname',\r
1666         'speech_balloon.z',\r
1667         'speech_balloon.t',\r
1668         'speech_balloon.settings',\r
1669       ]\r
1670     },\r
1671     PlainSpeechBalloon: {\r
1672       base: 'speech_balloon',\r
1673       fields: {\r
1674         'balloon.r': {\r
1675           type: 'part',\r
1676           args: {\r
1677             model: 'balloon',\r
1678             part: 'balloon',\r
1679             column: 'r',\r
1680             label: {\r
1681               type: 'none',\r
1682             },\r
1683             tag: {\r
1684               type: 'hidden',\r
1685             },\r
1686           },\r
1687         },\r
1688       },\r
1689       field_names: [\r
1690         'speech_balloon.caption',\r
1691         'balloon.r',\r
1692         'balloon.x',\r
1693         'balloon.y',\r
1694         'balloon.width',\r
1695         'balloon.height',\r
1696         'balloon.id',\r
1697         'balloon.speech_balloon_id',\r
1698         'balloon.system_picture_id',\r
1699         'balloon.settings',\r
1700         'speech.writing_format_id',\r
1701         'speech.font_size',\r
1702         'speech.text_align',\r
1703         'speech.quotes',\r
1704         'speech.content',\r
1705         'speech.fore_color',\r
1706         'speech.id',\r
1707         'speech.speech_balloon_id',\r
1708         'speech.x',\r
1709         'speech.y',\r
1710         'speech.width',\r
1711         'speech.height',\r
1712         'speech.settings',\r
1713         'speech_balloon.id',\r
1714         'speech_balloon.panel_id',\r
1715         'speech_balloon.speech_balloon_template_id',\r
1716         'speech_balloon.classname',\r
1717         'speech_balloon.z',\r
1718         'speech_balloon.t',\r
1719         'speech_balloon.settings',\r
1720       ]\r
1721     },\r
1722     SquareSpeechBalloon: {\r
1723       base: 'speech_balloon',\r
1724       fields: {\r
1725         'balloon.r': {\r
1726           type: 'part',\r
1727           args: {\r
1728             model: 'balloon',\r
1729             part: 'balloon',\r
1730             column: 'r',\r
1731             label: {\r
1732               type: 'none',\r
1733             },\r
1734             tag: {\r
1735               type: 'hidden',\r
1736             },\r
1737           },\r
1738         },\r
1739       },\r
1740       field_names: [\r
1741         'speech_balloon.caption',\r
1742         'balloon.r',\r
1743         'balloon.x',\r
1744         'balloon.y',\r
1745         'balloon.width',\r
1746         'balloon.height',\r
1747         'balloon.id',\r
1748         'balloon.speech_balloon_id',\r
1749         'balloon.system_picture_id',\r
1750         'balloon.settings',\r
1751         'speech.writing_format_id',\r
1752         'speech.font_size',\r
1753         'speech.text_align',\r
1754         'speech.quotes',\r
1755         'speech.content',\r
1756         'speech.fore_color',\r
1757         'speech.id',\r
1758         'speech.speech_balloon_id',\r
1759         'speech.x',\r
1760         'speech.y',\r
1761         'speech.width',\r
1762         'speech.height',\r
1763         'speech.settings',\r
1764         'speech_balloon.id',\r
1765         'speech_balloon.panel_id',\r
1766         'speech_balloon.speech_balloon_template_id',\r
1767         'speech_balloon.classname',\r
1768         'speech_balloon.z',\r
1769         'speech_balloon.t',\r
1770         'speech_balloon.settings',\r
1771       ]\r
1772     },\r
1773   }\r
1774 }\r
1775 @repeat_texts = ['repeat', 'repeat-x', 'repeat-y', 'no-repeat']\r
1776 \r
1777 @text_align_texts = ['left', 'left', 'right', 'center']\r
1778 \r