Skip to content

Commit

Permalink
Fix mustache
Browse files Browse the repository at this point in the history
  • Loading branch information
fmido88 authored Feb 3, 2024
1 parent e159c87 commit 3a41c89
Showing 1 changed file with 30 additions and 33 deletions.
63 changes: 30 additions & 33 deletions templates/display.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -57,42 +57,39 @@
{{# currentuser}}
<h3 class="wallet-heading" style="text-align: center;"> {{# str }} mywallet, enrol_wallet {{/ str }} </h3>
{{/ currentuser}}
<p style="text-align: center; direction: ltr;">
<div class="balance-card" style="text-align: center; direction: ltr;">
{{# currentuser}}{{# str }} youhavebalance, enrol_wallet {{/ str }}{{/ currentuser}}<br>
<strong><span class="wallet-ballance" style="font-size: x-large;">{{balance}} {{currency}}</span></strong><br>
{{#currentuser}}{{# str }} inyourwallet, enrol_wallet {{/ str }} <br>{{/currentuser}}
<span class="wallet-ballance">{{# str }} mainbalance, enrol_wallet {{/ str }} {{main}} {{currency}}</span><br>
<span class="wallet-ballance">{{# str }} notrefund, enrol_wallet {{/ str }} {{norefund}} {{currency}}</span><br>
{{# hasdetails}}
<a href="#" id="more-details-{{uniqid}}"> More Details </a><br>
{{/ hasdetails}}
<div id="balance-details-{{uniqid}}" style="display:none;" class="enrol-wallet-balance-details">
{{# catdetails }}
<ul style="text-align: left;">
<li><strong>{{ name }}</strong></li>
<li>Refundable: {{refundable}}</li>
<li>Non-refundable: {{nonrefundable}}</li>
<li>Total: {{total}}</li>
</ul>
{{/ catdetails }}
</div>
{{# policy}}
<a href="#" id="enrol_wallet_transactions-policy-url-{{uniqid}}" class="transactions-policy-url"> {{# str }} refundpolicy, enrol_wallet {{/ str }}</a><br>
<div id="enrol_wallet_transactions-policy-{{uniqid}}" class="transactions-policy" style="text-align: left; display:none;">{{{policy}}}</div>
{{/ policy}}
<div class="balance-card" style="text-align: center; direction: ltr;">
{{# currentuser}}{{# str }} youhavebalance, enrol_wallet {{/ str }}{{/ currentuser}}<br>
<strong><span class="wallet-ballance" style="font-size: x-large;">{{balance}} {{currency}}</span></strong><br>
{{#currentuser}}{{# str }} inyourwallet, enrol_wallet {{/ str }} <br>{{/currentuser}}
<span class="wallet-ballance">{{# str }} mainbalance, enrol_wallet {{/ str }} {{main}} {{currency}}</span><br>
<span class="wallet-ballance">{{# str }} notrefund, enrol_wallet {{/ str }} {{norefund}} {{currency}}</span><br>
{{# hasdetails}}
<a href="#" id="more-details-{{uniqid}}"> More Details </a><br>
{{/ hasdetails}}
<div id="balance-details-{{uniqid}}" style="display:none;" class="enrol-wallet-balance-details">
{{# catdetails }}
<ul style="text-align: left;">
<li><strong>{{ name }}</strong></li>
<li>Refundable: {{refundable}}</li>
<li>Non-refundable: {{nonrefundable}}</li>
<li>Total: {{total}}</li>
</ul>
{{/ catdetails }}
</div>
<span class="transactions-url" style="text-align: center;">{{{transactions}}}</span><br>
{{# transfer}}
<span class="transfer-url" style="text-align: center;">{{{transfer}}}</span><br>
{{/ transfer}}
{{# referral}}
<span class="referral-url" style="text-align: center;">{{{referral}}}</span>
{{/ referral}}
</p>
{{# policy}}
<a href="#" id="enrol_wallet_transactions-policy-url-{{uniqid}}" class="transactions-policy-url"> {{# str }} refundpolicy, enrol_wallet {{/ str }}</a><br>
<div id="enrol_wallet_transactions-policy-{{uniqid}}" class="transactions-policy" style="text-align: left; display:none;">{{{policy}}}</div>
{{/ policy}}
</div>
<span class="transactions-url" style="text-align: center;">{{{transactions}}}</span><br>
{{# transfer}}
<span class="transfer-url" style="text-align: center;">{{{transfer}}}</span><br>
{{/ transfer}}
{{# referral}}
<span class="referral-url" style="text-align: center;">{{{referral}}}</span>
{{/ referral}}
</div>
{{#js}}
require(['enrol_wallet/expenders'], function(ex) {
ex.init('{{uniqid}}');
Expand Down

0 comments on commit 3a41c89

Please sign in to comment.