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

View File

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

View File

@@ -0,0 +1,18 @@
{#<div class=""> Professional </div>#}
{#<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.symbol }} {{ prof.name }}#}
{# </label><br>#}
{# </div>#}
{# {% endfor %}#}
{#</div> <br>#}
<div class="form-check form-switch">
<input class="form-check-input" type="checkbox" role="switch" id="switchCheckDefault"
value="{{ form.first_time.field.queryset }}">
<label class="form-check-label" for="switchCheckDefault">Primeira vez</label>
</div>

View File

@@ -0,0 +1,32 @@
{% extends "BaseLogin.html" %}
{% block title %} Cadastro {% endblock %}
{% block content %}
<div class="conteiner mt-4">
<div class="card">
<div class="card-body">
<form method="post" class="form" id="FormPost" action="{% url 'MovCalendarCreateCustom' %}">
{% csrf_token %}
<div class="row">
<div class="col-md-6">{% include 'Calendar/Create/client.html' %} </div>
</div>
<div class="row">
<div class="col-md-2">{% include 'Calendar/Create/professional.html' %} </div>
<div class="col-md-3">{% include 'Calendar/Create/pay_method.html' %} </div>
<div class="col-md-3">{% include 'Calendar/Create/service.html' %} </div>
<div class="col-md-2">
{% include 'Calendar/Create/date.html' %}
<br> {% include 'Calendar/Create/time.html' %}
{% include 'Calendar/Create/first_time.html' %}
</div>
</div>
<button type="submit" class="btn btn-primary"> Salvar </button>
&nbsp &nbsp &nbsp
<a href="{% url 'MovCalendarListView' %}" class="btn btn-secondary"> Cancelar </a>
</form>
</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=""> 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,13 @@
<div class=""> Serviço </div><br>
<div class="form-group">
{% for serv in form.service.field.queryset %}
<div class="form-check ">
<label>
<input type="radio" name="service"
value="{{ serv.id }}" class="form-check-input"
>
{{ serv.name }} - {{ serv.value }}
</label><br>
</div>
{% endfor %}
</div> <br>

View File

@@ -0,0 +1,17 @@
<div class=""> Time </div>
<div class="form-group">
<label>
<input type="time" name="time" id="id_time"
{# value="{{ form.time.field.queryset }}"#}
class="form-control"
>
</label>
</div> <br>
<script>
const timeInput = document.getElementById("id_time");
const now = new Date();
const hours = String(now.getHours()).padStart(2, '0');
const minutes = String(now.getMinutes()).padStart(2, '0');
timeInput.value = `${hours}:${minutes}`;
</script>