From ce18fb1e864e031956d32b085b454588e31e679c Mon Sep 17 00:00:00 2001 From: Damyon Wiese Date: Tue, 16 Aug 2016 13:53:04 +0800 Subject: [PATCH] MDL-55417 forms: Change iscancel property to issecondary for submit buttons This is more future proof for the template. Part of MDL-55071 --- lib/form/submit.php | 2 +- theme/noname/templates/core_form/element-submit.mustache | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/form/submit.php b/lib/form/submit.php index 99712b04e65..692188e9233 100644 --- a/lib/form/submit.php +++ b/lib/form/submit.php @@ -116,7 +116,7 @@ class MoodleQuickForm_submit extends HTML_QuickForm_submit implements templatabl public function export_for_template(renderer_base $output) { $context = $this->export_for_template_base($output); if ($this->getName() == 'cancel') { - $context['iscancel'] = true; + $context['secondary'] = true; } return $context; } diff --git a/theme/noname/templates/core_form/element-submit.mustache b/theme/noname/templates/core_form/element-submit.mustache index 2f7c9a7e011..25f53e7cb45 100644 --- a/theme/noname/templates/core_form/element-submit.mustache +++ b/theme/noname/templates/core_form/element-submit.mustache @@ -2,8 +2,8 @@ {{$element}} {{/element}} -{{/ core_form/element-template }} \ No newline at end of file +{{/ core_form/element-template }} -- 2.43.0