-
Notifications
You must be signed in to change notification settings - Fork 9
/
orderstatus.html
102 lines (93 loc) · 5.24 KB
/
orderstatus.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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
{% extends "layout.html" %}
{% block content %}
<div class="jumbotron page-title-inner">
<div class="container">
<header class="page-title">
<h1 class="text-center text-white text-shadow">{{ __("Order Status") }}</h1>
</header>
</div>
</div>
<div id="content-outer" class="container px-0 px-lg-3">
<section class="bg-white p-0 row no-gutters border-left border-right">
<div class="col-12">
<div class="p-xl-5 p-4">
<p>{{ __("To look up a payment, you must provide your Minecraft username, and one of: transaction ID, email address or the value of the purchase:") }}</p>
<form action='?' method='post'>
<div class="form-group">
<div class="input-group">
<div class="input-group-prepend">
<span class="input-group-text"><i class="fas fa-user"></i></span>
</div>
<input type="text" class="form-control" name="ign" value="{{ params.ign }}" placeholder="Enter username" />
</div>
</div>
<div class="form-group">
<div class="input-group">
<div class="input-group-prepend">
<span class="input-group-text"><i class="fas fa-fingerprint"></i></span>
</div>
<input type="text" class="form-control" name="txn" value="{{ params.txn }}" placeholder="Transaction ID" />
</div>
</div>
<div class="form-group">
<div class="input-group">
<div class="input-group-prepend">
<span class="input-group-text"><i class="fas fa-envelope"></i></span>
</div>
<input type="text" class="form-control" name="email" value="{{ params.email }}" placeholder="Email Address" />
</div>
</div>
<div class="form-group">
<div class="input-group">
<div class="input-group-prepend">
<span class="input-group-text"><i class="fas fa-money-bill"></i></span>
</div>
<input type="text" class="form-control" name="amount" value="{{ params.amount }}" placeholder="Purchase Value" />
</div>
</div>
<div class="row">
<div class="col-12 text-right">
<button type="submit" class="btn btn-success">{{ __("Search Payments") }}</button>
</div>
</div>
</form>
{% if params %}
{% if payments|length > 0 %}
<p>{{ _p("There is :payment_count matching payment", payments|length, {"payment_count": payments|length}) }}</p>
{% for payment in payments %}
<table class="table table-hover table-striped well border">
<thead>
<tr>
<td class="name" colspan="2"><strong>{{ payment.order_date|date("Y-m-d") }} - {{ payment.payment_status }}</strong></td>
</tr>
</thead>
<tbody>
<tr>
<td>{{ __("Order Price:") }}</td>
<td>{{ payment.currency }}{{ payment.price|number_format(2, ".", ",") }}</td>
</tr>
<tr>
<td>{{ __("Commands Executed:") }}</td>
<td>{{ payment.commands_executed }}</td>
</tr>
<tr>
<td>{{ __("Commands Due:") }}</td>
<td>{{ payment.commands_due }}</td>
</tr>
<tr>
<td>{{ __("Commands Scheduled:") }}</td>
<td>{{ payment.commands_scheduled }}</td>
</tr>
</tbody>
</table>
{% endfor %}
{% else %}
<p>{{ __("There are no payments matching these details") }}</p>
{% endif %}
{% endif %}
</div>
</div>
</section>
</div>
{% include "content_footer.html" %}
{% endblock %}