File "orders.twig"
Full Path: /home/cananyalcin/public_html/core/temp/client/owlet/orders.twig
File size: 5.69 KB
MIME-type: text/html
Charset: utf-8
{% include 'header.twig' %}
<!-- Main variables *content* -->
<section id="contentContainer">
<div class="container-fluid">
<div class="container-fluid">
<div class="row">
<div class="col-lg-12">
<ul class="nav nav-pills ">
<li class="active"><a href="/orders">All</a></li>
<li ><a href="/orders/pending">Pending</a></li>
<li ><a href="/orders/inprogress">In progress</a></li>
<li ><a href="/orders/completed">Completed</a></li>
<li ><a href="/orders/partial">Partial</a></li>
<li ><a href="/orders/processing">Processing</a></li>
<li ><a href="/orders/canceled">Canceled</a></li>
<li class="pull-right search">
<form action="/orders" method="get" id="history-search">
<div class="input-group">
<input type="text" name="search" class="form-control" value="" placeholder="Search">
<span class="input-group-btn">
<button type="submit" class="btn btn-default"><i class="fa fa-search" aria-hidden="true"></i></button>
</span>
</div>
</form>
</li>
</ul>
<div class="well well-float">
<table class="table ">
<thead>
<tr>
<th>ID</th>
<th>Date</th>
<th class="width-40">Link</th>
<th>Charge</th>
<th class="nowrap">Start count</th>
<th>Quantity</th>
<th>Service</th>
<th>Status</th>
<th>Remains</th>
</tr>
</thead>
<tbody>
{% for order in orders %}
<tr>
<td>
<span id="order-{{ order['id'] }}">{{ order['id'] }}</span>
{% if order['order_where'] == "api" %}<a class="btn btn-actions">Api</a>{% endif %} </td>
<td>{{ order['date'] }}</td>
<td width="20%"><a target="_blank" href="{{ order['link'] }}">{{ order['link'] }}</a></td>
<td>{{ currency['symbol'] }}{{ (order['charge']*currency['value']) }}</td>
<td class="nowrap">{{ order['start_count'] }}</td>
<td>{{ order['quantity'] }}</td>
<td width="20%">{{ order['service'] }}</td>
<td>{{ order['status'] }}</td>
<td>{{ order['remains'] }}</td>
<td>
{% if order['refillbutton'] == "true" %}
{% if order['status'] == "Completed" %}
{% if order['refill'] == 1 %}
{% if order['show_refill'] == "true" %}
<form action="" method="post" id="history-search">
<input type="hidden" name="order_id" value="{{ order['id'] }}" />
<input id="refill-button" class=" btn btn-actions" type="submit" value="Refill" name="refill">
</div>
</form>
{% endif %}
{% endif %}
{% endif %}
{% endif %}
{% if order['cancel_button'] == "true" %}
<a href="orders/cancel/{{order['id']}}" class="btn btn-actions">cancel</a>
{% endif %}
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</section>
{% if pagination["count"] > 1 %}
<ul class="pagination">
{% if pagination["current"] != 1 %}
<li>
<a class="btn btn-actions" href="orders/{{ status }}/{{ pagination["previous"] }}{% if search %}?search={{ search }}{% endif %}" aria-label="Previous">
<span aria-hidden="true">«</span>
</a>
</li>
{% endif %}
{% set r, l = 3, 3 %}
{% if pagination['current'] == 1 %}
{% set r = 7 %}
{% endif %}
{% if pagination['current'] == 2 %}
{% set r = 5 %}
{% endif %}
{% if pagination['current'] >= pagination['count'] %}
{% set l = 5 %}
{% endif %}
{% for page in 1..pagination["count"] %}
{% if page >= (pagination['current']-l) and page <= (pagination['current']+r) %}
<li{% if page == pagination['current'] %} class="active" {%endif%}><a class="btn btn-actions"
href="orders/{{ status }}/{{ page }}{% if search %}?search={{ search }}{% endif %}">{{ page }}</a></li>
{%endif%}
{% endfor %}
{% if pagination['current'] < pagination['count'] %}
<li>
<a class="btn btn-actions" href="orders/{{ status }}/{{ pagination['next'] }}{% if search %}?search={{ search }}{% endif %}" aria-label="Next">
<span aria-hidden="true">»</span>
</a>
</li>
{% endif %}
</ul>
{% endif %}
</div>
</div></div>
</div></div></div></div></div>
</div</div></div>
</div></div></div>
</div>
{% if contentText2 %}
{{ contentText2 }}
{% endif %}
{% include 'footer.twig' %}