-
Notifications
You must be signed in to change notification settings - Fork 0
/
module.giftcardbalance.html
26 lines (24 loc) · 1.31 KB
/
module.giftcardbalance.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<div class="panel panel-default module box-container" id="giftcardbalance">
<div class="panel-heading">
<div class="header" style="margin-top:0px;margin-bottom:0px;">{{ module.header }}</div>
</div>
<div class="panel-body content" style="width:auto;float:none;">
<div class="giftcardbalance" style="text-align:center;">
<form action='#giftcardbalance' method='post'>
<div class="input-group">
<input type="text" name="card_number" placeholder="Card Number" class="form-control" value="{{ search }}" />
<div class="input-group-btn"><button class="btn btn-primary">Check <i class="fa fa-arrow-right"></i></button></div>
</div>
{% if search %}
<hr />
{% 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 %}
</div>
</div>
</div>