first commit
This commit is contained in:
19
Base/templates/ServiceList/Create.html
Normal file
19
Base/templates/ServiceList/Create.html
Normal 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 %}
|
||||
18
Base/templates/ServiceList/Delete.html
Normal file
18
Base/templates/ServiceList/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>
|
||||
<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 %}
|
||||
16
Base/templates/ServiceList/Detail.html
Normal file
16
Base/templates/ServiceList/Detail.html
Normal 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 %}
|
||||
64
Base/templates/ServiceList/List.html
Normal file
64
Base/templates/ServiceList/List.html
Normal 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 %}
|
||||
17
Base/templates/ServiceList/Update.html
Normal file
17
Base/templates/ServiceList/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 'BankAccountsListView' %}" class="btn btn-secondary mt-3 "> Cancelar e Voltar </a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user