-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmodule.giftcardbalance.html
More file actions
24 lines (22 loc) · 1.19 KB
/
module.giftcardbalance.html
File metadata and controls
24 lines (22 loc) · 1.19 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 p-md-5 border-top module panel box-container" id="giftcardbalance">
<h4 class="module-title"><i class="fas fa-fire"></i> {{ module.header }}</h4>
<div class="giftcardbalance">
<form action="#giftcardbalance" method='post'>
<div class="input-group mb-3">
<input type="text" name="card_number" placeholder="Card Number" class="form-control giftform" value="{{ search }}">
<div class="input-group-append">
<button class="btn btn-primary btn-sm">{{ __("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>