|
@@ 128-137 (lines=10) @@
|
| 125 |
|
* |
| 126 |
|
* @return string |
| 127 |
|
*/ |
| 128 |
|
public function textFieldRow(IFormModel $model, $property, array $options = []) |
| 129 |
|
{ |
| 130 |
|
$element = $this->getField($model, $property); |
| 131 |
|
$options['id'] = $element['id']; |
| 132 |
|
|
| 133 |
|
return Html::openTag('div', $this->getBlock('block', $options)) . |
| 134 |
|
Html::label($model->getLabel($property), $element['id'], $this->getBlock('label', $options)) . |
| 135 |
|
$this->textField($model, $property, $options) . |
| 136 |
|
Html::closeTag('div'); |
| 137 |
|
} |
| 138 |
|
|
| 139 |
|
// Fields |
| 140 |
|
|
|
@@ 192-201 (lines=10) @@
|
| 189 |
|
* |
| 190 |
|
* @return string |
| 191 |
|
*/ |
| 192 |
|
public function fileFieldRow(IFormModel $model, $property, array $options = []) |
| 193 |
|
{ |
| 194 |
|
$element = $this->getField($model, $property); |
| 195 |
|
$options['id'] = $element['id']; |
| 196 |
|
|
| 197 |
|
return Html::openTag('div', $this->getBlock('block', $options)) . |
| 198 |
|
Html::label($model->getLabel($property), $element['id'], $this->getBlock('label', $options)) . |
| 199 |
|
$this->fileField($model, $property, $options) . |
| 200 |
|
Html::closeTag('div'); |
| 201 |
|
} |
| 202 |
|
|
| 203 |
|
/** |
| 204 |
|
* Render file field tag |
|
@@ 233-242 (lines=10) @@
|
| 230 |
|
* |
| 231 |
|
* @return string |
| 232 |
|
*/ |
| 233 |
|
public function imageFieldRow(IFormModel $model, $property, array $options = []) |
| 234 |
|
{ |
| 235 |
|
$element = $this->getField($model, $property); |
| 236 |
|
$options['id'] = $element['id']; |
| 237 |
|
|
| 238 |
|
return Html::openTag('div', $this->getBlock('block', $options)) . |
| 239 |
|
Html::label($model->getLabel($property), $element['id'], $this->getBlock('label', $options)) . |
| 240 |
|
$this->imageField($model, $property, $options) . |
| 241 |
|
Html::closeTag('div'); |
| 242 |
|
} |
| 243 |
|
|
| 244 |
|
/** |
| 245 |
|
* Render image field tag |
|
@@ 275-284 (lines=10) @@
|
| 272 |
|
* |
| 273 |
|
* @return string |
| 274 |
|
*/ |
| 275 |
|
public function passwordFieldRow(IFormModel $model, $property, array $options = []) |
| 276 |
|
{ |
| 277 |
|
$element = $this->getField($model, $property); |
| 278 |
|
$options['id'] = $element['id']; |
| 279 |
|
|
| 280 |
|
return Html::openTag('div', $this->getBlock('block', $options)) . |
| 281 |
|
Html::label($model->getLabel($property), $element['id'], $this->getBlock('label', $options)) . |
| 282 |
|
$this->passwordField($model, $property, $options) . |
| 283 |
|
Html::closeTag('div'); |
| 284 |
|
} |
| 285 |
|
|
| 286 |
|
/** |
| 287 |
|
* Render password field tag |
|
@@ 316-325 (lines=10) @@
|
| 313 |
|
* |
| 314 |
|
* @return string |
| 315 |
|
*/ |
| 316 |
|
public function textAreaFieldRow(IFormModel $model, $property, array $options = []) |
| 317 |
|
{ |
| 318 |
|
$element = $this->getField($model, $property); |
| 319 |
|
$options['id'] = $element['id']; |
| 320 |
|
|
| 321 |
|
return Html::openTag('div', $this->getBlock('block', $options)) . |
| 322 |
|
Html::label($model->getLabel($property), $element['id'], $this->getBlock('label', $options)) . |
| 323 |
|
$this->textAreaField($model, $property, $options) . |
| 324 |
|
Html::closeTag('div'); |
| 325 |
|
} |
| 326 |
|
|
| 327 |
|
/** |
| 328 |
|
* Render textarea tag |
|
@@ 357-366 (lines=10) @@
|
| 354 |
|
* |
| 355 |
|
* @return string |
| 356 |
|
*/ |
| 357 |
|
public function checkboxFieldRow(IFormModel $model, $property, array $options = []) |
| 358 |
|
{ |
| 359 |
|
$element = $this->getField($model, $property); |
| 360 |
|
$options['id'] = $element['id']; |
| 361 |
|
|
| 362 |
|
return Html::openTag('div', $this->getBlock('block', $options)) . |
| 363 |
|
Html::label($model->getLabel($property), $element['id'], $this->getBlock('label', $options)) . |
| 364 |
|
$this->checkBoxField($model, $property, $options) . |
| 365 |
|
Html::closeTag('div'); |
| 366 |
|
} |
| 367 |
|
|
| 368 |
|
/** |
| 369 |
|
* Render check box field tag |
|
@@ 400-409 (lines=10) @@
|
| 397 |
|
* |
| 398 |
|
* @return string |
| 399 |
|
*/ |
| 400 |
|
public function listBoxFieldRow(IFormModel $model, $property, array $options = []) |
| 401 |
|
{ |
| 402 |
|
$element = $this->getField($model, $property); |
| 403 |
|
$options['id'] = $element['id']; |
| 404 |
|
|
| 405 |
|
return Html::openTag('div', $this->getBlock('block', $options)) . |
| 406 |
|
Html::label($model->getLabel($property), $element['id'], $this->getBlock('label', $options)) . |
| 407 |
|
$this->listBoxField($model, $property, $options) . |
| 408 |
|
Html::closeTag('div'); |
| 409 |
|
} |
| 410 |
|
|
| 411 |
|
/** |
| 412 |
|
* Render list box tag |
|
@@ 446-455 (lines=10) @@
|
| 443 |
|
* |
| 444 |
|
* @return string |
| 445 |
|
*/ |
| 446 |
|
public function dropDownListFieldRow(IFormModel $model, $property, array $options = []) |
| 447 |
|
{ |
| 448 |
|
$element = $this->getField($model, $property); |
| 449 |
|
$options['id'] = $element['id']; |
| 450 |
|
|
| 451 |
|
return Html::openTag('div', $this->getBlock('block', $options)) . |
| 452 |
|
Html::label($model->getLabel($property), $element['id'], $this->getBlock('label', $options)) . |
| 453 |
|
$this->dropDownListField($model, $property, $options) . |
| 454 |
|
Html::closeTag('div'); |
| 455 |
|
} |
| 456 |
|
|
| 457 |
|
/** |
| 458 |
|
* Render drop down list tag |
|
@@ 491-500 (lines=10) @@
|
| 488 |
|
* |
| 489 |
|
* @return string |
| 490 |
|
*/ |
| 491 |
|
public function checkBoxListFieldRow(IFormModel $model, $property, array $options = []) |
| 492 |
|
{ |
| 493 |
|
$element = $this->getField($model, $property); |
| 494 |
|
$options['id'] = $element['id']; |
| 495 |
|
|
| 496 |
|
return Html::openTag('div', $this->getBlock('block', $options)) . |
| 497 |
|
Html::label($model->getLabel($property), $element['id'], $this->getBlock('label', $options)) . |
| 498 |
|
$this->checkBoxListField($model, $property, $options) . |
| 499 |
|
Html::closeTag('div'); |
| 500 |
|
} |
| 501 |
|
|
| 502 |
|
/** |
| 503 |
|
* Render check box list tag |
|
@@ 533-542 (lines=10) @@
|
| 530 |
|
* |
| 531 |
|
* @return string |
| 532 |
|
*/ |
| 533 |
|
public function radioButtonListFieldRow(IFormModel $model, $property, array $options = []) |
| 534 |
|
{ |
| 535 |
|
$element = $this->getField($model, $property); |
| 536 |
|
$options['id'] = $element['id']; |
| 537 |
|
|
| 538 |
|
return Html::openTag('div', $this->getBlock('block', $options)) . |
| 539 |
|
Html::label($model->getLabel($property), $element['id'], $this->getBlock('label', $options)) . |
| 540 |
|
$this->radioButtonListField($model, $property, $options) . |
| 541 |
|
Html::closeTag('div'); |
| 542 |
|
} |
| 543 |
|
|
| 544 |
|
/** |
| 545 |
|
* Render radio button list tag |
|
@@ 577-586 (lines=10) @@
|
| 574 |
|
* |
| 575 |
|
* @return string |
| 576 |
|
*/ |
| 577 |
|
public function colorFieldRow(IFormModel $model, $property, array $options = []) |
| 578 |
|
{ |
| 579 |
|
$element = $this->getField($model, $property); |
| 580 |
|
$options['id'] = $element['id']; |
| 581 |
|
|
| 582 |
|
return Html::openTag('div', $this->getBlock('block', $options)) . |
| 583 |
|
Html::label($model->getLabel($property), $element['id'], $this->getBlock('label', $options)) . |
| 584 |
|
$this->colorField($model, $property, $options) . |
| 585 |
|
Html::closeTag('div'); |
| 586 |
|
} |
| 587 |
|
|
| 588 |
|
/** |
| 589 |
|
* Render color field tag |
|
@@ 618-627 (lines=10) @@
|
| 615 |
|
* |
| 616 |
|
* @return string |
| 617 |
|
*/ |
| 618 |
|
public function dateFieldRow(IFormModel $model, $property, array $options = []) |
| 619 |
|
{ |
| 620 |
|
$element = $this->getField($model, $property); |
| 621 |
|
$options['id'] = $element['id']; |
| 622 |
|
|
| 623 |
|
return Html::openTag('div', $this->getBlock('block', $options)) . |
| 624 |
|
Html::label($model->getLabel($property), $element['id'], $this->getBlock('label', $options)) . |
| 625 |
|
$this->dateField($model, $property, $options) . |
| 626 |
|
Html::closeTag('div'); |
| 627 |
|
} |
| 628 |
|
|
| 629 |
|
/** |
| 630 |
|
* Render date field tag |
|
@@ 659-668 (lines=10) @@
|
| 656 |
|
* |
| 657 |
|
* @return string |
| 658 |
|
*/ |
| 659 |
|
public function dateTimeFieldRow(IFormModel $model, $property, array $options = []) |
| 660 |
|
{ |
| 661 |
|
$element = $this->getField($model, $property); |
| 662 |
|
$options['id'] = $element['id']; |
| 663 |
|
|
| 664 |
|
return Html::openTag('div', $this->getBlock('block', $options)) . |
| 665 |
|
Html::label($model->getLabel($property), $element['id'], $this->getBlock('label', $options)) . |
| 666 |
|
$this->dateTimeField($model, $property, $options) . |
| 667 |
|
Html::closeTag('div'); |
| 668 |
|
} |
| 669 |
|
|
| 670 |
|
/** |
| 671 |
|
* Render datetime field tag |
|
@@ 700-709 (lines=10) @@
|
| 697 |
|
* |
| 698 |
|
* @return string |
| 699 |
|
*/ |
| 700 |
|
public function dateTimeLocalFieldRow(IFormModel $model, $property, array $options = []) |
| 701 |
|
{ |
| 702 |
|
$element = $this->getField($model, $property); |
| 703 |
|
$options['id'] = $element['id']; |
| 704 |
|
|
| 705 |
|
return Html::openTag('div', $this->getBlock('block', $options)) . |
| 706 |
|
Html::label($model->getLabel($property), $element['id'], $this->getBlock('label', $options)) . |
| 707 |
|
$this->dateTimeLocalField($model, $property, $options) . |
| 708 |
|
Html::closeTag('div'); |
| 709 |
|
} |
| 710 |
|
|
| 711 |
|
/** |
| 712 |
|
* Render datetime-local field tag |
|
@@ 741-750 (lines=10) @@
|
| 738 |
|
* |
| 739 |
|
* @return string |
| 740 |
|
*/ |
| 741 |
|
public function emailFieldRow(IFormModel $model, $property, array $options = []) |
| 742 |
|
{ |
| 743 |
|
$element = $this->getField($model, $property); |
| 744 |
|
$options['id'] = $element['id']; |
| 745 |
|
|
| 746 |
|
return Html::openTag('div', $this->getBlock('block', $options)) . |
| 747 |
|
Html::label($model->getLabel($property), $element['id'], $this->getBlock('label', $options)) . |
| 748 |
|
$this->emailField($model, $property, $options) . |
| 749 |
|
Html::closeTag('div'); |
| 750 |
|
} |
| 751 |
|
|
| 752 |
|
/** |
| 753 |
|
* Render email field tag |
|
@@ 782-791 (lines=10) @@
|
| 779 |
|
* |
| 780 |
|
* @return string |
| 781 |
|
*/ |
| 782 |
|
public function numberFieldRow(IFormModel $model, $property, array $options = []) |
| 783 |
|
{ |
| 784 |
|
$element = $this->getField($model, $property); |
| 785 |
|
$options['id'] = $element['id']; |
| 786 |
|
|
| 787 |
|
return Html::openTag('div', $this->getBlock('block', $options)) . |
| 788 |
|
Html::label($model->getLabel($property), $element['id'], $this->getBlock('label', $options)) . |
| 789 |
|
$this->numberField($model, $property, $options) . |
| 790 |
|
Html::closeTag('div'); |
| 791 |
|
} |
| 792 |
|
|
| 793 |
|
/** |
| 794 |
|
* Render number field tag |
|
@@ 823-832 (lines=10) @@
|
| 820 |
|
* |
| 821 |
|
* @return string |
| 822 |
|
*/ |
| 823 |
|
public function rangeFieldRow(IFormModel $model, $property, array $options = []) |
| 824 |
|
{ |
| 825 |
|
$element = $this->getField($model, $property); |
| 826 |
|
$options['id'] = $element['id']; |
| 827 |
|
|
| 828 |
|
return Html::openTag('div', $this->getBlock('block', $options)) . |
| 829 |
|
Html::label($model->getLabel($property), $element['id'], $this->getBlock('label', $options)) . |
| 830 |
|
$this->rangeField($model, $property, $options) . |
| 831 |
|
Html::closeTag('div'); |
| 832 |
|
} |
| 833 |
|
|
| 834 |
|
/** |
| 835 |
|
* Render range field tag |
|
@@ 864-873 (lines=10) @@
|
| 861 |
|
* |
| 862 |
|
* @return string |
| 863 |
|
*/ |
| 864 |
|
public function searchFieldRow(IFormModel $model, $property, array $options = []) |
| 865 |
|
{ |
| 866 |
|
$element = $this->getField($model, $property); |
| 867 |
|
$options['id'] = $element['id']; |
| 868 |
|
|
| 869 |
|
return Html::openTag('div', $this->getBlock('block', $options)) . |
| 870 |
|
Html::label($model->getLabel($property), $element['id'], $this->getBlock('label', $options)) . |
| 871 |
|
$this->searchField($model, $property, $options) . |
| 872 |
|
Html::closeTag('div'); |
| 873 |
|
} |
| 874 |
|
|
| 875 |
|
/** |
| 876 |
|
* Render search field tag |
|
@@ 905-914 (lines=10) @@
|
| 902 |
|
* |
| 903 |
|
* @return string |
| 904 |
|
*/ |
| 905 |
|
public function telFieldRow(IFormModel $model, $property, array $options = []) |
| 906 |
|
{ |
| 907 |
|
$element = $this->getField($model, $property); |
| 908 |
|
$options['id'] = $element['id']; |
| 909 |
|
|
| 910 |
|
return Html::openTag('div', $this->getBlock('block', $options)) . |
| 911 |
|
Html::label($model->getLabel($property), $element['id'], $this->getBlock('label', $options)) . |
| 912 |
|
$this->telField($model, $property, $options) . |
| 913 |
|
Html::closeTag('div'); |
| 914 |
|
} |
| 915 |
|
|
| 916 |
|
/** |
| 917 |
|
* Render telephone tag |
|
@@ 946-955 (lines=10) @@
|
| 943 |
|
* |
| 944 |
|
* @return string |
| 945 |
|
*/ |
| 946 |
|
public function timeFieldRow(IFormModel $model, $property, array $options = []) |
| 947 |
|
{ |
| 948 |
|
$element = $this->getField($model, $property); |
| 949 |
|
$options['id'] = $element['id']; |
| 950 |
|
|
| 951 |
|
return Html::openTag('div', $this->getBlock('block', $options)) . |
| 952 |
|
Html::label($model->getLabel($property), $element['id'], $this->getBlock('label', $options)) . |
| 953 |
|
$this->timeField($model, $property, $options) . |
| 954 |
|
Html::closeTag('div'); |
| 955 |
|
} |
| 956 |
|
|
| 957 |
|
/** |
| 958 |
|
* Render time field tag |
|
@@ 987-996 (lines=10) @@
|
| 984 |
|
* |
| 985 |
|
* @return string |
| 986 |
|
*/ |
| 987 |
|
public function urlFieldRow(IFormModel $model, $property, array $options = []) |
| 988 |
|
{ |
| 989 |
|
$element = $this->getField($model, $property); |
| 990 |
|
$options['id'] = $element['id']; |
| 991 |
|
|
| 992 |
|
return Html::openTag('div', $this->getBlock('block', $options)) . |
| 993 |
|
Html::label($model->getLabel($property), $element['id'], $this->getBlock('label', $options)) . |
| 994 |
|
$this->urlField($model, $property, $options) . |
| 995 |
|
Html::closeTag('div'); |
| 996 |
|
} |
| 997 |
|
|
| 998 |
|
/** |
| 999 |
|
* Render url field tag |
|
@@ 1028-1037 (lines=10) @@
|
| 1025 |
|
* |
| 1026 |
|
* @return string |
| 1027 |
|
*/ |
| 1028 |
|
public function monthFieldRow(IFormModel $model, $property, array $options = []) |
| 1029 |
|
{ |
| 1030 |
|
$element = $this->getField($model, $property); |
| 1031 |
|
$options['id'] = $element['id']; |
| 1032 |
|
|
| 1033 |
|
return Html::openTag('div', $this->getBlock('block', $options)) . |
| 1034 |
|
Html::label($model->getLabel($property), $element['id'], $this->getBlock('label', $options)) . |
| 1035 |
|
$this->monthField($model, $property, $options) . |
| 1036 |
|
Html::closeTag('div'); |
| 1037 |
|
} |
| 1038 |
|
|
| 1039 |
|
/** |
| 1040 |
|
* Render moth field tag |
|
@@ 1069-1078 (lines=10) @@
|
| 1066 |
|
* |
| 1067 |
|
* @return string |
| 1068 |
|
*/ |
| 1069 |
|
public function weekFieldRow(IFormModel $model, $property, array $options = []) |
| 1070 |
|
{ |
| 1071 |
|
$element = $this->getField($model, $property); |
| 1072 |
|
$options['id'] = $element['id']; |
| 1073 |
|
|
| 1074 |
|
return Html::openTag('div', $this->getBlock('block', $options)) . |
| 1075 |
|
Html::label($model->getLabel($property), $element['id'], $this->getBlock('label', $options)) . |
| 1076 |
|
$this->weekField($model, $property, $options) . |
| 1077 |
|
Html::closeTag('div'); |
| 1078 |
|
} |
| 1079 |
|
|
| 1080 |
|
/** |
| 1081 |
|
* Render week field tag |