{{! 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 . }} {{! @template paygw_moneta/payment_form Карточка перехода на платёжную страницу MONETA.Assistant: логотип со ссылкой на moneta.ru, что оплачивается, сумма, кнопка и пояснение. Сама не уходит — покупатель нажимает «Оплатить»; после нажатия кнопка блокируется, чтобы повторный клик не отправил форму дважды. Название может быть длинным: переносится, не растягивая карточку. Context variables required for this template: * action - адрес платёжной формы * cost - сумма с валютой для показа * description - описание заказа * iscourse - оплачивается запись на курс (enrol_fee) * logourl - адрес логотипа * fields - подписанные поля формы: name, value Example context (json): { "action": "https://demo.moneta.ru/assistant.htm", "cost": "120,25 ₽", "description": "Монета", "iscourse": true, "logourl": "https://example.test/theme/image.php/boost/paygw_moneta/1/img", "fields": [{"name": "MNT_ID", "value": "54600817"}] } }}
{{#str}}opensinnewwindow{{/str}}
{{#iscourse}}{{#str}}checkout:course, paygw_moneta{{/str}}{{/iscourse}} {{^iscourse}}{{#str}}checkout:item, paygw_moneta{{/str}}{{/iscourse}}

{{description}}

{{#str}}checkout:total, paygw_moneta{{/str}} {{cost}}
{{#fields}} {{/fields}}
{{#pix}}i/lock, core{{/pix}}
{{#str}}checkout:secure, paygw_moneta{{/str}}
{{#iscourse}}
{{#str}}checkout:access, paygw_moneta{{/str}}
{{/iscourse}}
{{#js}} (function() { var form = document.getElementById('paygw-moneta-form-{{uniqid}}'); form.addEventListener('submit', function() { var button = form.querySelector('button[type="submit"]'); button.disabled = true; button.textContent = {{#quote}}{{#str}}redirecting, paygw_moneta{{/str}}{{/quote}}; }); })(); {{/js}}