69 lines
2.8 KiB
HTML
69 lines
2.8 KiB
HTML
{% extends "BaseLogin.html" %}
|
|
{% block title %} List {% endblock %}
|
|
{% block content %}
|
|
<h1> Plano de Contas </h1><br>
|
|
<div class="row mb-3">
|
|
<div class="col-md-6">
|
|
<form method="get" action="{% url 'ChartOfAccountListView' %}">
|
|
<div class="input-group">
|
|
<input type="text" class="form-control" name="name"
|
|
placeholder="Nome" value="{{ request.GET.name }}">
|
|
<button type="submit" class="btn btn-primary">
|
|
<i class="bi bi-search"></i>
|
|
</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
{# {% if perms.brands.add_brands %}#}
|
|
<div class="col-md-6">
|
|
<a href="{% url 'ChartOfAccountCreateView' %}" class="btn btn-success float-end">
|
|
<i class="bi bi-plus"></i> Criar </a>
|
|
</div>
|
|
{# {% endif %}#}
|
|
</div>
|
|
|
|
<div class="table-responsive">
|
|
<table class="table table-striped table-bordered">
|
|
<thead class="thead-dark">
|
|
<tr align="center">
|
|
{# <th> ID </th>#}
|
|
<th> Nome </th>
|
|
<th > Notas </th>
|
|
<th width="10%"> Debito </th>
|
|
<th width="10%"> Firma </th>
|
|
<th width="15%"> Ações </th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for Chart in ChartOfAccount %}
|
|
<tr align="center">
|
|
{# <td> {{ Chart.id }} </td>#}
|
|
<td> {{ Chart.name }} </td>
|
|
<td> {{ Chart.notes }} </td>
|
|
<td> {% if Chart.debit %} <i class="bi bi-check-circle-fill text-success "></i>
|
|
{% else %} <i class="bi bi-x-circle-fill text-danger "></i> {% endif %} </td>
|
|
<td> {% if Chart.firm %} <i class="bi bi-check-circle-fill text-success "></i>
|
|
{% else %} <i class="bi bi-x-circle-fill text-danger "></i> {% endif %} </td>
|
|
<td>
|
|
<a href="{% url 'ChartOfAccountDetailView' Chart.id %}" class="btn btn-info btn-sm">
|
|
<i class="bi bi-eye"></i>
|
|
</a>
|
|
{# {% if perms.brands.change_brands %}#}
|
|
<a href="{% url 'ChartOfAccountUpdateView' Chart.id %}" class="btn btn-warning btn-sm">
|
|
<i class="bi bi-pencil"></i>
|
|
</a>
|
|
{# {% endif %}#}
|
|
{# {% if perms.brands.delete_brands %}#}
|
|
<a href="{% url 'ChartOfAccountDeleteView' Chart.id %}" class="btn btn-danger btn-sm">
|
|
<i class="bi bi-trash"></i>
|
|
</a>
|
|
{# {% endif %}#}
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
{% include 'components/_pagination.html' %}
|
|
{% endblock %}
|