From f01901d0dd77c27585c0f3028734906eb7f2010c Mon Sep 17 00:00:00 2001 From: Celestino Rey Date: Tue, 1 Oct 2024 12:27:05 +0200 Subject: [PATCH] Arreglos de apariencia --- .../eventos/static/images/palapadel.svg | 50 +++ JugarAlPadel/gestion_reservas/eventos/urls.py | 3 +- .../gestion_reservas/eventos/views.py | 4 + .../gestion_reservas/templates/_branding.html | 2 +- .../gestion_reservas/templates/_cabecera.html | 28 -- .../gestion_reservas/templates/_footer.html | 2 +- .../gestion_reservas/templates/base.html | 61 +--- .../templates/eventos/help.html | 330 ++++++++++++++++++ .../templates/eventos/index.html | 31 -- .../templates/eventos/lista_eventos.html | 2 + .../gestion_reservas/templates/index.html | 14 +- 11 files changed, 407 insertions(+), 120 deletions(-) create mode 100644 JugarAlPadel/gestion_reservas/eventos/static/images/palapadel.svg create mode 100644 JugarAlPadel/gestion_reservas/templates/eventos/help.html delete mode 100644 JugarAlPadel/gestion_reservas/templates/eventos/index.html diff --git a/JugarAlPadel/gestion_reservas/eventos/static/images/palapadel.svg b/JugarAlPadel/gestion_reservas/eventos/static/images/palapadel.svg new file mode 100644 index 0000000..ec1db9b --- /dev/null +++ b/JugarAlPadel/gestion_reservas/eventos/static/images/palapadel.svg @@ -0,0 +1,50 @@ + + + + + + + + + + + + + + + + + + + diff --git a/JugarAlPadel/gestion_reservas/eventos/urls.py b/JugarAlPadel/gestion_reservas/eventos/urls.py index 2c8ea43..60c8305 100644 --- a/JugarAlPadel/gestion_reservas/eventos/urls.py +++ b/JugarAlPadel/gestion_reservas/eventos/urls.py @@ -4,10 +4,9 @@ from . import views app_name = 'eventos' urlpatterns = [ - path('', views.principal, name='principal'), - path('eventos/', views.lista_eventos, name='lista_eventos'), path('eventos//', views.detalle_evento, name='detalle_evento'), + path('eventos/ayuda/', views.ayuda, name='ayuda'), path('reservar//', views.reservar_evento, name='reservar_evento'), diff --git a/JugarAlPadel/gestion_reservas/eventos/views.py b/JugarAlPadel/gestion_reservas/eventos/views.py index a5dd2e3..d8a61d8 100644 --- a/JugarAlPadel/gestion_reservas/eventos/views.py +++ b/JugarAlPadel/gestion_reservas/eventos/views.py @@ -40,6 +40,10 @@ def principal(request): return render(request, 'eventos/lista_eventos.html') +def ayuda(request): + return render(request, 'eventos/help.html') + + @login_required def detalle_evento(request, evento_id): evento = get_object_or_404(Evento, pk=evento_id) diff --git a/JugarAlPadel/gestion_reservas/templates/_branding.html b/JugarAlPadel/gestion_reservas/templates/_branding.html index 752a075..d7633ac 100644 --- a/JugarAlPadel/gestion_reservas/templates/_branding.html +++ b/JugarAlPadel/gestion_reservas/templates/_branding.html @@ -3,6 +3,6 @@ {% load filtros_de_entorno %} diff --git a/JugarAlPadel/gestion_reservas/templates/_cabecera.html b/JugarAlPadel/gestion_reservas/templates/_cabecera.html index b66dde4..c75ff1e 100644 --- a/JugarAlPadel/gestion_reservas/templates/_cabecera.html +++ b/JugarAlPadel/gestion_reservas/templates/_cabecera.html @@ -87,34 +87,6 @@ - {% if user.is_authenticated %} - - - {% endif %} diff --git a/JugarAlPadel/gestion_reservas/templates/_footer.html b/JugarAlPadel/gestion_reservas/templates/_footer.html index eed4e66..6560faa 100644 --- a/JugarAlPadel/gestion_reservas/templates/_footer.html +++ b/JugarAlPadel/gestion_reservas/templates/_footer.html @@ -5,6 +5,6 @@ --> \ No newline at end of file diff --git a/JugarAlPadel/gestion_reservas/templates/base.html b/JugarAlPadel/gestion_reservas/templates/base.html index 3a487bd..28a9d8f 100644 --- a/JugarAlPadel/gestion_reservas/templates/base.html +++ b/JugarAlPadel/gestion_reservas/templates/base.html @@ -84,60 +84,19 @@ Principal - - {% if user.is_authenticated %} - - - - - {% endif %} + diff --git a/JugarAlPadel/gestion_reservas/templates/eventos/help.html b/JugarAlPadel/gestion_reservas/templates/eventos/help.html new file mode 100644 index 0000000..b782347 --- /dev/null +++ b/JugarAlPadel/gestion_reservas/templates/eventos/help.html @@ -0,0 +1,330 @@ +{% extends 'base.html' %} + +{% block menuapp %} + +{% endblock menuapp %} + +{% block content %} +
+

Centro de ayuda

+
+
+

Organización

+
+
+
+ +
+

+ +

+
+
+ Estos pozos no serían posibles sin el trabajo altruista + de nuestros queirdos Raúl y Montse. +
+
+
+ +
+

+ +

+
+
+ Los pozos tiene lugar los domingos. + En principio durante el año 'escolar', es decir, de + septiembre a finales de junio. +
+
+
+ + +
+

+ +

+
+
+ Anim pariatur cliche reprehenderit, enim eiusmod high life + accusamus terry richardson ad squid. 3 wolf moon officia + aute, non cupidatat skateboard dolor brunch. Food truck + quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, + sunt aliqua put a bird on it squid single-origin coffee + nulla assumenda shoreditch et. Nihil anim keffiyeh + helvetica, craft beer labore wes anderson cred nesciunt + sapiente ea proident. Ad vegan excepteur butcher vice lomo. + Leggings occaecat craft beer farm-to-table, raw denim + aesthetic synth nesciunt you probably haven't heard of them + accusamus labore sustainable VHS. +
+
+
+ +
+

+ +

+
+
+ Anim pariatur cliche reprehenderit, enim eiusmod high life + accusamus terry richardson ad squid. 3 wolf moon officia + aute, non cupidatat skateboard dolor brunch. Food truck + quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, + sunt aliqua put a bird on it squid single-origin coffee + nulla assumenda shoreditch et. Nihil anim keffiyeh + helvetica, craft beer labore wes anderson cred nesciunt + sapiente ea proident. Ad vegan excepteur butcher vice lomo. + Leggings occaecat craft beer farm-to-table, raw denim + aesthetic synth nesciunt you probably haven't heard of them + accusamus labore sustainable VHS. +
+
+
+ +
+

+ +

+
+
+ Anim pariatur cliche reprehenderit, enim eiusmod high life + accusamus terry richardson ad squid. 3 wolf moon officia + aute, non cupidatat skateboard dolor brunch. Food truck + quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, + sunt aliqua put a bird on it squid single-origin coffee + nulla assumenda shoreditch et. Nihil anim keffiyeh + helvetica, craft beer labore wes anderson cred nesciunt + sapiente ea proident. Ad vegan excepteur butcher vice lomo. + Leggings occaecat craft beer farm-to-table, raw denim + aesthetic synth nesciunt you probably haven't heard of them + accusamus labore sustainable VHS. +
+
+
+ +
+

+ +

+
+
+ Anim pariatur cliche reprehenderit, enim eiusmod high life + accusamus terry richardson ad squid. 3 wolf moon officia + aute, non cupidatat skateboard dolor brunch. Food truck + quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, + sunt aliqua put a bird on it squid single-origin coffee + nulla assumenda shoreditch et. Nihil anim keffiyeh + helvetica, craft beer labore wes anderson cred nesciunt + sapiente ea proident. Ad vegan excepteur butcher vice lomo. + Leggings occaecat craft beer farm-to-table, raw denim + aesthetic synth nesciunt you probably haven't heard of them + accusamus labore sustainable VHS. +
+
+
+ +
+
+
+
+
+

Organización

+
+
+
+
+

+ +

+
+
+ Anim pariatur cliche reprehenderit, enim eiusmod high life + accusamus terry richardson ad squid. 3 wolf moon officia + aute, non cupidatat skateboard dolor brunch. Food truck + quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, + sunt aliqua put a bird on it squid single-origin coffee + nulla assumenda shoreditch et. Nihil anim keffiyeh + helvetica, craft beer labore wes anderson cred nesciunt + sapiente ea proident. Ad vegan excepteur butcher vice lomo. + Leggings occaecat craft beer farm-to-table, raw denim + aesthetic synth nesciunt you probably haven't heard of them + accusamus labore sustainable VHS. +
+
+
+ +
+

+ +

+
+
+ Anim pariatur cliche reprehenderit, enim eiusmod high life + accusamus terry richardson ad squid. 3 wolf moon officia + aute, non cupidatat skateboard dolor brunch. Food truck + quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, + sunt aliqua put a bird on it squid single-origin coffee + nulla assumenda shoreditch et. Nihil anim keffiyeh + helvetica, craft beer labore wes anderson cred nesciunt + sapiente ea proident. Ad vegan excepteur butcher vice lomo. + Leggings occaecat craft beer farm-to-table, raw denim + aesthetic synth nesciunt you probably haven't heard of them + accusamus labore sustainable VHS. +
+
+
+ + +
+

+ +

+
+
+ Anim pariatur cliche reprehenderit, enim eiusmod high life + accusamus terry richardson ad squid. 3 wolf moon officia + aute, non cupidatat skateboard dolor brunch. Food truck + quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, + sunt aliqua put a bird on it squid single-origin coffee + nulla assumenda shoreditch et. Nihil anim keffiyeh + helvetica, craft beer labore wes anderson cred nesciunt + sapiente ea proident. Ad vegan excepteur butcher vice lomo. + Leggings occaecat craft beer farm-to-table, raw denim + aesthetic synth nesciunt you probably haven't heard of them + accusamus labore sustainable VHS. +
+
+
+ +
+

+ +

+
+
+ Anim pariatur cliche reprehenderit, enim eiusmod high life + accusamus terry richardson ad squid. 3 wolf moon officia + aute, non cupidatat skateboard dolor brunch. Food truck + quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, + sunt aliqua put a bird on it squid single-origin coffee + nulla assumenda shoreditch et. Nihil anim keffiyeh + helvetica, craft beer labore wes anderson cred nesciunt + sapiente ea proident. Ad vegan excepteur butcher vice lomo. + Leggings occaecat craft beer farm-to-table, raw denim + aesthetic synth nesciunt you probably haven't heard of them + accusamus labore sustainable VHS. +
+
+
+ +
+

+ +

+
+
+ Anim pariatur cliche reprehenderit, enim eiusmod high life + accusamus terry richardson ad squid. 3 wolf moon officia + aute, non cupidatat skateboard dolor brunch. Food truck + quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, + sunt aliqua put a bird on it squid single-origin coffee + nulla assumenda shoreditch et. Nihil anim keffiyeh + helvetica, craft beer labore wes anderson cred nesciunt + sapiente ea proident. Ad vegan excepteur butcher vice lomo. + Leggings occaecat craft beer farm-to-table, raw denim + aesthetic synth nesciunt you probably haven't heard of them + accusamus labore sustainable VHS. +
+
+
+ +
+
+
+
+
+

Payment

+
+
+
+
+

+ +

+
+
+ Anim pariatur cliche reprehenderit, enim eiusmod high life + accusamus terry richardson ad squid. 3 wolf moon officia + aute, non cupidatat skateboard dolor brunch. Food truck + quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, + sunt aliqua put a bird on it squid single-origin coffee + nulla assumenda shoreditch et. Nihil anim keffiyeh + helvetica, craft beer labore wes anderson cred nesciunt + sapiente ea proident. Ad vegan excepteur butcher vice lomo. + Leggings occaecat craft beer farm-to-table, raw denim + aesthetic synth nesciunt you probably haven't heard of them + accusamus labore sustainable VHS. +
+
+
+ +
+

+ +

+
+
+ Anim pariatur cliche reprehenderit, enim eiusmod high life + accusamus terry richardson ad squid. 3 wolf moon officia + aute, non cupidatat skateboard dolor brunch. Food truck + quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, + sunt aliqua put a bird on it squid single-origin coffee + nulla assumenda shoreditch et. Nihil anim keffiyeh + helvetica, craft beer labore wes anderson cred nesciunt + sapiente ea proident. Ad vegan excepteur butcher vice lomo. + Leggings occaecat craft beer farm-to-table, raw denim + aesthetic synth nesciunt you probably haven't heard of them + accusamus labore sustainable VHS. +
+
+
+ +
+
+
+ + +
+{% endblock %} + diff --git a/JugarAlPadel/gestion_reservas/templates/eventos/index.html b/JugarAlPadel/gestion_reservas/templates/eventos/index.html deleted file mode 100644 index 127b4ca..0000000 --- a/JugarAlPadel/gestion_reservas/templates/eventos/index.html +++ /dev/null @@ -1,31 +0,0 @@ -{% extends 'base.html' %} - -{% block menuapp %} - -{% endblock menuapp %} - -{% block content %} - -
- -

Introducción

- - - -
- -{% endblock %} diff --git a/JugarAlPadel/gestion_reservas/templates/eventos/lista_eventos.html b/JugarAlPadel/gestion_reservas/templates/eventos/lista_eventos.html index 96a6962..90092f7 100644 --- a/JugarAlPadel/gestion_reservas/templates/eventos/lista_eventos.html +++ b/JugarAlPadel/gestion_reservas/templates/eventos/lista_eventos.html @@ -31,6 +31,7 @@ Evento Fecha + Plazas totales Plazas disponibles @@ -40,6 +41,7 @@ {{ evento.nombre }} {{ evento.fecha }} + {{ evento.plazas_disponibles }} {{ evento.plazas_restantes }} Reservar diff --git a/JugarAlPadel/gestion_reservas/templates/index.html b/JugarAlPadel/gestion_reservas/templates/index.html index f694ddc..0a4a15a 100644 --- a/JugarAlPadel/gestion_reservas/templates/index.html +++ b/JugarAlPadel/gestion_reservas/templates/index.html @@ -1,21 +1,23 @@ {% extends 'base.html' %} +{% block menuapp %} + +{% endblock menuapp %} + {% block content %}
- +

Introducción