chartManD commited on
Commit
7b865a1
·
1 Parent(s): 14d0114

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-gray-500 text-center w-full p-1 rounded-lg text-white disabled:bg-gray-700" } ),
10
- "nombre": forms.TextInput( attrs={ "class": "ct-inputs-pos-cata bg-gray-500 text-center w-full p-1 rounded-lg text-white disabled:bg-gray-700" } ),
11
- "apellido": forms.TextInput( attrs={ "class": "ct-inputs-pos-cata bg-gray-500 text-center w-full p-1 rounded-lg text-white disabled:bg-gray-700" } ),
12
- "telefono": forms.NumberInput( attrs={ "class": "ct-inputs-pos-cata bg-gray-500 text-center w-full p-1 rounded-lg text-white disabled:bg-gray-700", "max": "10", "min": "10" } ),
13
- "correo": forms.EmailInput( attrs={ "class": "ct-inputs-pos-cata bg-gray-500 text-center w-full p-1 rounded-lg text-white disabled:bg-gray-700" } ),
14
- "fechaNacimiento": forms.DateInput( attrs={ "class": "ct-inputs-pos-cata bg-gray-500 text-center w-full p-1 rounded-lg text-white disabled:bg-gray-700", "type": "date", } ),
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="w-full flex flex-col justify-center items-center bg-gray-600 my-10">
8
- <article class="flex flex-col gap-4 bg-gray-400 md:p-10 p-5 rounded-2xl lg:w-4xl w-full">
9
  <header class="flex-1 flex flex-col gap-7">
10
- <div class="bg-gray-300 p-8 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">
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-gray-500 text-center w-fit p-1 rounded-lg text-white"
21
  name="user" required>
22
  <button type="submit"
23
- class="uppercase text-lg tracking-wider font-medium p-2 px-4 border-b-2 active:border-b-0 active:border-t-2 border-green-800 transition-all rounded-xl bg-green-600 active:bg-green-400 text-white w-fit">
24
- buscar
25
  </button>
26
- <a href="{% url 'cata_system:panel_catadores' %}"
27
- class="uppercase text-lg tracking-wider font-medium p-2 px-4 border-b-2 active:border-b-0 active:border-t-2 border-yellow-800 transition-all rounded-xl bg-yellow-600 active:bg-yellow-400 text-white w-fit">
28
- regresar
 
 
29
  </a>
30
  </div>
31
  {% if catador.errors %}
@@ -37,19 +39,21 @@
37
  </section>
38
  </form>
39
  {% if error %}
40
- <p class="ct-notifica bg-red-500 text-center text-lg py-1 font-bold text-white tracking-wide capitalize rounded-2xl">
 
41
  {{ error }}
42
  </p>
43
  {% endif %}
44
 
45
  {% if message %}
46
- <p class="ct-notifica bg-green-600 text-center text-lg py-1 font-bold text-white tracking-wide capitalize rounded-2xl">
 
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="w-full flex flex-col justify-center items-center bg-gray-600 my-10">
8
- <article class="flex flex-col gap-4 bg-gray-400 md:p-10 p-5 rounded-2xl lg:w-4xl w-full">
9
- <header class="flex-1 flex flex-col gap-7">
10
- <div class="bg-gray-300 p-8 text-2xl font-bold rounded-2xl text-center">
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="uppercase text-lg tracking-wider font-medium p-2 px-4 border-b-2 active:border-b-0 active:border-t-2 border-green-800 transition-all rounded-xl bg-green-600 active:bg-green-400 text-white w-fit">
74
- crear catador
75
  </button>
76
- <a href="{% url 'cata_system:panel_catadores' %}"
77
- class="uppercase text-lg tracking-wider font-medium p-2 px-4 border-b-2 active:border-b-0 active:border-t-2 border-yellow-800 transition-all rounded-xl bg-yellow-600 active:bg-yellow-400 text-white w-fit">
78
- regresar
 
 
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="w-full flex flex-col justify-center items-center min-sm:mt-10">
8
- <article class="flex flex-col bg-gray-400 p-10 max-sm:py-10 max-sm:px-3 min-sm:rounded-2xl">
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-gray-600 p-8 text-2xl text-white font-bold rounded-2xl text-center">
12
  <h1>Adiministra los<br>catadores aquí</h1>
13
  </div>
14
- <a href="{% url 'cata_system:index' %}"
15
- class="text-white bg-blue-600 hover:bg-blue-700 active:outline-none active:ring-4 active:ring-blue-300 font-medium rounded-xl text-xl p-4 text-center uppercase">Panel
16
- principal</a>
 
 
 
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 class="flex-1 text-white tracking-wider font-bold bg-green-600 border-green-800 border-r-4 border-b-4 active:border-r-0 active:border-b-0 active:border-t-4 active:border-l-4 transition-all rounded-xl text-xl p-4 flex justify-center items-center uppercase"
28
- href="{% url 'cata_system:crear_catador' %}">
29
- Crear Cadator
 
 
30
  </a>
31
- <a href="{% url 'cata_system:buscar_catador' %}"
32
- class="flex-1 text-white tracking-wider font-bold bg-yellow-600 border-yellow-800 border-r-4 border-b-4 active:border-r-0 active:border-b-0 active:border-t-4 active:border-l-4 transition-all rounded-xl text-xl p-4 flex justify-center items-center uppercase">
33
- Buscar Catador
 
 
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
  /*