first commit

This commit is contained in:
2025-11-01 18:10:39 -03:00
parent 6e7348359f
commit 63cf724aaf
220 changed files with 4040 additions and 62 deletions

View File

@@ -0,0 +1,19 @@
{% extends "BaseLogin.html" %}
{% block title %} Bank Accounts List {% endblock %}
{% block content %}
<div class="conteiner mt-4">
<h3 class="display-6"> Cadastrar Banco </h3>
<div class="card">
<div class="card-body">
<form method="post" class="form">
{% csrf_token %}
{{ form.as_p }}
<button type="submit" class="btn btn-primary"> Salvar </button>
</form>
<a href="{% url 'BankAccountsListView' %}" class="btn btn-secondary mt-3 "> Cancelar e Voltar </a>
</div>
</div>
</div>
{% endblock %}

View File

@@ -0,0 +1,18 @@
{% extends "BaseLogin.html" %}
{% block title %} Bank Accounts List {% endblock %}
{% block content %}
<div class="conteiner mt-4">
<h3 class="display-6"> Deletar da Marcar </h3>
<div class="card">
<div class="card-body">
<h3 class="card-title">Tem certeza que quer deletar ? </h3>
<strong>{{ object.name }}</strong>
<form method="post">
{% csrf_token %}
<button type="submit" class="btn btn-danger mt-3"> Deletar </button>
</form>
</div>
</div>
<a href="{% url 'BankAccountsListView' %}" class="btn btn-secondary mt-3 "> Cancelar e Voltar </a>
</div>
{% endblock %}

View File

@@ -0,0 +1,15 @@
{% extends "BaseLogin.html" %}
{% block title %} Bank Accounts List {% endblock %}
{% block content %}
<div class="conteiner mt-4">
<h3 class="display-6"> Detalhes do Banco </h3>
<div class="card">
<div class="card-body">
<h3 class="card-title">{{ object.name }}</h3>
<p class="card-text">Descrição: {{ object.description }}</p>
{# <a href="{% url 'BrandsUpdate' object.id %}" class="btn btn-secondary mt-3 "> Editar </a>#}
</div>
</div>
<a href="{% url 'BankAccountsListView' %}" class="btn btn-secondary mt-3 "> Cancelar e Voltar </a>
</div>
{% endblock %}

View File

@@ -0,0 +1,62 @@
{% extends "BaseLogin.html" %}
{% block title %} List {% endblock %}
{% block content %}
<h1> Bancos </h1><br>
<div class="row mb-3">
<div class="col-md-6">
<form method="get" action="{% url 'BankAccountsListView' %}">
<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 'BankAccountsCreateView' %}" 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 > Descrição </th>
<th width="15%"> Ações </th>
</tr>
</thead>
<tbody>
{% for Bank in BankAccounts %}
<tr align="center">
{# <td> {{ Bank.id }} </td>#}
<td> {{ Bank.name }} </td>
<td> {{ Bank.description }} </td>
<td>
<a href="{% url 'BankAccountsDetailView' Bank.id %}" class="btn btn-info btn-sm">
<i class="bi bi-eye"></i>
</a>
{# {% if perms.brands.change_brands %}#}
<a href="{% url 'BankAccountsUpdateView' Bank.id %}" class="btn btn-warning btn-sm">
<i class="bi bi-pencil"></i>
</a>
{# {% endif %}#}
{# {% if perms.brands.delete_brands %}#}
<a href="{% url 'BankAccountsDeleteView' Bank.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 %}

View File

@@ -0,0 +1,17 @@
{% extends "BaseLogin.html" %}
{% block title %} Bank Accounts List {% endblock %}
{% block content %}
<div class="conteiner mt-4">
<h3 class="display-6"> Editar Bancos </h3>
<div class="card">
<div class="card-body">
<form method="post" class="form">
{% csrf_token %}
{{ form.as_p }}
<button type="submit" class="btn btn-primary"> Salvar </button>
</form>
<a href="{% url 'BankAccountsListView' %}" class="btn btn-secondary mt-3 "> Cancelar e Voltar </a>
</div>
</div>
</div>
{% endblock %}

View File

@@ -0,0 +1,19 @@
{% extends "BaseLogin.html" %}
{% block title %} Cadastro {% endblock %}
{% block content %}
<div class="conteiner mt-4">
<h3 class="display-6"> Cadastrar </h3>
<div class="card">
<div class="card-body">
<form method="post" class="form">
{% csrf_token %}
{{ form.as_p }}
<button type="submit" class="btn btn-primary"> Salvar </button>
</form>
<a href="{% url 'ServiceListListView' %}" class="btn btn-secondary mt-3 "> Cancelar e Voltar </a>
</div>
</div>
</div>
{% endblock %}

View File

@@ -0,0 +1,18 @@
{% extends "BaseLogin.html" %}
{% block title %} Bank Accounts List {% endblock %}
{% block content %}
<div class="conteiner mt-4">
<h3 class="display-6"> Deletar da Marcar </h3>
<div class="card">
<div class="card-body">
<h3 class="card-title">Tem certeza que quer deletar ? </h3>
<strong>{{ object.name }}</strong>
<form method="post">
{% csrf_token %}
<button type="submit" class="btn btn-danger mt-3"> Deletar </button>
</form>
</div>
</div>
<a href="{% url 'ServiceListListView' %}" class="btn btn-secondary mt-3 "> Cancelar e Voltar </a>
</div>
{% endblock %}

View File

@@ -0,0 +1,16 @@
{% extends "BaseLogin.html" %}
{% block title %} Bank Accounts List {% endblock %}
{% block content %}
<div class="conteiner mt-4">
<h3 class="display-6"> Detalhes </h3>
<div class="card">
<div class="card-body">
<h3 class="card-title">{{ object.name }}</h3>
<h3 class="card-title">{{ object.value }}</h3>
<p class="card-text">Descrição: {{ object.description }}</p>
{# <a href="{% url 'BrandsUpdate' object.id %}" class="btn btn-secondary mt-3 "> Editar </a>#}
</div>
</div>
<a href="{% url 'ServiceListListView' %}" class="btn btn-secondary mt-3 "> Cancelar e Voltar </a>
</div>
{% endblock %}

View File

@@ -0,0 +1,68 @@
{% 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 %}

View File

@@ -0,0 +1,17 @@
{% extends "BaseLogin.html" %}
{% block title %} Bank Accounts List {% endblock %}
{% block content %}
<div class="conteiner mt-4">
<h3 class="display-6"> Editar Bancos </h3>
<div class="card">
<div class="card-body">
<form method="post" class="form">
{% csrf_token %}
{{ form.as_p }}
<button type="submit" class="btn btn-primary"> Salvar </button>
</form>
<a href="{% url 'BankAccountsListView' %}" class="btn btn-secondary mt-3 "> Cancelar e Voltar </a>
</div>
</div>
</div>
{% endblock %}

View File

@@ -1,11 +0,0 @@
{% extends "BaseLogin.html" %}
{% block title %} Dashboard {% endblock %}
{% block content %}
<div class="row">
<div class="col-12">
<h1> {{ Day }} </h1>
</div>
</div>
<br>
{% endblock %}

View File

@@ -0,0 +1,24 @@
<h3> Professional </h3>
<div class="row">
<table class="table">
<thead>
<tr>
<th>Banco</th>
<th>Total</th>
</tr>
</thead>
<tbody>
{% for Prof, sum in Professional.professional.items %}
{% if sum != 0 %}
<tr class="table table-striped" >
<td>{{ Prof }}</td>
<td>R$ {{ sum|floatformat:2 }}</td>
</tr>
{% endif %}
{% empty %} <tr> <td colspan="2"> Vazio. </td> </tr> {% endfor %}
</tbody>
</table>
<p> Total : R$: {{ Professional.sum_all_prof|floatformat:2 }}</p>
</div>
<br>

View File

@@ -0,0 +1,24 @@
<h3> Serviço </h3>
<div class="row">
<table class="table">
<thead>
<tr>
<th>Produtos</th>
<th>Total</th>
</tr>
</thead>
<tbody>
{% for Prod, sum in Service.Service.items %}
{% if sum != 0 %}
<tr class="table table-striped" >
<td>{{ Prod }}</td>
<td>R$ {{ sum|floatformat:2 }}</td>
</tr>
{% endif %}
{% empty %} <tr> <td colspan="2"> Vazio. </td> </tr> {% endfor %}
</tbody>
</table>
<p> Total R$: {{ Service.sum|floatformat:2 }}</p>
</div>
<br>

View File

@@ -0,0 +1,23 @@
<h3> Estoque </h3>
<div class="row">
<table class="table">
<thead>
<tr>
<th>Produtos</th>
<th>Total</th>
</tr>
</thead>
<tbody>
{% for Prod, sum in Stone.Stone.items %}
{% if sum != 0 %}
<tr class="table table-striped" >
<td>{{ Prod }}</td>
<td>{{ sum|floatformat:0 }}</td>
</tr>
{% endif %}
{% empty %} <tr> <td colspan="2"> Vazio. </td> </tr> {% endfor %}
</tbody>
</table>
</div>
<br>

View File

@@ -0,0 +1,22 @@
<h3> Produtos </h3>
<table class="table">
<thead>
<tr>
<th>Produto</th>
<th>Total</th>
<th>Quant.</th>
</tr>
</thead>
<tbody>
{% for name, value in Sum_of_product.product_report.items %}
{% if value.product_item != 0 %}
<tr class="table table-striped" >
<td>{{ name }}</td>
<td>R$ {{ value.product_item|floatformat:2 }}</td>
<td>{{ value.product_cont }}</td>
</tr>
{% endif %}
{% empty %} <tr> <td colspan="2"> Vazio. </td> </tr> {% endfor %}
</tbody>
</table>
<p>Total da Venda : R$: {{ Sum_of_product.sum_of_product|floatformat:2 }}</p>

View File

@@ -0,0 +1,27 @@
<h3 class="mb-4">Relatório de Profissionais</h3>
<table class="table table-striped">
<thead>
<tr>
<th>Profissional</th>
<th>Serviço</th>
<th>Valor Bruto</th>
<th>Quant.</th>
</tr>
</thead>
<tbody>
{% for professional, services in Sum_of_professional_detail.professionals_report.items %}
{% for service, value in services.items %}
{% if value.servSum != 0 %}
<tr>
<td>{{ professional }}</td>
<td>{{ service }}</td>
<td>R$ {{ value.servSum|floatformat:2 }}</td>
<td>{{ value.servCont }}</td>
</tr>
{% endif %}
{% endfor %}
{% endfor %}
</tbody>
</table>
<p> Total de Hoje : R$: {{ Sum_of_professional_detail.sum_of_prof|floatformat:2 }}</p>
<br>

View File

@@ -0,0 +1,20 @@
<h3> Pagamentos </h3>
<table class="table">
<thead>
<tr>
<th>Banco</th>
<th>Total</th>
</tr>
</thead>
<tbody>
{% for name, value in Sum_payment_method_service.bank_balance.items %}
{% if value != 0 %}
<tr class="table table-striped" >
<td>{{ name }}</td>
<td>R$ {{ value|floatformat:2 }}</td>
</tr>
{% endif %}
{% empty %} <tr> <td colspan="2"> Vazio </td> </tr> {% endfor %}
</tbody>
</table>
<p>Total : R$: {{ Sum_payment_method_service.sum_of_bank|floatformat:2 }}</p>

View File

@@ -0,0 +1,28 @@
{% extends "BaseLogin.html" %}
{% block title %} Dashboard {% endblock %}
{% block content %}
<div class="row">
<div class="col-md-6">{% include 'Login/Dashboard/Sum_of_professional_detail.html' %} </div>
<div class="col-md-2"></div>
<div class="col-md-3">{% include 'Login/Dashboard/Stone.html' %} </div>
<div class="col-md-1"> </div>
</div>
<div class="row">
<div class="col-2">
<div class="col-md-12"> {% include 'Login/Dashboard/Sum_payment_method_service.html' %} </div>
</div>
<div class="col-2">
<div class="col-md-12">{% include 'Login/Dashboard/Professional.html' %} </div>
</div>
<div class="col-2">
<div class="col-md-12">{% include 'Login/Dashboard/Sum_of_product.html' %} </div>
</div>
<div class="col-2">
<div class="col-md-12">{% include 'Login/Dashboard/Service.html' %} </div>
</div>
</div>
<br>
{% endblock %}

View File

@@ -0,0 +1,25 @@
{% extends "BaseLogin.html" %}
{% block title %} Dashboard Admin {% endblock %}
{% block content %}
<div class="row">
<div class="col-12">
<a href="{% url 'ProfessionalListView' %}" class="btn btn-primary"> Professional </a><br>
<a href="{% url 'BankAccountsListView' %}" class="btn btn-primary"> Banks </a><br>
<a href="{% url 'PayMethodListView' %}" class="btn btn-primary"> Meio de Pagamento </a><br>
<a href="{% url 'ServiceListListView' %}" class="btn btn-primary"> Lista de Serviços </a><br>
<a href="{% url 'ProductListListView' %}" class="btn btn-primary"> Lista de Produtos </a><br>
<a href="{% url 'ChartOfAccountListView' %}" class="btn btn-primary"> Plano de Contas </a><br>
<a href="{% url 'MovStockListView' %}" class="btn btn-primary"> Estoque </a><br>
<a href="{% url 'MovExpenseListView' %}" class="btn btn-primary"> Despesa </a><br>
<a href="{% url 'MovProductListView' %}" class="btn btn-primary"> Venda de Produtos </a><br>
</div>
</div>
<br>
<div class="row">
<div class="col-md-3">{% include 'Login/DashboardAdmin/total_banck.html' %} </div>
<div class="col-md-3"> {% include 'Login/DashboardAdmin/total_prof_month.html' %} </div>
{# <div class="col-md-3"> </div>#}
{# <div class="col-md-1"> </div>#}
</div>
{% endblock %}

View File

@@ -0,0 +1,21 @@
<h3> Bancos </h3>
<table class="table">
<thead>
<tr>
<th>Banco</th>
<th>Total</th>
</tr>
</thead>
<tbody>
{% for name, value in total_bank.items %}
<tr class="table table-striped" >
<td>{{ name }}</td>
<td>R$ {{ value|floatformat:2 }}</td>
</tr>
{% empty %}
<tr>
<td colspan="2"> Vazio. </td>
</tr>
{% endfor %}
</tbody>
</table>

View File

@@ -0,0 +1,21 @@
<h3> Prof. </h3>
<table class="table">
<thead>
<tr>
<th>Prof.</th>
<th>Total</th>
</tr>
</thead>
<tbody>
{% for name, value in total_prof.items %}
<tr class="table table-striped" >
<td>{{ name }}</td>
<td>R$ {{ value|floatformat:2 }}</td>
</tr>
{% empty %}
<tr>
<td colspan="2"> Vazio. </td>
</tr>
{% endfor %}
</tbody>
</table>

View File

@@ -1,5 +0,0 @@
{% extends "Base.html" %}
{% block title %} Home {% endblock %}
{% block content %}
<p class="text-center"> Home </p>
{% endblock %}

View File

@@ -0,0 +1,44 @@
{% extends 'Base.html' %}
{% block title %}Login{% endblock %}
{% block content %}
<div class="container mt-5">
<div class="row justify-content-center">
<div class="col-md-6">
<div class="card">
<div class="card-body">
<h5 class="card-title text-center mb-4">Login</h5>
<form method="post">
{% csrf_token %}
<div class="mb-3">
<label for="username" class="form-label">Usuário </label>
<input type="text" class="form-control" id="username" name="username" required>
</div>
<div class="mb-3">
<label for="password" class="form-label">Senha</label>
<input type="password" class="form-control" id="password" name="password" required>
</div>
<div class="d-grid gap-2">
<button type="submit" class="btn btn-primary">Entrar</button>
</div>
</form>
{% if form.errors %}
<div class="alert alert-danger mt-4">
<ul class="mb-0">
{% for field in form %}
{% for error in field.errors %}
<li>{{ error }}</li>
{% endfor %}
{% endfor %}
{% for error in form.non_field_errors %}
<li>{{ error }}</li>
{% endfor %}
</ul>
</div>
{% endif %}
</div>
</div>
</div>
</div>
</div>
{% endblock %}

View File

@@ -0,0 +1,19 @@
{% extends "BaseLogin.html" %}
{% block title %} Cadastro {% endblock %}
{% block content %}
<div class="conteiner mt-4">
<h3 class="display-6"> Cadastrar </h3>
<div class="card">
<div class="card-body">
<form method="post" class="form">
{% csrf_token %}
{{ form.as_p }}
<button type="submit" class="btn btn-primary"> Salvar </button>
</form>
<a href="{% url 'ServiceListListView' %}" class="btn btn-secondary mt-3 "> Cancelar e Voltar </a>
</div>
</div>
</div>
{% endblock %}

View File

@@ -0,0 +1,18 @@
{% extends "BaseLogin.html" %}
{% block title %} Bank Accounts List {% endblock %}
{% block content %}
<div class="conteiner mt-4">
<h3 class="display-6"> Deletar da Marcar </h3>
<div class="card">
<div class="card-body">
<h3 class="card-title">Tem certeza que quer deletar ? </h3>
<strong>{{ object.name }}</strong>
<form method="post">
{% csrf_token %}
<button type="submit" class="btn btn-danger mt-3"> Deletar </button>
</form>
</div>
</div>
<a href="{% url 'ServiceListListView' %}" class="btn btn-secondary mt-3 "> Cancelar e Voltar </a>
</div>
{% endblock %}

View File

@@ -0,0 +1,16 @@
{% extends "BaseLogin.html" %}
{% block title %} Bank Accounts List {% endblock %}
{% block content %}
<div class="conteiner mt-4">
<h3 class="display-6"> Detalhes </h3>
<div class="card">
<div class="card-body">
<h3 class="card-title">{{ object.name }}</h3>
<h3 class="card-title">{{ object.value }}</h3>
<p class="card-text">Descrição: {{ object.description }}</p>
{# <a href="{% url 'BrandsUpdate' object.id %}" class="btn btn-secondary mt-3 "> Editar </a>#}
</div>
</div>
<a href="{% url 'ServiceListListView' %}" class="btn btn-secondary mt-3 "> Cancelar e Voltar </a>
</div>
{% endblock %}

View File

@@ -0,0 +1,66 @@
{% extends "BaseLogin.html" %}
{% block title %} List {% endblock %}
{% block content %}
<h1> Serviços </h1><br>
<div class="row mb-3">
<div class="col-md-6">
<form method="get" action="{% url 'PayMethodListView' %}">
<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 'PayMethodCreateView' %}" 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> Banco </th>
<th> Percentual </th>
<th > Descrição </th>
<th width="15%"> Ações </th>
</tr>
</thead>
<tbody>
{% for Payment in PayMethod %}
<tr align="center">
{# <td> {{ Payment.id }} </td>#}
<td> {{ Payment.name }} </td>
<td> {{ Payment.bank }} </td>
<td> {{ Payment.percentage }} </td>
<td> {{ Payment.description }} </td>
<td>
<a href="{% url 'PayMethodDetailView' Payment.id %}" class="btn btn-info btn-sm">
<i class="bi bi-eye"></i>
</a>
{# {% if perms.brands.change_brands %}#}
<a href="{% url 'PayMethodUpdateView' Payment.id %}" class="btn btn-warning btn-sm">
<i class="bi bi-pencil"></i>
</a>
{# {% endif %}#}
{# {% if perms.brands.delete_brands %}#}
<a href="{% url 'PayMethodDeleteView' Payment.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 %}

View File

@@ -0,0 +1,17 @@
{% extends "BaseLogin.html" %}
{% block title %} Bank Accounts List {% endblock %}
{% block content %}
<div class="conteiner mt-4">
<h3 class="display-6"> Editar Bancos </h3>
<div class="card">
<div class="card-body">
<form method="post" class="form">
{% csrf_token %}
{{ form.as_p }}
<button type="submit" class="btn btn-primary"> Salvar </button>
</form>
<a href="{% url 'BankAccountsListView' %}" class="btn btn-secondary mt-3 "> Cancelar e Voltar </a>
</div>
</div>
</div>
{% endblock %}

View File

@@ -0,0 +1,19 @@
{% extends "BaseLogin.html" %}
{% block title %} Cadastro {% endblock %}
{% block content %}
<div class="conteiner mt-4">
<h3 class="display-6"> Cadastrar </h3>
<div class="card">
<div class="card-body">
<form method="post" class="form">
{% csrf_token %}
{{ form.as_p }}
<button type="submit" class="btn btn-primary"> Salvar </button>
</form>
<a href="{% url 'ProductListListView' %}" class="btn btn-secondary mt-3 "> Cancelar e Voltar </a>
</div>
</div>
</div>
{% endblock %}

View File

@@ -0,0 +1,18 @@
{% extends "BaseLogin.html" %}
{% block title %} Deletar {% endblock %}
{% block content %}
<div class="conteiner mt-4">
<h3 class="display-6"> Deletar </h3>
<div class="card">
<div class="card-body">
<h3 class="card-title">Tem certeza que quer deletar ? </h3>
<strong>{{ object.name }}</strong>
<form method="post">
{% csrf_token %}
<button type="submit" class="btn btn-danger mt-3"> Deletar </button>
</form>
</div>
</div>
<a href="{% url 'ProductListListView' %}" class="btn btn-secondary mt-3 "> Cancelar e Voltar </a>
</div>
{% endblock %}

View File

@@ -0,0 +1,16 @@
{% extends "BaseLogin.html" %}
{% block title %} Bank Accounts List {% endblock %}
{% block content %}
<div class="conteiner mt-4">
<h3 class="display-6"> Detalhes </h3>
<div class="card">
<div class="card-body">
<h3 class="card-title">{{ object.name }}</h3>
<h3 class="card-title">{{ object.value }}</h3>
<p class="card-text">Descrição: {{ object.description }}</p>
{# <a href="{% url 'BrandsUpdate' object.id %}" class="btn btn-secondary mt-3 "> Editar </a>#}
</div>
</div>
<a href="{% url 'ProductListListView' %}" class="btn btn-secondary mt-3 "> Cancelar e Voltar </a>
</div>
{% endblock %}

View File

@@ -0,0 +1,64 @@
{% extends "BaseLogin.html" %}
{% block title %} List {% endblock %}
{% block content %}
<h1> Produtos </h1><br>
<div class="row mb-3">
<div class="col-md-6">
<form method="get" action="{% url 'ProductListListView' %}">
<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 'ProductListCreateView' %}" 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> Valor </th>
<th > Descrição </th>
<th width="15%"> Ações </th>
</tr>
</thead>
<tbody>
{% for Serv in ProductList %}
<tr align="center">
{# <td> {{ Serv.id }} </td>#}
<td> {{ Serv.name }} </td>
<td> {{ Serv.value }} </td>
<td> {{ Serv.description }} </td>
<td>
<a href="{% url 'ProductListDetailView' Serv.id %}" class="btn btn-info btn-sm">
<i class="bi bi-eye"></i>
</a>
{# {% if perms.brands.change_brands %}#}
<a href="{% url 'ProductListUpdateView' Serv.id %}" class="btn btn-warning btn-sm">
<i class="bi bi-pencil"></i>
</a>
{# {% endif %}#}
{# {% if perms.brands.delete_brands %}#}
<a href="{% url 'ProductListDeleteView' Serv.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 %}

View File

@@ -0,0 +1,17 @@
{% extends "BaseLogin.html" %}
{% block title %} Editar {% endblock %}
{% block content %}
<div class="conteiner mt-4">
<h3 class="display-6"> Editar </h3>
<div class="card">
<div class="card-body">
<form method="post" class="form">
{% csrf_token %}
{{ form.as_p }}
<button type="submit" class="btn btn-primary"> Salvar </button>
</form>
<a href="{% url 'ProductListCreateView' %}" class="btn btn-secondary mt-3 "> Cancelar e Voltar </a>
</div>
</div>
</div>
{% endblock %}

View File

@@ -0,0 +1,19 @@
{% extends "BaseLogin.html" %}
{% block title %} Bank Accounts List {% endblock %}
{% block content %}
<div class="conteiner mt-4">
<h3 class="display-6"> Cadastrar Banco </h3>
<div class="card">
<div class="card-body">
<form method="post" class="form">
{% csrf_token %}
{{ form.as_p }}
<button type="submit" class="btn btn-primary"> Salvar </button>
</form>
<a href="{% url 'ProfessionalListView' %}" class="btn btn-secondary mt-3 "> Cancelar e Voltar </a>
</div>
</div>
</div>
{% endblock %}

View File

@@ -0,0 +1,18 @@
{% extends "BaseLogin.html" %}
{% block title %} Bank Accounts List {% endblock %}
{% block content %}
<div class="conteiner mt-4">
<h3 class="display-6"> Deletar da Marcar </h3>
<div class="card">
<div class="card-body">
<h3 class="card-title">Tem certeza que quer deletar ? </h3>
<strong>{{ object.name }}</strong>
<form method="post">
{% csrf_token %}
<button type="submit" class="btn btn-danger mt-3"> Deletar </button>
</form>
</div>
</div>
<a href="{% url 'ProfessionalListView' %}" class="btn btn-secondary mt-3 "> Cancelar e Voltar </a>
</div>
{% endblock %}

View File

@@ -0,0 +1,15 @@
{% extends "BaseLogin.html" %}
{% block title %} Bank Accounts List {% endblock %}
{% block content %}
<div class="conteiner mt-4">
<h3 class="display-6"> Detalhes do Banco </h3>
<div class="card">
<div class="card-body">
<h3 class="card-title">{{ object.name }}</h3>
<p class="card-text">Descrição: {{ object.description }}</p>
{# <a href="{% url 'BrandsUpdate' object.id %}" class="btn btn-secondary mt-3 "> Editar </a>#}
</div>
</div>
<a href="{% url 'ProfessionalListView' %}" class="btn btn-secondary mt-3 "> Cancelar e Voltar </a>
</div>
{% endblock %}

View File

@@ -0,0 +1,62 @@
{% extends "BaseLogin.html" %}
{% block title %} List {% endblock %}
{% block content %}
<h1> Profissinais </h1><br>
<div class="row mb-3">
<div class="col-md-6">
<form method="get" action="{% url 'ProfessionalListView' %}">
<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 'ProfessionalCreateView' %}" 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 width="10%"> Simbolo </th>
<th> Nome </th>
<th width="10%"> Porcentagem </th>
<th width="15%"> Ações </th>
</tr>
</thead>
<tbody>
{% for Prof in Professionals %}
<tr align="center">
<td> {{ Prof.symbol }} </td>
<td> {{ Prof.name }} </td>
<td> {{ Prof.percentage }} % </td>
<td>
<a href="{% url 'ProfessionalDetailView' Prof.id %}" class="btn btn-info btn-sm">
<i class="bi bi-eye"></i>
</a>
{# {% if perms.brands.change_brands %}#}
<a href="{% url 'ProfessionalUpdateView' Prof.id %}" class="btn btn-warning btn-sm">
<i class="bi bi-pencil"></i>
</a>
{# {% endif %}#}
{# {% if perms.brands.delete_brands %}#}
<a href="{% url 'ProfessionalDeleteView' Prof.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 %}

View File

@@ -0,0 +1,17 @@
{% extends "BaseLogin.html" %}
{% block title %} Bank Accounts List {% endblock %}
{% block content %}
<div class="conteiner mt-4">
<h3 class="display-6"> Editar Bancos </h3>
<div class="card">
<div class="card-body">
<form method="post" class="form">
{% csrf_token %}
{{ form.as_p }}
<button type="submit" class="btn btn-primary"> Salvar </button>
</form>
<a href="{% url 'ProfessionalListView' %}" class="btn btn-secondary mt-3 "> Cancelar e Voltar </a>
</div>
</div>
</div>
{% endblock %}

View File

@@ -0,0 +1,19 @@
{% extends "BaseLogin.html" %}
{% block title %} Cadastro {% endblock %}
{% block content %}
<div class="conteiner mt-4">
<h3 class="display-6"> Cadastrar </h3>
<div class="card">
<div class="card-body">
<form method="post" class="form">
{% csrf_token %}
{{ form.as_p }}
<button type="submit" class="btn btn-primary"> Salvar </button>
</form>
<a href="{% url 'ServiceListListView' %}" class="btn btn-secondary mt-3 "> Cancelar e Voltar </a>
</div>
</div>
</div>
{% endblock %}

View File

@@ -0,0 +1,18 @@
{% extends "BaseLogin.html" %}
{% block title %} Bank Accounts List {% endblock %}
{% block content %}
<div class="conteiner mt-4">
<h3 class="display-6"> Deletar da Marcar </h3>
<div class="card">
<div class="card-body">
<h3 class="card-title">Tem certeza que quer deletar ? </h3>
<strong>{{ object.name }}</strong>
<form method="post">
{% csrf_token %}
<button type="submit" class="btn btn-danger mt-3"> Deletar </button>
</form>
</div>
</div>
<a href="{% url 'ServiceListListView' %}" class="btn btn-secondary mt-3 "> Cancelar e Voltar </a>
</div>
{% endblock %}

View File

@@ -0,0 +1,16 @@
{% extends "BaseLogin.html" %}
{% block title %} Bank Accounts List {% endblock %}
{% block content %}
<div class="conteiner mt-4">
<h3 class="display-6"> Detalhes </h3>
<div class="card">
<div class="card-body">
<h3 class="card-title">{{ object.name }}</h3>
<h3 class="card-title">{{ object.value }}</h3>
<p class="card-text">Descrição: {{ object.description }}</p>
{# <a href="{% url 'BrandsUpdate' object.id %}" class="btn btn-secondary mt-3 "> Editar </a>#}
</div>
</div>
<a href="{% url 'ServiceListListView' %}" class="btn btn-secondary mt-3 "> Cancelar e Voltar </a>
</div>
{% endblock %}

View File

@@ -0,0 +1,64 @@
{% extends "BaseLogin.html" %}
{% block title %} List {% endblock %}
{% block content %}
<h1> Serviços </h1><br>
<div class="row mb-3">
<div class="col-md-6">
<form method="get" action="{% url 'ServiceListListView' %}">
<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 'ServiceListCreateView' %}" 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> Valor </th>
<th > Descrição </th>
<th width="15%"> Ações </th>
</tr>
</thead>
<tbody>
{% for Serv in ServiceList %}
<tr align="center">
{# <td> {{ Serv.id }} </td>#}
<td> {{ Serv.name }} </td>
<td> {{ Serv.value }} </td>
<td> {{ Serv.description }} </td>
<td>
<a href="{% url 'ServiceListDetailView' Serv.id %}" class="btn btn-info btn-sm">
<i class="bi bi-eye"></i>
</a>
{# {% if perms.brands.change_brands %}#}
<a href="{% url 'ServiceListUpdateView' Serv.id %}" class="btn btn-warning btn-sm">
<i class="bi bi-pencil"></i>
</a>
{# {% endif %}#}
{# {% if perms.brands.delete_brands %}#}
<a href="{% url 'ServiceListDeleteView' Serv.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 %}

View File

@@ -0,0 +1,17 @@
{% extends "BaseLogin.html" %}
{% block title %} Bank Accounts List {% endblock %}
{% block content %}
<div class="conteiner mt-4">
<h3 class="display-6"> Editar Bancos </h3>
<div class="card">
<div class="card-body">
<form method="post" class="form">
{% csrf_token %}
{{ form.as_p }}
<button type="submit" class="btn btn-primary"> Salvar </button>
</form>
<a href="{% url 'BankAccountsListView' %}" class="btn btn-secondary mt-3 "> Cancelar e Voltar </a>
</div>
</div>
</div>
{% endblock %}