@@ 90-96 (lines=7) @@ | ||
87 | * |
|
88 | * @return string |
|
89 | */ |
|
90 | public function buttonField(IFormModel $model, $property, array $options = []) |
|
91 | { |
|
92 | $element = $this->getField($model, $property); |
|
93 | $options['id'] = $element['id']; |
|
94 | ||
95 | return Html::buttonField($element['name'], $element['value'], $options); |
|
96 | } |
|
97 | ||
98 | /** |
|
99 | * Render radio field tag |
|
@@ 109-115 (lines=7) @@ | ||
106 | * |
|
107 | * @return string |
|
108 | */ |
|
109 | public function radioField(IFormModel $model, $property, array $options = []) |
|
110 | { |
|
111 | $element = $this->getField($model, $property); |
|
112 | $options['id'] = $element['id']; |
|
113 | ||
114 | return Html::radioField($element['name'], $element['value'], $options); |
|
115 | } |
|
116 | ||
117 | /** |
|
118 | * Render text field row |
|
@@ 175-181 (lines=7) @@ | ||
172 | * |
|
173 | * @return string |
|
174 | */ |
|
175 | public function textField(IFormModel $model, $property, array $options = []) |
|
176 | { |
|
177 | $element = $this->getField($model, $property); |
|
178 | $options['id'] = $element['id']; |
|
179 | ||
180 | return Html::textField($element['name'], $element['value'], $options); |
|
181 | } |
|
182 | ||
183 | /** |
|
184 | * Render file field row |
|
@@ 216-222 (lines=7) @@ | ||
213 | * |
|
214 | * @return string |
|
215 | */ |
|
216 | public function fileField(IFormModel $model, $property, array $options = []) |
|
217 | { |
|
218 | $element = $this->getField($model, $property); |
|
219 | $options['id'] = $element['id']; |
|
220 | ||
221 | return Html::fileField($element['name'], $element['value'], $options); |
|
222 | } |
|
223 | ||
224 | /** |
|
225 | * Render image field row |
|
@@ 299-305 (lines=7) @@ | ||
296 | * |
|
297 | * @return string |
|
298 | */ |
|
299 | public function passwordField(IFormModel $model, $property, array $options = []) |
|
300 | { |
|
301 | $element = $this->getField($model, $property); |
|
302 | $options['id'] = $element['id']; |
|
303 | ||
304 | return Html::passwordField($element['name'], $element['value'], $options); |
|
305 | } |
|
306 | ||
307 | /** |
|
308 | * Render textArea field row |
|
@@ 340-346 (lines=7) @@ | ||
337 | * |
|
338 | * @return string |
|
339 | */ |
|
340 | public function textAreaField(IFormModel $model, $property, array $options = []) |
|
341 | { |
|
342 | $element = $this->getField($model, $property); |
|
343 | $options['id'] = $element['id']; |
|
344 | ||
345 | return Html::textArea($element['name'], $element['value'], $options); |
|
346 | } |
|
347 | ||
348 | /** |
|
349 | * Render checkbox field row |
|
@@ 381-387 (lines=7) @@ | ||
378 | * |
|
379 | * @return string |
|
380 | */ |
|
381 | public function checkBoxField(IFormModel $model, $property, array $options = []) |
|
382 | { |
|
383 | $element = $this->getField($model, $property); |
|
384 | $options['id'] = $element['id']; |
|
385 | ||
386 | return Html::checkBoxField($element['name'], $element['value'], $options); |
|
387 | } |
|
388 | ||
389 | // Lists |
|
390 | ||
@@ 601-607 (lines=7) @@ | ||
598 | * |
|
599 | * @return string |
|
600 | */ |
|
601 | public function colorField(IFormModel $model, $property, array $options = []) |
|
602 | { |
|
603 | $element = $this->getField($model, $property); |
|
604 | $options['id'] = $element['id']; |
|
605 | ||
606 | return Html::colorField($element['name'], $element['value'], $options); |
|
607 | } |
|
608 | ||
609 | /** |
|
610 | * Render number field row |
|
@@ 642-648 (lines=7) @@ | ||
639 | * |
|
640 | * @return string |
|
641 | */ |
|
642 | public function dateField(IFormModel $model, $property, array $options = []) |
|
643 | { |
|
644 | $element = $this->getField($model, $property); |
|
645 | $options['id'] = $element['id']; |
|
646 | ||
647 | return Html::dateField($element['name'], $element['value'], $options); |
|
648 | } |
|
649 | ||
650 | /** |
|
651 | * Render datetime field row |
|
@@ 683-689 (lines=7) @@ | ||
680 | * |
|
681 | * @return string |
|
682 | */ |
|
683 | public function dateTimeField(IFormModel $model, $property, array $options = []) |
|
684 | { |
|
685 | $element = $this->getField($model, $property); |
|
686 | $options['id'] = $element['id']; |
|
687 | ||
688 | return Html::datetimeField($element['name'], $element['value'], $options); |
|
689 | } |
|
690 | ||
691 | /** |
|
692 | * Render datetime-local field row |
|
@@ 724-730 (lines=7) @@ | ||
721 | * |
|
722 | * @return string |
|
723 | */ |
|
724 | public function dateTimeLocalField(IFormModel $model, $property, array $options = []) |
|
725 | { |
|
726 | $element = $this->getField($model, $property); |
|
727 | $options['id'] = $element['id']; |
|
728 | ||
729 | return Html::datetimeLocalField($element['name'], $element['value'], $options); |
|
730 | } |
|
731 | ||
732 | /** |
|
733 | * Render email field row |
|
@@ 765-771 (lines=7) @@ | ||
762 | * |
|
763 | * @return string |
|
764 | */ |
|
765 | public function emailField(IFormModel $model, $property, array $options = []) |
|
766 | { |
|
767 | $element = $this->getField($model, $property); |
|
768 | $options['id'] = $element['id']; |
|
769 | ||
770 | return Html::emailField($element['name'], $element['value'], $options); |
|
771 | } |
|
772 | ||
773 | /** |
|
774 | * Render number field row |
|
@@ 806-812 (lines=7) @@ | ||
803 | * |
|
804 | * @return string |
|
805 | */ |
|
806 | public function numberField(IFormModel $model, $property, array $options = []) |
|
807 | { |
|
808 | $element = $this->getField($model, $property); |
|
809 | $options['id'] = $element['id']; |
|
810 | ||
811 | return Html::numberField($element['name'], $element['value'], $options); |
|
812 | } |
|
813 | ||
814 | /** |
|
815 | * Render range field row |
|
@@ 847-853 (lines=7) @@ | ||
844 | * |
|
845 | * @return string |
|
846 | */ |
|
847 | public function rangeField(IFormModel $model, $property, array $options = []) |
|
848 | { |
|
849 | $element = $this->getField($model, $property); |
|
850 | $options['id'] = $element['id']; |
|
851 | ||
852 | return Html::rangeField($element['name'], $element['value'], $options); |
|
853 | } |
|
854 | ||
855 | /** |
|
856 | * Render search field row |
|
@@ 888-894 (lines=7) @@ | ||
885 | * |
|
886 | * @return string |
|
887 | */ |
|
888 | public function searchField(IFormModel $model, $property, array $options = []) |
|
889 | { |
|
890 | $element = $this->getField($model, $property); |
|
891 | $options['id'] = $element['id']; |
|
892 | ||
893 | return Html::searchField($element['name'], $element['value'], $options); |
|
894 | } |
|
895 | ||
896 | /** |
|
897 | * Render telephone field row |
|
@@ 929-935 (lines=7) @@ | ||
926 | * |
|
927 | * @return string |
|
928 | */ |
|
929 | public function telField(IFormModel $model, $property, array $options = []) |
|
930 | { |
|
931 | $element = $this->getField($model, $property); |
|
932 | $options['id'] = $element['id']; |
|
933 | ||
934 | return Html::telField($element['name'], $element['value'], $options); |
|
935 | } |
|
936 | ||
937 | /** |
|
938 | * Render time field row |
|
@@ 970-976 (lines=7) @@ | ||
967 | * |
|
968 | * @return string |
|
969 | */ |
|
970 | public function timeField(IFormModel $model, $property, array $options = []) |
|
971 | { |
|
972 | $element = $this->getField($model, $property); |
|
973 | $options['id'] = $element['id']; |
|
974 | ||
975 | return Html::timeField($element['name'], $element['value'], $options); |
|
976 | } |
|
977 | ||
978 | /** |
|
979 | * Render url field row |
|
@@ 1011-1017 (lines=7) @@ | ||
1008 | * |
|
1009 | * @return string |
|
1010 | */ |
|
1011 | public function urlField(IFormModel $model, $property, array $options = []) |
|
1012 | { |
|
1013 | $element = $this->getField($model, $property); |
|
1014 | $options['id'] = $element['id']; |
|
1015 | ||
1016 | return Html::urlField($element['name'], $element['value'], $options); |
|
1017 | } |
|
1018 | ||
1019 | /** |
|
1020 | * Render month field row |
|
@@ 1052-1058 (lines=7) @@ | ||
1049 | * |
|
1050 | * @return string |
|
1051 | */ |
|
1052 | public function monthField(IFormModel $model, $property, array $options = []) |
|
1053 | { |
|
1054 | $element = $this->getField($model, $property); |
|
1055 | $options['id'] = $element['id']; |
|
1056 | ||
1057 | return Html::monthField($element['name'], $element['value'], $options); |
|
1058 | } |
|
1059 | ||
1060 | /** |
|
1061 | * Render week field row |
|
@@ 1093-1099 (lines=7) @@ | ||
1090 | * |
|
1091 | * @return string |
|
1092 | */ |
|
1093 | public function weekField(IFormModel $model, $property, array $options = []) |
|
1094 | { |
|
1095 | $element = $this->getField($model, $property); |
|
1096 | $options['id'] = $element['id']; |
|
1097 | ||
1098 | return Html::weekField($element['name'], $element['value'], $options); |
|
1099 | } |
|
1100 | } |
|
1101 |