diff --git a/public/css/ControllerVues/edit.css b/public/css/ControllerVues/edit.css new file mode 100644 index 0000000..e5a8e3a --- /dev/null +++ b/public/css/ControllerVues/edit.css @@ -0,0 +1,119 @@ +/* Global styles */ +body { + font-family: 'Arial', sans-serif; + background-color: #f9f9f9; + color: #333; + margin: 0; + padding: 20px; + display: flex; + justify-content: center; + align-items: center; + min-height: 100vh; +} + +/* Page container */ +.page-container { + width: 100%; + max-width: 600px; + margin: 20px auto; + padding: 20px; + background-color: #fff; + border-radius: 10px; + box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); + border: 2px solid #db5559; +} + +/* Title */ +.page-title { + text-align: center; + font-size: 28px; + color: #db5559; + margin-bottom: 20px; + font-weight: bold; + text-transform: uppercase; + letter-spacing: 1px; +} + +/* Form styles */ +form { + display: flex; + flex-direction: column; + gap: 15px; +} + +.form-group { + display: flex; + flex-direction: column; +} + +label { + font-weight: bold; + color: #db5559; + margin-bottom: 5px; +} + +input[type="text"], +input[type="email"], +input[type="number"], +textarea, +select { + padding: 10px; + border: 1px solid #ddd; + border-radius: 5px; + font-size: 14px; + color: #333; + transition: border-color 0.3s ease-in-out; +} + +input[type="text"]:focus, +input[type="email"]:focus, +input[type="number"]:focus, +textarea:focus, +select:focus { + border-color: #db5559; + outline: none; +} + +/* Submit and Delete buttons */ +button { + background-color: #db5559; + color: white; + font-weight: bold; + padding: 12px 20px; + border: none; + border-radius: 5px; + font-size: 16px; + cursor: pointer; + text-transform: uppercase; + transition: background-color 0.3s ease-in-out; +} + +button:hover { + background-color: #bf494d; +} + +.delete-button { + background-color: #d9534f; + margin-top: 10px; +} + +.delete-button:hover { + background-color: #c9302c; +} + +/* Back to list link */ +.actions { + text-align: center; + margin-top: 15px; +} + +.actions a { + text-decoration: none; + color: #db5559; + font-weight: bold; + transition: color 0.3s ease-in-out; +} + +.actions a:hover { + color: #a02326; +} diff --git a/templates/clients/edit.html.twig b/templates/clients/edit.html.twig index 1f671c7..fe70866 100644 --- a/templates/clients/edit.html.twig +++ b/templates/clients/edit.html.twig @@ -1,13 +1,21 @@ {% extends 'base.html.twig' %} -{% block title %}Edit Clients{% endblock %} +{% block title %}Edit Client{% endblock %} + +{% block stylesheets %} + +{% endblock %} {% block body %} -

Edit Clients

+
+

Edit Client

- {{ include('clients/_form.html.twig', {'button_label': 'Update'}) }} + {{ include('clients/_form.html.twig', {'button_label': 'Update'}) }} - back to list +
+ Back to list +
- {{ include('clients/_delete_form.html.twig') }} + {{ include('clients/_delete_form.html.twig') }} +
{% endblock %} diff --git a/templates/clients/index.html.twig b/templates/clients/index.html.twig index 8296934..28107ae 100644 --- a/templates/clients/index.html.twig +++ b/templates/clients/index.html.twig @@ -28,7 +28,6 @@ {{ client.Email }} {{ client.Telephone }} - show edit diff --git a/templates/clients/new.html.twig b/templates/clients/new.html.twig index 528365d..ed78ad8 100644 --- a/templates/clients/new.html.twig +++ b/templates/clients/new.html.twig @@ -2,7 +2,7 @@ {% block title %}New Clients{% endblock %} {% block stylesheets %} - + {% endblock %} {% block body %} diff --git a/templates/commandes/edit.html.twig b/templates/commandes/edit.html.twig index ce8c20e..b5e7038 100644 --- a/templates/commandes/edit.html.twig +++ b/templates/commandes/edit.html.twig @@ -2,12 +2,20 @@ {% block title %}Edit Commandes{% endblock %} -{% block body %} -

Edit Commandes

- - {{ include('commandes/_form.html.twig', {'button_label': 'Update'}) }} - - back to list - - {{ include('commandes/_delete_form.html.twig') }} +{% block stylesheets %} + +{% endblock %} + +{% block body %} +
+

Edit Commandes

+ + {{ include('commandes/_form.html.twig', {'button_label': 'Update'}) }} + +
+ Back to list +
+ + {{ include('commandes/_delete_form.html.twig') }} +
{% endblock %} diff --git a/templates/details_commande/edit.html.twig b/templates/details_commande/edit.html.twig index 7e0c933..22f8aad 100644 --- a/templates/details_commande/edit.html.twig +++ b/templates/details_commande/edit.html.twig @@ -1,13 +1,21 @@ {% extends 'base.html.twig' %} -{% block title %}Edit DetailsCommande{% endblock %} +{% block title %}Edit Détails Commande{% endblock %} + +{% block stylesheets %} + +{% endblock %} {% block body %} -

Edit DetailsCommande

+
+

Edit Détails Commande

- {{ include('details_commande/_form.html.twig', {'button_label': 'Update'}) }} + {{ include('details_commande/_form.html.twig', {'button_label': 'Update'}) }} - back to list +
+ Back to list +
- {{ include('details_commande/_delete_form.html.twig') }} + {{ include('details_commande/_delete_form.html.twig') }} +
{% endblock %} diff --git a/templates/details_commande/index.html.twig b/templates/details_commande/index.html.twig index 9d02dfe..1cc7b4b 100644 --- a/templates/details_commande/index.html.twig +++ b/templates/details_commande/index.html.twig @@ -25,7 +25,6 @@ {{ details_commande.Quantite }} {{ details_commande.PrixUnitaire }} - show edit diff --git a/templates/plats/edit.html.twig b/templates/plats/edit.html.twig index 14afd7b..0e96826 100644 --- a/templates/plats/edit.html.twig +++ b/templates/plats/edit.html.twig @@ -1,13 +1,21 @@ {% extends 'base.html.twig' %} -{% block title %}Edit Plats{% endblock %} +{% block title %}Edit Plat{% endblock %} + +{% block stylesheets %} + +{% endblock %} {% block body %} -

Edit Plats

+
+

Edit Plat

- {{ include('plats/_form.html.twig', {'button_label': 'Update'}) }} + {{ include('plats/_form.html.twig', {'button_label': 'Update'}) }} - back to list +
+ Back to list +
- {{ include('plats/_delete_form.html.twig') }} + {{ include('plats/_delete_form.html.twig') }} +
{% endblock %} diff --git a/templates/plats/index.html.twig b/templates/plats/index.html.twig index b89f590..8aa1b43 100644 --- a/templates/plats/index.html.twig +++ b/templates/plats/index.html.twig @@ -32,7 +32,6 @@ {{ plat.Statut ? 'Yes' : 'No' }} {{ plat.NbDeCommande }} - show edit diff --git a/templates/reductions/edit.html.twig b/templates/reductions/edit.html.twig index 7e82b78..175b042 100644 --- a/templates/reductions/edit.html.twig +++ b/templates/reductions/edit.html.twig @@ -1,13 +1,21 @@ {% extends 'base.html.twig' %} -{% block title %}Edit Reductions{% endblock %} +{% block title %}Edit Réductions{% endblock %} + +{% block stylesheets %} + +{% endblock %} {% block body %} -

Edit Reductions

+
+

Edit Réductions

- {{ include('reductions/_form.html.twig', {'button_label': 'Update'}) }} + {{ include('reductions/_form.html.twig', {'button_label': 'Update'}) }} - back to list +
+ Back to list +
- {{ include('reductions/_delete_form.html.twig') }} + {{ include('reductions/_delete_form.html.twig') }} +
{% endblock %} diff --git a/templates/reductions/index.html.twig b/templates/reductions/index.html.twig index e0bfc22..b34eb82 100644 --- a/templates/reductions/index.html.twig +++ b/templates/reductions/index.html.twig @@ -32,7 +32,6 @@ {{ reduction.DateDebut ? reduction.DateDebut|date('Y-m-d H:i:s') : '' }} {{ reduction.DateFin ? reduction.DateFin|date('Y-m-d H:i:s') : '' }} - show edit diff --git a/templates/reservations/edit.html.twig b/templates/reservations/edit.html.twig index 6d6ca47..fd347bf 100644 --- a/templates/reservations/edit.html.twig +++ b/templates/reservations/edit.html.twig @@ -1,13 +1,21 @@ {% extends 'base.html.twig' %} -{% block title %}Edit Reservations{% endblock %} +{% block title %}Edit Réservation{% endblock %} + +{% block stylesheets %} + +{% endblock %} {% block body %} -

Edit Reservations

+
+

Edit Réservation

- {{ include('reservations/_form.html.twig', {'button_label': 'Update'}) }} + {{ include('reservations/_form.html.twig', {'button_label': 'Update'}) }} - back to list +
+ Back to list +
- {{ include('reservations/_delete_form.html.twig') }} + {{ include('reservations/_delete_form.html.twig') }} +
{% endblock %} diff --git a/templates/reservations/index.html.twig b/templates/reservations/index.html.twig index 573e019..c711123 100644 --- a/templates/reservations/index.html.twig +++ b/templates/reservations/index.html.twig @@ -1,7 +1,10 @@ {% extends 'base.html.twig' %} {% block title %}Reservations index{% endblock %} +{% block stylesheets %} + +{% endblock %} {% block body %}

Reservations index

@@ -21,7 +24,6 @@ {{ reservation.DateHeure ? reservation.DateHeure|date('Y-m-d H:i:s') : '' }} {{ reservation.NbDePrsn }} - show edit diff --git a/templates/statut_commandes/edit.html.twig b/templates/statut_commandes/edit.html.twig index d9c145b..ad7eea4 100644 --- a/templates/statut_commandes/edit.html.twig +++ b/templates/statut_commandes/edit.html.twig @@ -1,13 +1,21 @@ {% extends 'base.html.twig' %} -{% block title %}Edit StatutCommandes{% endblock %} +{% block title %}Edit Statut commandes{% endblock %} + +{% block stylesheets %} + +{% endblock %} {% block body %} -

Edit StatutCommandes

+
+

Edit Statut commandes

- {{ include('statut_commandes/_form.html.twig', {'button_label': 'Update'}) }} + {{ include('statut_commandes/_form.html.twig', {'button_label': 'Update'}) }} - back to list +
+ Back to list +
- {{ include('statut_commandes/_delete_form.html.twig') }} + {{ include('statut_commandes/_delete_form.html.twig') }} +
{% endblock %} diff --git a/templates/statut_commandes/index.html.twig b/templates/statut_commandes/index.html.twig index 9527bb5..8097c11 100644 --- a/templates/statut_commandes/index.html.twig +++ b/templates/statut_commandes/index.html.twig @@ -23,7 +23,6 @@ {{ statut_commande.id }} {{ statut_commande.Libelle }} - show edit diff --git a/templates/statut_tables/edit.html.twig b/templates/statut_tables/edit.html.twig index b478d3a..34629bb 100644 --- a/templates/statut_tables/edit.html.twig +++ b/templates/statut_tables/edit.html.twig @@ -1,13 +1,21 @@ {% extends 'base.html.twig' %} -{% block title %}Edit StatutTables{% endblock %} +{% block title %}Edit Statut tables{% endblock %} + +{% block stylesheets %} + +{% endblock %} {% block body %} -

Edit StatutTables

+
+

Edit Statut tables

- {{ include('statut_tables/_form.html.twig', {'button_label': 'Update'}) }} + {{ include('statut_tables/_form.html.twig', {'button_label': 'Update'}) }} - back to list +
+ Back to list +
- {{ include('statut_tables/_delete_form.html.twig') }} + {{ include('statut_tables/_delete_form.html.twig') }} +
{% endblock %} diff --git a/templates/statut_tables/index.html.twig b/templates/statut_tables/index.html.twig index b721a5a..75b0715 100644 --- a/templates/statut_tables/index.html.twig +++ b/templates/statut_tables/index.html.twig @@ -1,7 +1,9 @@ {% extends 'base.html.twig' %} {% block title %}StatutTables index{% endblock %} - +{% block stylesheets %} + +{% endblock %} {% block body %}

StatutTables index

@@ -19,7 +21,6 @@ {{ statut_table.id }} {{ statut_table.Libellé }} - show edit diff --git a/templates/statut_tables/new.html.twig b/templates/statut_tables/new.html.twig index c2a3a60..c96c59e 100644 --- a/templates/statut_tables/new.html.twig +++ b/templates/statut_tables/new.html.twig @@ -1,7 +1,10 @@ {% extends 'base.html.twig' %} {% block title %}New StatutTables{% endblock %} +{% block stylesheets %} + +{% endblock %} {% block body %}

Create new StatutTables

diff --git a/templates/tables/edit.html.twig b/templates/tables/edit.html.twig index a0a1a92..3951750 100644 --- a/templates/tables/edit.html.twig +++ b/templates/tables/edit.html.twig @@ -2,12 +2,20 @@ {% block title %}Edit Tables{% endblock %} -{% block body %} -

Edit Tables

- - {{ include('tables/_form.html.twig', {'button_label': 'Update'}) }} - - back to list - - {{ include('tables/_delete_form.html.twig') }} +{% block stylesheets %} + +{% endblock %} + +{% block body %} +
+

Edit Tables

+ + {{ include('tables/_form.html.twig', {'button_label': 'Update'}) }} + +
+ Back to list +
+ + {{ include('tables/_delete_form.html.twig') }} +
{% endblock %} diff --git a/templates/tables/index.html.twig b/templates/tables/index.html.twig index 979d669..721ab68 100644 --- a/templates/tables/index.html.twig +++ b/templates/tables/index.html.twig @@ -1,7 +1,10 @@ {% extends 'base.html.twig' %} {% block title %}Tables index{% endblock %} +{% block stylesheets %} + +{% endblock %} {% block body %}

Tables index

@@ -17,7 +20,6 @@ {{ table.id }} - show edit diff --git a/templates/tables/new.html.twig b/templates/tables/new.html.twig index 5ea4688..ee8b808 100644 --- a/templates/tables/new.html.twig +++ b/templates/tables/new.html.twig @@ -1,15 +1,26 @@ {% extends 'base.html.twig' %} -{% block title %}New Tables{% endblock %} +{% block title %}Create New Table{% endblock %} + +{% block stylesheets %} + + +{% endblock %} {% block stylesheets %} {% endblock %} {% block body %} -

Create new Tables

+
+

Create New Table

- {{ include('tables/_form.html.twig') }} +
+ {{ include('tables/_form.html.twig') }} +
- back to list + +
{% endblock %}