MDL-55417 forms: Clean up form element template patch
authorDamyon Wiese <damyon@moodle.com>
Thu, 11 Aug 2016 09:16:59 +0000 (17:16 +0800)
committerDan Poltawski <dan@moodle.com>
Fri, 23 Sep 2016 09:53:30 +0000 (10:53 +0100)
commit344321e1ef968aa1f41a78d6e04eb5b84f04e407
tree64104a4ea5cdd90cb5e67eea0094dd234124f3c5
parent91bda4cd45e91f356036b1fd73bc8efcfb089166
MDL-55417 forms: Clean up form element template patch

Use a trait and a base mustache template for all form elements to reduce code
duplication and increase standardisation.

Part of MDL-55071
54 files changed:
lib/form/advcheckbox.php
lib/form/button.php
lib/form/checkbox.php
lib/form/editor.php
lib/form/filemanager.php
lib/form/filepicker.php
lib/form/grading.php
lib/form/group.php
lib/form/password.php
lib/form/radio.php
lib/form/recaptcha.php
lib/form/select.php
lib/form/selectgroups.php
lib/form/static.php
lib/form/submit.php
lib/form/templatable_form_element.php [new file with mode: 0644]
lib/form/text.php
lib/form/textarea.php
lib/form/url.php
lib/form/warning.php
theme/noname/scss/moodle/buttons.scss
theme/noname/templates/core_form/element-autocomplete.mustache
theme/noname/templates/core_form/element-button-inline.mustache
theme/noname/templates/core_form/element-button.mustache
theme/noname/templates/core_form/element-checkbox-inline.mustache
theme/noname/templates/core_form/element-checkbox.mustache
theme/noname/templates/core_form/element-date_selector.mustache
theme/noname/templates/core_form/element-date_time_selector-inline.mustache [new file with mode: 0644]
theme/noname/templates/core_form/element-date_time_selector.mustache
theme/noname/templates/core_form/element-duration-inline.mustache [new file with mode: 0644]
theme/noname/templates/core_form/element-editor.mustache
theme/noname/templates/core_form/element-filemanager.mustache
theme/noname/templates/core_form/element-filepicker.mustache
theme/noname/templates/core_form/element-grading.mustache
theme/noname/templates/core_form/element-group-inline.mustache [new file with mode: 0644]
theme/noname/templates/core_form/element-group.mustache
theme/noname/templates/core_form/element-password.mustache
theme/noname/templates/core_form/element-radio-inline.mustache [new file with mode: 0644]
theme/noname/templates/core_form/element-radio.mustache [new file with mode: 0644]
theme/noname/templates/core_form/element-recaptcha.mustache
theme/noname/templates/core_form/element-select-inline.mustache
theme/noname/templates/core_form/element-select.mustache
theme/noname/templates/core_form/element-selectgroups-inline.mustache
theme/noname/templates/core_form/element-selectgroups.mustache
theme/noname/templates/core_form/element-static.mustache
theme/noname/templates/core_form/element-submit-inline.mustache
theme/noname/templates/core_form/element-submit.mustache
theme/noname/templates/core_form/element-template-inline.mustache [new file with mode: 0644]
theme/noname/templates/core_form/element-template.mustache [new file with mode: 0644]
theme/noname/templates/core_form/element-text-inline.mustache
theme/noname/templates/core_form/element-text.mustache
theme/noname/templates/core_form/element-textarea.mustache
theme/noname/templates/core_form/element-url.mustache
theme/noname/templates/core_form/element-warning.mustache