first commit
This commit is contained in:
24
Client/templates/Client/Create.html
Normal file
24
Client/templates/Client/Create.html
Normal file
@@ -0,0 +1,24 @@
|
||||
{% extends "BaseLogin.html" %}
|
||||
{% block title %} List {% endblock %}
|
||||
{% block content %}
|
||||
|
||||
<div class="conteiner mt-4">
|
||||
<h3 class="display-6"> Cadastrar </h3>
|
||||
<div class="card col-md-10">
|
||||
<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 'ClientListView' %}" class="btn btn-secondary mt-3 "> Cancelar e Voltar </a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
|
||||
</script>
|
||||
|
||||
{% endblock %}
|
||||
|
||||
18
Client/templates/Client/Delete.html
Normal file
18
Client/templates/Client/Delete.html
Normal 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>
|
||||
<h1><strong>{{ object.first_name }} {{ object.last_name }}</strong></h1>
|
||||
<form method="post">
|
||||
{% csrf_token %}
|
||||
<button type="submit" class="btn btn-danger mt-3"> Deletar </button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<a href="{% url 'ClientListView' %}" class="btn btn-secondary mt-3 "> Cancelar e Voltar </a>
|
||||
</div>
|
||||
{% endblock %}
|
||||
45
Client/templates/Client/Detail.html
Normal file
45
Client/templates/Client/Detail.html
Normal file
@@ -0,0 +1,45 @@
|
||||
{% 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.first_name }} {{ object.last_name }}</h3><br>
|
||||
<p class="card-text">Tel.: {{ object.phone }}</p>
|
||||
<p class="card-text">Prof. de Preferencia : {{ object.professional }}</p>
|
||||
<p class="card-text">Tempo Duplo : {{ object.double_workload }}</p>
|
||||
<p class="card-text">Nota: {{ object.notes }}</p>
|
||||
<br>
|
||||
|
||||
<h3> Ultimas visitas </h3>
|
||||
<div class="col-4">
|
||||
<table class="table table-striped table-sm table-hover ">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Dia </th>
|
||||
<th>Horario</th>
|
||||
<th>Profissinal</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody class="table table-bordered">
|
||||
{% for client in clients %}
|
||||
<tr>
|
||||
<td>{{ client.date|date:"d/m/Y" }}</td>
|
||||
<td>{{ client.time }} </td>
|
||||
<td>{{ client.professional }} </td>
|
||||
</tr>
|
||||
{% empty %}
|
||||
<tr>
|
||||
<td colspan="2"> Nada </td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<a href="{% url 'ClientUpdateView' object.id %}" class="btn btn-secondary mt-3 "> Editar </a>
|
||||
</div>
|
||||
</div>
|
||||
<a href="{% url 'ClientListView' %}" class="btn btn-secondary mt-3 "> Cancelar e Voltar </a>
|
||||
</div>
|
||||
{% endblock %}
|
||||
115
Client/templates/Client/List.html
Normal file
115
Client/templates/Client/List.html
Normal file
@@ -0,0 +1,115 @@
|
||||
{% extends "BaseLogin.html" %}
|
||||
{% block title %} List {% endblock %}
|
||||
{% block content %}
|
||||
<h1> Clientes </h1><br>
|
||||
<div class="row mb-3">
|
||||
<div class="col-md-3">
|
||||
<form method="get" action="{% url 'ClientListView' %}" id="filterForm">
|
||||
<div class="input-group">
|
||||
<input type="text" class="form-control" name="name"
|
||||
placeholder="Nome ou Sobrenome" value="{{ request.GET.name }}"
|
||||
onchange="document.getElementById('filterForm').submit();"
|
||||
>
|
||||
<button type="submit" class="btn btn-primary">
|
||||
<i class="bi bi-search"></i>
|
||||
</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<form method="get" action="{% url 'ClientListView' %}" id="filterForm2">
|
||||
<div class="input-group">
|
||||
<input type="number" class="form-control" name="number"
|
||||
placeholder="Telefone" value="{{ request.GET.number }}"
|
||||
onchange="document.getElementById('filterForm2').submit();"
|
||||
>
|
||||
<button type="submit" class="btn btn-primary">
|
||||
<i class="bi bi-search"></i>
|
||||
</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
{# <div class="col-md-3">#}
|
||||
{# <form method="get" action="{% url 'ClientListView' %}" id="filterForm3">#}
|
||||
{# <div class="input-group">#}
|
||||
{# <input type="hidden" class="form-control" name="all"#}
|
||||
{# placeholder="" value="all"#}
|
||||
{# onchange="document.getElementById('filterForm3').submit();"#}
|
||||
{# >#}
|
||||
{# <button type="submit" class="btn btn-primary"> Tudo#}
|
||||
{# <i class="bi bi-search"></i>#}
|
||||
{# </button>#}
|
||||
{# </div>#}
|
||||
{# </form>#}
|
||||
{# </div>#}
|
||||
{# {% if perms.brands.add_brands %}#}
|
||||
<div class="col-md-1">
|
||||
<a href="{% url 'ClientCreateView' %}" 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 class="text-center">
|
||||
<th width="5%"> Marcar </th>
|
||||
<th> Nome </th>
|
||||
<th> Sobrenome </th>
|
||||
<th width="10%"> Telefone </th>
|
||||
<th width="10%"> Profissinal </th>
|
||||
<th width="08%"> T. D. </th>
|
||||
<th width="05%"> FeedBack </th>
|
||||
<th width="15%"> Notas </th>
|
||||
<th width="5%"> Produto </th>
|
||||
<th width="15%"> Ações </th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody align="center">
|
||||
{% for Client in Clients %}
|
||||
<tr align="center" vertical-align="center">
|
||||
<td>
|
||||
<form method="get" action="{% url 'MovCalendarCreateCustom' %}" >
|
||||
<input type="hidden" name="Client" value="{{ Client.id }}">
|
||||
<button type="submit" class="btn btn-primary"> Marcar </button>
|
||||
</form>
|
||||
</td>
|
||||
<td> {{ Client.first_name }} </td>
|
||||
<td> {{ Client.last_name }} </td>
|
||||
<td> {{ Client.phone }} </td>
|
||||
<td> {{ Client.professional.symbol }} {{ Client.professional }}</td>
|
||||
<td> {% if Client.double_workload %} <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 Client.feed_back %} <i class="bi bi-check-circle-fill text-success "></i>
|
||||
{% else %} <i class="bi bi-x-circle-fill text-danger "></i> {% endif %} </td>
|
||||
<td> {{ Client.notes }} </td>
|
||||
<td>
|
||||
<form method="get" action="{% url 'MovProductCreateCustom' %}" >
|
||||
<input type="hidden" name="Client" value="{{ Client.id }}">
|
||||
<button type="submit" class="btn btn-primary"> Produto </button>
|
||||
</form>
|
||||
</td>
|
||||
<td>
|
||||
<a href="{% url 'ClientDetailView' Client.id %}" class="btn btn-info btn-sm">
|
||||
<i class="bi bi-eye"></i>
|
||||
</a>
|
||||
{# {% if perms.brands.change_brands %}#}
|
||||
<a href="{% url 'ClientUpdateView' Client.id %}" class="btn btn-warning btn-sm">
|
||||
<i class="bi bi-pencil"></i>
|
||||
</a>
|
||||
{# {% endif %}#}
|
||||
{# {% if perms.brands.delete_brands %}#}
|
||||
<a href="{% url 'ClientDeleteView' Client.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 %}
|
||||
17
Client/templates/Client/Update.html
Normal file
17
Client/templates/Client/Update.html
Normal 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 'ClientListView' %}" class="btn btn-secondary mt-3 "> Cancelar e Voltar </a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user