expephalon/templates/backend/brands/index.html
Klaus-Uwe Mitterer 853a49abe8 Implement brands
More administration pages *whoop-whoop*
2020-05-31 14:08:26 +02:00

61 lines
No EOL
2.6 KiB
HTML

{% 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>Brands
<div class="page-title-subheading">Create, edit and delete brands
</div>
</div>
</div>
<div class="page-title-actions">
<a href="{% url "brands_create" %}" type="button" data-toggle="tooltip" title="New Brand" data-placement="bottom" class="btn-shadow mr-3 btn btn-success">
<i class="fa fa-plus"></i> New Brand
</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 Brands
</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>Country</th>
<th>Options</th>
</tr>
</thead>
<tbody>
{% for brand in object_list %}
<tr>
<td>{{ brand.name }}</td>
<td>{{ brand.country }}</td>
<td><a href="{% url "brands_edit" brand.id %}"><i class="fas fa-edit" title="Edit Brand"></i></a> <a href="{% url "brands_delete" brand.id %}"><i style="color: darkred;" class="fas fa-trash-alt" title="Delete Brand"></i></a></td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
{% endblock %}