From fc860d7b928e56ae009a352a786c92e5eda2cc7e Mon Sep 17 00:00:00 2001 From: Mohammad Farouk Date: Sun, 16 Jun 2024 22:49:05 +0300 Subject: [PATCH] adding referral.mustache --- templates/referral.mustache | 72 +++++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 templates/referral.mustache diff --git a/templates/referral.mustache b/templates/referral.mustache new file mode 100644 index 00000000..6ef4b642 --- /dev/null +++ b/templates/referral.mustache @@ -0,0 +1,72 @@ +{{! + 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 enrol_wallet/referral + + TODO describe template referral + + Example context (json): + { + } +}} + +
+
+
+
+

{{#str}} referral_header, enrol_wallet{{/str}}

+

{{#str}} referral_subheader, enrol_wallet, {{amount}} {{/str}}

+ + +
+
+

{{#str}} share_referral, enrol_wallet{{/str}}

+
    +
  • +
  • +
  • +
  • +
+
+
+
+
+ +
+
+
+
+ +{{#js}} + require(['enrol_wallet/referral'], function(ref) { + ref.init('{{url}}', '{{uniqid}}'); + }); +{{/js}} \ No newline at end of file