first commit
This commit is contained in:
27
Base/templates/Dashboards/DashboardProf/List_prof.html
Normal file
27
Base/templates/Dashboards/DashboardProf/List_prof.html
Normal file
@@ -0,0 +1,27 @@
|
||||
<div class="col-12">
|
||||
<form method="get" action="{% url 'DashboardProf' %}" id="Form"
|
||||
class="d-flex flex-wrap gap-3">
|
||||
|
||||
{% for Prof in Professionals %}
|
||||
|
||||
<input type="radio"
|
||||
class="btn-check"
|
||||
name="Prof"
|
||||
id="prof_{{ Prof.id }}"
|
||||
value="{{ Prof.id }}"
|
||||
{% if request.GET.Prof == Prof.id|stringformat:"i" %}checked{% endif %}
|
||||
onchange="this.form.submit();">
|
||||
|
||||
<label class="btn btn-outline-primary fw-semibold fs-5 shadow-sm rounded-pill"
|
||||
for="prof_{{ Prof.id }}">
|
||||
{{ Prof.name }} {{ Prof.symbol }}
|
||||
</label>
|
||||
|
||||
{% endfor %}
|
||||
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
@@ -0,0 +1,61 @@
|
||||
<div class="col-4">
|
||||
<div class="card shadow-sm">
|
||||
<div class="card-header">
|
||||
<h3 class="h5 mb-0">Relatório de Entradas</h3>
|
||||
</div>
|
||||
<div class="table-responsive">
|
||||
<table class="table table-hover align-middle mb-0">
|
||||
<thead class="table">
|
||||
<tr>
|
||||
<th scope="col" class="ps-4">Descrição / Data</th>
|
||||
<th scope="col" class="text-end pe-4">Valor (R$)</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for nome_servico, dados in Credit.sum_credit.items %}
|
||||
{# Verifica se a soma do serviço é maior que zero #}
|
||||
{% if dados.sum_credit > 0 %}
|
||||
<tr class="table border-bottom">
|
||||
<td class="ps-4">
|
||||
<div class="fw-bold">{{ nome_servico }}</div>
|
||||
</td>
|
||||
<td class="text-end pe-4">
|
||||
<span class="badge bg-primary rounded-pill fs-6">
|
||||
R$ {{ dados.sum_credit|floatformat:2 }}
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
{% for detalhe in dados.list_credit %}
|
||||
{# Verifica se o valor individual é maior que zero #}
|
||||
{% if detalhe.gross_value > 0 %}
|
||||
<tr class="border-0">
|
||||
<td class="ps-5">
|
||||
<i class="bi bi-arrow-return-right me-2"></i> {{ detalhe.date|date:"d/m/Y" }}
|
||||
</td>
|
||||
<td class="text-end pe-4">
|
||||
{{ detalhe.gross_value|floatformat:2 }}
|
||||
</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
{% empty %}
|
||||
<tr>
|
||||
<td colspan="2" class="text-center py-4 text-muted">
|
||||
Nenhum serviço realizado neste mês.
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="card-footer d-flex justify-content-between align-items-center">
|
||||
<div class="h4 mb-0">Total</div>
|
||||
<span class="badge bg-primary rounded-pill fs-6">
|
||||
<div class="h4 mb-0 ">R$ {{ Credit.sum_credit_all|floatformat:2 }}</div>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,61 @@
|
||||
<div class="col-4">
|
||||
<div class="card shadow-sm">
|
||||
<div class="card-header">
|
||||
<h3 class="h5 mb-0">Relatório de Saídas</h3>
|
||||
</div>
|
||||
<div class="table-responsive">
|
||||
<table class="table table-hover align-middle mb-0">
|
||||
<thead class="table">
|
||||
<tr>
|
||||
<th scope="col" class="ps-4">Descrição / Data</th>
|
||||
<th scope="col" class="text-end pe-4">Valor (R$)</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for nome_servico, dados in Expense.sum_expense.items %}
|
||||
{# Verifica se a soma do serviço é maior que zero #}
|
||||
{% if dados.sum_expense > 0 %}
|
||||
<tr class="table border-bottom">
|
||||
<td class="ps-4">
|
||||
<div class="fw-bold">{{ nome_servico }}</div>
|
||||
</td>
|
||||
<td class="text-end pe-4">
|
||||
<span class="badge bg-primary rounded-pill fs-6">
|
||||
R$ {{ dados.sum_expense|floatformat:2 }}
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
{% for detalhe in dados.list_expense %}
|
||||
{# Verifica se o valor individual é maior que zero #}
|
||||
{% if detalhe.gross_value > 0 %}
|
||||
<tr class="border-0">
|
||||
<td class="ps-5">
|
||||
<i class="bi bi-arrow-return-right me-2"></i> {{ detalhe.date|date:"d/m/Y" }}
|
||||
</td>
|
||||
<td class="text-end pe-4">
|
||||
{{ detalhe.gross_value|floatformat:2 }}
|
||||
</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
{% empty %}
|
||||
<tr>
|
||||
<td colspan="2" class="text-center py-4 text-muted">
|
||||
Nenhum serviço realizado neste mês.
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="card-footer d-flex justify-content-between align-items-center">
|
||||
<div class="h4 mb-0">Total</div>
|
||||
<span class="badge bg-primary rounded-pill fs-6">
|
||||
<div class="h4 mb-0 ">R$ {{ Expense.sum_expense_all|floatformat:2 }}</div>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
38
Base/templates/Dashboards/DashboardProf/Resumo do Mês.html
Normal file
38
Base/templates/Dashboards/DashboardProf/Resumo do Mês.html
Normal file
@@ -0,0 +1,38 @@
|
||||
<div class="col-4">
|
||||
<div class="card shadow-sm mb-4">
|
||||
<div class="card-header ">
|
||||
<h3 class="card-title h5 mb-0">Serviços Realizados</h3>
|
||||
</div>
|
||||
<div class="card-body p-0">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-hover table-striped mb-0">
|
||||
<thead class="table">
|
||||
<tr>
|
||||
<th scope="col" class="ps-4">Serviço</th>
|
||||
<th scope="col" class="text-center">Quantidade</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for item in Total_serv.services %}
|
||||
<tr>
|
||||
<td class="ps-4">{{ item.service__name }}</td>
|
||||
<td class="text-center">
|
||||
<span class="badge bg-secondary rounded-pill">
|
||||
{{ item.total_performed }}
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
{% empty %}
|
||||
<tr>
|
||||
<td colspan="2" class="text-center py-4 text-muted">
|
||||
<i class="bi bi-info-circle me-2"></i>
|
||||
Nenhum serviço realizado neste mês.
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
24
Base/templates/Dashboards/DashboardProf/index.html
Normal file
24
Base/templates/Dashboards/DashboardProf/index.html
Normal file
@@ -0,0 +1,24 @@
|
||||
{% extends "BaseLogin.html" %}
|
||||
{% block title %} Dashboard Prof {% endblock %}
|
||||
{% block content %}
|
||||
|
||||
<div class="row">
|
||||
{% include 'Dashboards/DashboardProf/List_prof.html' %}
|
||||
<hr>
|
||||
|
||||
<div class="resumo">
|
||||
<h3>Resumo do Mês</h3>
|
||||
<p>
|
||||
<strong>Total Ganho a Receber: R$ </strong>
|
||||
<span class="fs-4 fw-bold">
|
||||
{{ Money|floatformat:2 }}
|
||||
</span>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<hr>
|
||||
{% include 'Dashboards/DashboardProf/Resumo do Mês.html' %}
|
||||
{% include 'Dashboards/DashboardProf/Relatório de Saídas.html' %}
|
||||
{% include 'Dashboards/DashboardProf/Relatório de Entradas.html' %}
|
||||
</div>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user