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,4 @@
{% for cl in form.client.field.queryset %}
<input type="hidden" name="client" value="{{ cl.id }}" >
<h1> {{ cl.first_name }} {{ cl.last_name }} </h1>
{% endfor %} <br>

View File

@@ -0,0 +1,6 @@
<label> <div class=""> Dia </div>
<input type="date" name="date"
value="{% now 'Y-m-d' %}"
class="date form-control"
>
</label><br><br>

View File

@@ -0,0 +1,33 @@
{% extends "BaseLogin.html" %}
{% block title %} Bank Accounts List {% endblock %}
{% block content %}
<div class="conteiner mt-4">
<h3 class="display-6"> Cadastrar </h3>
<div class="row mb-3">
<div class="col-md-8">
<div class="card">
<div class="card-body">
<form method="post" class="form">
{% csrf_token %}
<div class="row">
<div class="col-md-6">{% include 'Product/Create/client.html' %}</div>
</div>
<div class="row">
<div class="col-md-6">{% include 'Product/Create/date.html' %}</div>
<div class="col-md-6">{{ form.quantity.label }} <br> {{ form.quantity }} </div>
</div>
<div class="row">
<div class="col-md-4">{% include 'Product/Create/product.html' %}</div>
<div class="col-md-4">{% include 'Product/Create/pay_method.html' %}</div>
<div class="col-md-4">{% include 'Product/Create/professional.html' %}</div>
</div>
<button type="submit" class="btn btn-primary"> Salvar </button>
</form>
</div>
</div>
<a href="{% url 'MovProductListView' %}" class="btn btn-secondary mt-3 "> Cancelar e Voltar </a>
</div>
</div>
</div>
{% endblock %}

View File

@@ -0,0 +1,13 @@
<div class=""> Metodo de Pagamento </div> <br>
<div class="form-group">
{% for Pay in form.pay_method.field.queryset %}
<div class="form-check ">
<label>
<input type="radio" name="pay_method"
value="{{ Pay.id }}" class="form-check-input"
>
{{ Pay.name }} - {{ Pay.bank }}
</label><br>
</div>
{% endfor %}
</div> <br>

View File

@@ -0,0 +1,13 @@
<div class=""> Produto </div> <br>
<div class="form-group">
{% for Pay in form.product.field.queryset %}
<div class="form-check ">
<label>
<input type="radio" name="product"
value="{{ Pay.id }}" class="form-check-input"
>
{{ Pay.name }} - {{ Pay.value }}
</label><br>
</div>
{% endfor %}
</div> <br>

View File

@@ -0,0 +1,13 @@
<div class=""> Professional </div><br>
<div class="form-group">
{% for prof in form.professional.field.queryset %}
<div class="form-check ">
<label>
<input type="radio" name="professional"
value="{{ prof.id }}" class="form-check-input"
>
{{ prof.name }} {{ prof.symbol }}
</label><br>
</div>
{% endfor %}
</div> <br>

View File

@@ -0,0 +1,8 @@
<div class="form-group">
<div class="form-check">
<label>
<input type="number" name="quantity" class="form-control"
>
</label><br>
</div>
</div> <br>