-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmodule.giftcardbalance.html
More file actions
24 lines (22 loc) · 1.21 KB
/
module.giftcardbalance.html
File metadata and controls
24 lines (22 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<div class="widget p-4 module-gift" id="giftcardbalance">
<h4><i class="bi bi-wallet2 icon-right"></i>{{ module.header }}</h4>
<div class="giftcardbalance pt-3">
<form action="#giftcardbalance" method='post'>
<div class="input-group d-flex w-100 justify-content-center align-items-center flex-column">
<input type="text" name="card_number" placeholder="Card Number" class="form-control w-100" value="{{ search }}">
<div class="input-group-append w-100 mt-3">
<button class="btn btn-primary btn-sm w-100 dh-bg-purple">{{ __("Check") }} <i class="fas fa-chevron-right ml-1"></i></button>
</div>
</div>
{% if search %}
{% if giftcard == false or giftcard.card_number == false %}
<p class='alert alert-danger'>{{ __("No card found") }}</p>
{% elseif giftcard.void == 1 %}
<p class='alert alert-warning'>{{ __("This gift card has been marked as void") }}</p>
{% else %}
<p><strong>{{ __("Card balance:") }} {{ giftcard.remaining_balance }} {{ store.currency }}</strong></p>
{% endif %}
{% endif %}
</form>
</div>
</div>