Spaces:
Sleeping
Sleeping
Aplicada palaleta para gestion de catadores
Browse files
tecnicas/forms/catador_form.py
CHANGED
|
@@ -6,12 +6,12 @@ class CatadorForm(forms.ModelForm):
|
|
| 6 |
model = Catador
|
| 7 |
fields = "__all__"
|
| 8 |
widgets = {
|
| 9 |
-
"usuarioCatador": forms.TextInput( attrs={ "class": "ct-inputs-pos-cata bg-
|
| 10 |
-
"nombre": forms.TextInput( attrs={ "class": "ct-inputs-pos-cata bg-
|
| 11 |
-
"apellido": forms.TextInput( attrs={ "class": "ct-inputs-pos-cata bg-
|
| 12 |
-
"telefono": forms.NumberInput( attrs={ "class": "ct-inputs-pos-cata bg-
|
| 13 |
-
"correo": forms.EmailInput( attrs={ "class": "ct-inputs-pos-cata bg-
|
| 14 |
-
"fechaNacimiento": forms.DateInput( attrs={ "class": "ct-inputs-pos-cata bg-
|
| 15 |
}
|
| 16 |
|
| 17 |
def clean(self):
|
|
|
|
| 6 |
model = Catador
|
| 7 |
fields = "__all__"
|
| 8 |
widgets = {
|
| 9 |
+
"usuarioCatador": forms.TextInput( attrs={ "class": "ct-inputs-pos-cata bg-surface-ligt text-center w-full p-1 rounded-lg text-black disabled:bg-surface-general" } ),
|
| 10 |
+
"nombre": forms.TextInput( attrs={ "class": "ct-inputs-pos-cata bg-surface-ligt text-center w-full p-1 rounded-lg text-black disabled:bg-surface-general" } ),
|
| 11 |
+
"apellido": forms.TextInput( attrs={ "class": "ct-inputs-pos-cata bg-surface-ligt text-center w-full p-1 rounded-lg text-black disabled:bg-surface-general" } ),
|
| 12 |
+
"telefono": forms.NumberInput( attrs={ "class": "ct-inputs-pos-cata bg-surface-ligt text-center w-full p-1 rounded-lg text-black disabled:bg-surface-general", "max": "10", "min": "10" } ),
|
| 13 |
+
"correo": forms.EmailInput( attrs={ "class": "ct-inputs-pos-cata bg-surface-ligt text-center w-full p-1 rounded-lg text-black disabled:bg-surface-general" } ),
|
| 14 |
+
"fechaNacimiento": forms.DateInput( attrs={ "class": "ct-inputs-pos-cata bg-surface-ligt text-center w-full p-1 rounded-lg text-black disabled:bg-surface-general", "type": "date", } ),
|
| 15 |
}
|
| 16 |
|
| 17 |
def clean(self):
|
tecnicas/templates/tecnicas/manage_tester/catador-buscar.html
CHANGED
|
@@ -4,28 +4,30 @@
|
|
| 4 |
{% block title %}Buscar Catador{% endblock %}
|
| 5 |
|
| 6 |
{% block content %}
|
| 7 |
-
<article class="
|
| 8 |
-
<article class="
|
| 9 |
<header class="flex-1 flex flex-col gap-7">
|
| 10 |
-
<div class="bg-
|
| 11 |
<h1>buscando catatador</h1>
|
| 12 |
</div>
|
| 13 |
</header>
|
| 14 |
-
<form action="" method="get" class="flex flex-col gap-5">
|
| 15 |
<h2 class="text-2xl mb-2 font-bold">Ingrese el nombre de usuario del catador</h2>
|
| 16 |
<section class="">
|
| 17 |
<label for="usuario" class="text-lg flex flex-col px-2 w-full font-medium tracking-wide mb-4">
|
| 18 |
<div class="flex flex-wrap gap-4 justify-center items-center">
|
| 19 |
<p class="capitalize font-bold">nombre de usuario:</p>
|
| 20 |
-
<input id="usuario" type="text" class="bg-
|
| 21 |
name="user" required>
|
| 22 |
<button type="submit"
|
| 23 |
-
class="
|
| 24 |
-
|
| 25 |
</button>
|
| 26 |
-
<a href="{% url 'cata_system:panel_catadores' %}"
|
| 27 |
-
|
| 28 |
-
|
|
|
|
|
|
|
| 29 |
</a>
|
| 30 |
</div>
|
| 31 |
{% if catador.errors %}
|
|
@@ -37,19 +39,21 @@
|
|
| 37 |
</section>
|
| 38 |
</form>
|
| 39 |
{% if error %}
|
| 40 |
-
<p
|
|
|
|
| 41 |
{{ error }}
|
| 42 |
</p>
|
| 43 |
{% endif %}
|
| 44 |
|
| 45 |
{% if message %}
|
| 46 |
-
<p
|
|
|
|
| 47 |
{{ message }}
|
| 48 |
</p>
|
| 49 |
{% endif %}
|
| 50 |
-
|
| 51 |
{% if form_catador %}
|
| 52 |
-
<form action="" method="post">
|
| 53 |
{% csrf_token %}
|
| 54 |
<section class="grid grid-cols-2 max-sm:grid-cols-1 [&>label]:px-6 max-sm:[&>label]:px-2">
|
| 55 |
<label for="{{ form_catador.usuarioCatador.id_for_label }}"
|
|
|
|
| 4 |
{% block title %}Buscar Catador{% endblock %}
|
| 5 |
|
| 6 |
{% block content %}
|
| 7 |
+
<article class="ct-container">
|
| 8 |
+
<article class="ct-wrap-content">
|
| 9 |
<header class="flex-1 flex flex-col gap-7">
|
| 10 |
+
<div class="bg-surface-card p-8 text-black text-2xl font-bold rounded-2xl text-center capitalize">
|
| 11 |
<h1>buscando catatador</h1>
|
| 12 |
</div>
|
| 13 |
</header>
|
| 14 |
+
<form action="" method="get" class="flex flex-col gap-5 text-black">
|
| 15 |
<h2 class="text-2xl mb-2 font-bold">Ingrese el nombre de usuario del catador</h2>
|
| 16 |
<section class="">
|
| 17 |
<label for="usuario" class="text-lg flex flex-col px-2 w-full font-medium tracking-wide mb-4">
|
| 18 |
<div class="flex flex-wrap gap-4 justify-center items-center">
|
| 19 |
<p class="capitalize font-bold">nombre de usuario:</p>
|
| 20 |
+
<input id="usuario" type="text" class="bg-surface-ligt text-center w-fit p-1 rounded-lg"
|
| 21 |
name="user" required>
|
| 22 |
<button type="submit"
|
| 23 |
+
class="w-fit text-black text-lg font-bold bg-btn-primary rounded-xl py-2 px-6 text-center border-b-green-800 btn-push">
|
| 24 |
+
Buscar
|
| 25 |
</button>
|
| 26 |
+
<a href="{% url 'cata_system:panel_catadores' %}">
|
| 27 |
+
<button
|
| 28 |
+
class="text-white w-fit bg-ct-error font-bold rounded-lg text-xl py-2 px-6 text-center border-pink-800 btn-push">
|
| 29 |
+
Regresar
|
| 30 |
+
</button>
|
| 31 |
</a>
|
| 32 |
</div>
|
| 33 |
{% if catador.errors %}
|
|
|
|
| 39 |
</section>
|
| 40 |
</form>
|
| 41 |
{% if error %}
|
| 42 |
+
<p
|
| 43 |
+
class="ct-notifica bg-red-500 text-center text-lg py-1 font-bold text-white tracking-wide capitalize rounded-2xl">
|
| 44 |
{{ error }}
|
| 45 |
</p>
|
| 46 |
{% endif %}
|
| 47 |
|
| 48 |
{% if message %}
|
| 49 |
+
<p
|
| 50 |
+
class="ct-notifica bg-green-600 text-center text-lg py-1 font-bold text-white tracking-wide capitalize rounded-2xl">
|
| 51 |
{{ message }}
|
| 52 |
</p>
|
| 53 |
{% endif %}
|
| 54 |
+
|
| 55 |
{% if form_catador %}
|
| 56 |
+
<form action="" method="post" class="text-black">
|
| 57 |
{% csrf_token %}
|
| 58 |
<section class="grid grid-cols-2 max-sm:grid-cols-1 [&>label]:px-6 max-sm:[&>label]:px-2">
|
| 59 |
<label for="{{ form_catador.usuarioCatador.id_for_label }}"
|
tecnicas/templates/tecnicas/manage_tester/catador-crear.html
CHANGED
|
@@ -4,14 +4,14 @@
|
|
| 4 |
{% block title %}Crear Catador{% endblock %}
|
| 5 |
|
| 6 |
{% block content %}
|
| 7 |
-
<article class="
|
| 8 |
-
<article class="
|
| 9 |
-
<header class="flex
|
| 10 |
-
<div class="bg-
|
| 11 |
<h1>Creando Catador</h1>
|
| 12 |
</div>
|
| 13 |
</header>
|
| 14 |
-
<section>
|
| 15 |
{% if error %}
|
| 16 |
<p class="ct-notificacion bg-red-400 py-4 text-2xl tracking-wide font-bold text-center capitalize">
|
| 17 |
{{ error }}
|
|
@@ -70,12 +70,14 @@
|
|
| 70 |
</section>
|
| 71 |
<section class="cs-escalas-radio flex justify-center items-center gap-4">
|
| 72 |
<button type="submit"
|
| 73 |
-
class="
|
| 74 |
-
|
| 75 |
</button>
|
| 76 |
-
<a href="{% url 'cata_system:panel_catadores' %}"
|
| 77 |
-
|
| 78 |
-
|
|
|
|
|
|
|
| 79 |
</a>
|
| 80 |
</section>
|
| 81 |
</form>
|
|
|
|
| 4 |
{% block title %}Crear Catador{% endblock %}
|
| 5 |
|
| 6 |
{% block content %}
|
| 7 |
+
<article class="ct-container">
|
| 8 |
+
<article class="ct-wrap-content">
|
| 9 |
+
<header class="flex flex-col gap-7">
|
| 10 |
+
<div class="bg-surface-card p-8 text-black text-2xl font-bold rounded-2xl text-center">
|
| 11 |
<h1>Creando Catador</h1>
|
| 12 |
</div>
|
| 13 |
</header>
|
| 14 |
+
<section class="text-black">
|
| 15 |
{% if error %}
|
| 16 |
<p class="ct-notificacion bg-red-400 py-4 text-2xl tracking-wide font-bold text-center capitalize">
|
| 17 |
{{ error }}
|
|
|
|
| 70 |
</section>
|
| 71 |
<section class="cs-escalas-radio flex justify-center items-center gap-4">
|
| 72 |
<button type="submit"
|
| 73 |
+
class="text-black text-lg bg-btn-primary font-bold rounded-xl px-8 py-4 text-center border-b-green-800 btn-push">
|
| 74 |
+
Crear cadator
|
| 75 |
</button>
|
| 76 |
+
<a href="{% url 'cata_system:panel_catadores' %}">
|
| 77 |
+
<button type="button"
|
| 78 |
+
class="text-white text-lg bg-ct-error font-bold rounded-xl px-8 py-4 text-center border-b-red-800 btn-push">
|
| 79 |
+
Regresar
|
| 80 |
+
</button>
|
| 81 |
</a>
|
| 82 |
</section>
|
| 83 |
</form>
|
tecnicas/templates/tecnicas/manage_tester/catadores-panel.html
CHANGED
|
@@ -4,16 +4,19 @@
|
|
| 4 |
{% block title %}Gestionar Catadores{% endblock %}
|
| 5 |
|
| 6 |
{% block content %}
|
| 7 |
-
<article class="
|
| 8 |
-
<article class="
|
| 9 |
<article class="grid min-sm:grid-cols-2 gap-4 p-5 rounded-2xl">
|
| 10 |
<header class="flex-1 flex flex-col gap-4">
|
| 11 |
-
<div class="bg-
|
| 12 |
<h1>Adiministra los<br>catadores aquí</h1>
|
| 13 |
</div>
|
| 14 |
-
<a href="{% url 'cata_system:index' %}"
|
| 15 |
-
|
| 16 |
-
|
|
|
|
|
|
|
|
|
|
| 17 |
<div class="w-full h-60 bg-gray-200 rounded-2xl relative">
|
| 18 |
<img src="{% static 'img/pn_gc_test.webp' %}" alt="un hombre en smokin probando vino"
|
| 19 |
class="h-full w-full object-cover rounded-xl">
|
|
@@ -24,13 +27,17 @@
|
|
| 24 |
<img src="{% static 'img/pn_gc_people.webp' %}" alt="varias personas en fila"
|
| 25 |
class="w-full h-full object-cover rounded-xl">
|
| 26 |
</div>
|
| 27 |
-
<a
|
| 28 |
-
|
| 29 |
-
|
|
|
|
|
|
|
| 30 |
</a>
|
| 31 |
-
<a href="{% url 'cata_system:buscar_catador' %}"
|
| 32 |
-
|
| 33 |
-
|
|
|
|
|
|
|
| 34 |
</a>
|
| 35 |
<div class="w-full h-40 rounded-2xl min-sm:hidden">
|
| 36 |
<img src="{% static 'img/pn_gc_people.webp' %}" alt="varias personas en fila"
|
|
|
|
| 4 |
{% block title %}Gestionar Catadores{% endblock %}
|
| 5 |
|
| 6 |
{% block content %}
|
| 7 |
+
<article class="ct-container">
|
| 8 |
+
<article class="ct-wrap-content">
|
| 9 |
<article class="grid min-sm:grid-cols-2 gap-4 p-5 rounded-2xl">
|
| 10 |
<header class="flex-1 flex flex-col gap-4">
|
| 11 |
+
<div class="bg-surface-card p-8 text-2xl text-black font-bold rounded-2xl text-center">
|
| 12 |
<h1>Adiministra los<br>catadores aquí</h1>
|
| 13 |
</div>
|
| 14 |
+
<a href="{% url 'cata_system:index' %}">
|
| 15 |
+
<button
|
| 16 |
+
class="text-white w-full bg-ct-error font-bold rounded-lg text-xl p-4 text-center border-pink-800 btn-push">
|
| 17 |
+
Ir al Panel principal
|
| 18 |
+
</button>
|
| 19 |
+
</a>
|
| 20 |
<div class="w-full h-60 bg-gray-200 rounded-2xl relative">
|
| 21 |
<img src="{% static 'img/pn_gc_test.webp' %}" alt="un hombre en smokin probando vino"
|
| 22 |
class="h-full w-full object-cover rounded-xl">
|
|
|
|
| 27 |
<img src="{% static 'img/pn_gc_people.webp' %}" alt="varias personas en fila"
|
| 28 |
class="w-full h-full object-cover rounded-xl">
|
| 29 |
</div>
|
| 30 |
+
<a href="{% url 'cata_system:crear_catador' %}" class="flex-1">
|
| 31 |
+
<button
|
| 32 |
+
class="w-full h-full text-black bg-btn-primary font-bold rounded-xl px-8 py-4 text-center border-b-green-800 btn-push">
|
| 33 |
+
Crear Cadator
|
| 34 |
+
</button>
|
| 35 |
</a>
|
| 36 |
+
<a href="{% url 'cata_system:buscar_catador' %}" class="flex-1">
|
| 37 |
+
<button
|
| 38 |
+
class="w-full h-full text-black bg-btn-secondary font-bold rounded-xl px-8 py-4 text-center border-b-pink-800 btn-push">
|
| 39 |
+
Buscar Catador
|
| 40 |
+
</button>
|
| 41 |
</a>
|
| 42 |
<div class="w-full h-40 rounded-2xl min-sm:hidden">
|
| 43 |
<img src="{% static 'img/pn_gc_people.webp' %}" alt="varias personas en fila"
|
theme/static_src/src/styles.css
CHANGED
|
@@ -24,7 +24,7 @@
|
|
| 24 |
}
|
| 25 |
|
| 26 |
.ct-wrap-content {
|
| 27 |
-
@apply flex flex-col gap-8 bg-surface-alter p-10 max-lg:p-6 max-sm:px-2 rounded-xl max-lg:rounded-none;
|
| 28 |
}
|
| 29 |
|
| 30 |
/*
|
|
|
|
| 24 |
}
|
| 25 |
|
| 26 |
.ct-wrap-content {
|
| 27 |
+
@apply flex flex-col gap-8 bg-surface-alter p-10 max-lg:p-6 max-sm:px-2 max-sm:w-full rounded-xl max-lg:rounded-none;
|
| 28 |
}
|
| 29 |
|
| 30 |
/*
|