mirror of
https://github.com/moodle/moodle.git
synced 2025-02-06 16:19:47 +01:00
dc2721083c
This template shouldn't really be using string helpers inside string helpers like it does, and this is unsupported in 4.3. This just moves the string resolution to js land and then passes that resolved string into the template instead.
38 lines
1.0 KiB
Plaintext
38 lines
1.0 KiB
Plaintext
{{!
|
|
This file is part of Moodle - http://moodle.org/
|
|
|
|
Moodle is free software: you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation, either version 3 of the License, or
|
|
(at your option) any later version.
|
|
|
|
Moodle is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
|
}}
|
|
{{!
|
|
@template core_payment/fee_breakdown
|
|
|
|
Classes required for JS:
|
|
* none
|
|
|
|
Data attributes required for JS:
|
|
* none
|
|
|
|
Context variables required for this template:
|
|
* surchargestr
|
|
|
|
Example context (json):
|
|
{
|
|
"surchargestr": "Cost: $10.00"
|
|
}
|
|
|
|
}}
|
|
<div class="core_payment_fee_breakdown">
|
|
{{surchargestr}}
|
|
</div>
|