73 lines
2.7 KiB
HTML
73 lines
2.7 KiB
HTML
{% extends "BaseLogin.html" %}
|
|
{% block title %} List {% endblock %}
|
|
{% block content %}
|
|
<h1> Entrada de Estoque </h1><br>
|
|
<div class="row mb-3">
|
|
<div class="col-md-3">
|
|
<form method="get" action="{% url 'MovStockListView' %}" id="filterForm">
|
|
<div class="input-group">
|
|
<input type="date" class="date form-control" name="date"
|
|
placeholder="Dia" value="{{ request.GET.date }}"
|
|
onchange="document.getElementById('filterForm').submit();"
|
|
>
|
|
<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 'MovStockCreateView' %}" 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> date </th>
|
|
<th> product </th>
|
|
<th> quantity </th>
|
|
<th> unit_value </th>
|
|
<th> gross_value </th>
|
|
<th> bank </th>
|
|
<th> notes </th>
|
|
<th width="15%"> Ações </th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for Stock in Stocks %}
|
|
<tr align="center">
|
|
<td> {{ Stock.date|date:"d/m/Y" }} </td>
|
|
<td> {{ Stock.product.name }} </td>
|
|
<td> {{ Stock.quantity }} </td>
|
|
<td> {{ Stock.unit_value }} </td>
|
|
<td> {{ Stock.gross_value }} </td>
|
|
<td> {{ Stock.bank }} </td>
|
|
<td> {{ Stock.notes }} </td>
|
|
<td>
|
|
<a href="{% url 'MovStockDetailView' Stock.id %}" class="btn btn-info btn-sm">
|
|
<i class="bi bi-eye"></i>
|
|
</a>
|
|
{# {% if perms.brands.change_brands %}#}
|
|
<a href="{% url 'MovStockUpdateView' Stock.id %}" class="btn btn-warning btn-sm">
|
|
<i class="bi bi-pencil"></i>
|
|
</a>
|
|
{# {% endif %}#}
|
|
{# {% if perms.brands.delete_brands %}#}
|
|
<a href="{% url 'MovStockDeleteView' Stock.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 %}
|