first commit
This commit is contained in:
4
Movement/templates/Product/Create/client.html
Normal file
4
Movement/templates/Product/Create/client.html
Normal 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>
|
||||
6
Movement/templates/Product/Create/date.html
Normal file
6
Movement/templates/Product/Create/date.html
Normal 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>
|
||||
33
Movement/templates/Product/Create/index.html
Normal file
33
Movement/templates/Product/Create/index.html
Normal 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 %}
|
||||
13
Movement/templates/Product/Create/pay_method.html
Normal file
13
Movement/templates/Product/Create/pay_method.html
Normal 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>
|
||||
13
Movement/templates/Product/Create/product.html
Normal file
13
Movement/templates/Product/Create/product.html
Normal 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>
|
||||
13
Movement/templates/Product/Create/professional.html
Normal file
13
Movement/templates/Product/Create/professional.html
Normal 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>
|
||||
8
Movement/templates/Product/Create/quantity.html
Normal file
8
Movement/templates/Product/Create/quantity.html
Normal 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>
|
||||
Reference in New Issue
Block a user