1+ <?php echo $ this ->Form ->create ('BoostCake ' , array (
2+ 'inputDefaults ' => array (
3+ 'div ' => 'control-group ' ,
4+ 'label ' => array (
5+ 'class ' => 'control-label '
6+ ),
7+ 'wrapInput ' => 'controls '
8+ ),
9+ 'class ' => 'well form-horizontal '
10+ )); ?>
11+ <?php echo $ this ->Form ->input ('select ' , array (
12+ 'label ' => array (
13+ 'text ' => 'Select Nested Options '
14+ ),
15+ 'empty ' => '選択してください ' ,
16+ 'options ' => array (
17+ '東京 ' => array (
18+ 1 => '渋谷 ' ,
19+ 2 => '秋葉原 '
20+ ),
21+ '大阪 ' => array (
22+ 3 => '梅田 ' ,
23+ 4 => '難波 '
24+ )
25+ ),
26+ )); ?>
27+ <?php echo $ this ->Form ->input ('select ' , array (
28+ 'label ' => array (
29+ 'text ' => 'Select Nested Options Checkbox '
30+ ),
31+ 'class ' => 'checkbox inline ' ,
32+ 'multiple ' => 'checkbox ' ,
33+ 'options ' => array (
34+ '東京 ' => array (
35+ 1 => '渋谷 ' ,
36+ 2 => '秋葉原 '
37+ ),
38+ '大阪 ' => array (
39+ 3 => '梅田 ' ,
40+ 4 => '難波 '
41+ )
42+ )
43+ )); ?>
44+ <?php echo $ this ->Form ->input ('radio ' , array (
45+ 'type ' => 'radio ' ,
46+ 'before ' => '<label class="control-label">Radio</label> ' ,
47+ 'legend ' => false ,
48+ 'options ' => array (
49+ 1 => 'Option one is this and that—be sure to include why it \'s great ' ,
50+ 2 => 'Option two can be something else and selecting it will deselect option one '
51+ )
52+ )); ?>
53+ <?php echo $ this ->Form ->input ('username ' , array (
54+ 'placeholder ' => 'Username ' ,
55+ 'div ' => 'control-group ' ,
56+ 'label ' => array (
57+ 'text ' => 'Prepend ' ,
58+ ),
59+ 'beforeInput ' => '<div class="input-prepend"><span class="add-on">@</span> ' ,
60+ 'afterInput ' => '</div> '
61+ )); ?>
62+ <?php echo $ this ->Form ->input ('price ' , array (
63+ 'label ' => array (
64+ 'text ' => 'Append ' ,
65+ ),
66+ 'beforeInput ' => '<div class="input-append"> ' ,
67+ 'afterInput ' => '<span class="add-on">.00</span></div> '
68+ )); ?>
69+ <?php echo $ this ->Form ->input ('price_error ' , array (
70+ 'label ' => array (
71+ 'text ' => 'Append Error ' ,
72+ ),
73+ 'beforeInput ' => '<div class="input-append"> ' ,
74+ 'afterInput ' => '<span class="add-on">.00</span></div> '
75+ )); ?>
76+ <?php echo $ this ->Form ->input ('password ' , array (
77+ 'label ' => array (
78+ 'text ' => 'Show Error Message '
79+ ),
80+ 'placeholder ' => 'Password ' ,
81+ )); ?>
82+ <?php echo $ this ->Form ->input ('password ' , array (
83+ 'label ' => array (
84+ 'text ' => 'Hide Error Message '
85+ ),
86+ 'placeholder ' => 'Password ' ,
87+ 'errorMessage ' => false
88+ )); ?>
89+ <?php echo $ this ->Form ->input ('checkbox ' , array (
90+ 'label ' => array ('class ' => null ),
91+ 'afterInput ' => '<span class="help-block">Checkbox Bootstrap Style</span> '
92+ )); ?>
93+ <?php echo $ this ->Form ->input ('checkbox ' , array (
94+ 'div ' => false ,
95+ 'label ' => false ,
96+ 'before ' => '<label class="control-label">Checkbox</label> ' ,
97+ 'wrapInput ' => 'controls ' ,
98+ 'afterInput ' => '<span class="help-block">Checkbox CakePHP Style</span> '
99+ )); ?>
100+ <div class="form-actions">
101+ <?php echo $ this ->Form ->submit ('Save changes ' , array (
102+ 'div ' => false ,
103+ 'class ' => 'btn btn-primary '
104+ )); ?>
105+ <button type="button" class="btn">Cancel</button>
106+ </div>
107+ <?php echo $ this ->Form ->end (); ?>
0 commit comments