2020-06-03 10:35:23 +00:00
|
|
|
{% extends "backend/base.html" %}
|
|
|
|
{% block content %}
|
|
|
|
<div class="app-page-title">
|
|
|
|
<div class="page-title-wrapper">
|
|
|
|
<div class="page-title-heading">
|
|
|
|
<div class="page-title-icon">
|
|
|
|
<i class="fa fa-users-cog">
|
|
|
|
</i>
|
|
|
|
</div>
|
|
|
|
<div>Currencies
|
|
|
|
<div class="page-title-subheading">Create, edit and delete currencies
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="page-title-actions">
|
|
|
|
<a href="{% url "currencies_create" %}" type="button" data-toggle="tooltip" title="New Currency" data-placement="bottom" class="btn-shadow mr-3 btn btn-success">
|
|
|
|
<i class="fa fa-plus"></i> New Currency
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-12 col-lg-0">
|
|
|
|
<div class="mb-3 card">
|
|
|
|
<div class="card-header-tab card-header-tab-animation card-header">
|
|
|
|
<div class="card-header-title">
|
|
|
|
<i class="header-icon lnr-apartment icon-gradient bg-love-kiss"> </i>
|
|
|
|
Active Currencies
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="card-body">
|
|
|
|
<div class="tab-content">
|
|
|
|
<div class="tab-pane fade show active" id="tabs-eg-77">
|
|
|
|
<div class="card mb-3 widget-chart widget-chart2 text-left w-100">
|
|
|
|
<table class="mb-0 table table-hover">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Name</th>
|
|
|
|
<th>Code</th>
|
|
|
|
<th>Symbol</th>
|
2020-06-10 11:43:14 +00:00
|
|
|
<th>Exchange Rate to {{ base_currency.code }}</th>
|
2020-06-03 10:35:23 +00:00
|
|
|
<th>Options</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{% for currency in object_list %}
|
|
|
|
<tr>
|
2020-06-10 11:43:14 +00:00
|
|
|
<td>{% if currency == base_currency %}<b>{{ currency.name }}</b>{% else %}{{ currency.name }}{% endif %}</td>
|
2020-06-03 10:35:23 +00:00
|
|
|
<td>{{ currency.code }}</td>
|
|
|
|
<td>{{ currency.symbol }}</td>
|
2020-06-10 11:43:14 +00:00
|
|
|
<td>{{ currency.rate }}</td>
|
2020-06-03 10:35:23 +00:00
|
|
|
<td><a href="{% url "currencies_edit" currency.id %}"><i class="fas fa-edit" title="Edit Currency"></i></a> <a href="{% url "currencies_delete" currency.id %}"><i style="color: darkred;" class="fas fa-trash-alt" title="Delete Currency"></i></a></td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|