push des vues new + css sur les vues

This commit is contained in:
bayard 2024-11-21 16:18:02 +01:00
parent ab4653d172
commit c6decd7d6b
13 changed files with 160 additions and 5 deletions

125
public/css/new.css Normal file
View File

@ -0,0 +1,125 @@
/* Global styles */
body {
font-family: 'Arial', sans-serif;
background-color: #fff5f5;
color: #333;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
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 #ff4d4d;
}
/* Title */
.page-title {
text-align: center;
font-size: 28px;
color: #ff4d4d;
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: #ff4d4d;
margin-bottom: 5px;
}
input[type="text"],
input[type="email"],
input[type="number"],
textarea,
select {
padding: 10px;
border: 1px solid #ccc;
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: #ff4d4d;
outline: none;
}
/* Submit button */
button {
background-color: #ff4d4d;
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: #e60000;
}
/* Links */
.actions {
text-align: center;
margin-top: 15px;
}
.actions a {
text-decoration: none;
color: #ff4d4d;
font-weight: bold;
transition: color 0.3s ease-in-out;
}
.actions a:hover {
color: #e60000;
}
/* Error messages */
.error-message {
color: #d9534f;
font-size: 14px;
margin-top: 5px;
font-style: italic;
}
/* Empty space below */
body::after {
content: '';
height: 20px;
display: block;
}

0
public/css/show.css Normal file
View File

View File

@ -32,7 +32,7 @@ class Clients
* @var Collection<int, Tables>
*/
#[ORM\ManyToMany(targetEntity: Tables::class, mappedBy: 'Clients')]
private Collection $tables;
public Collection $tables;
/**
* @var Collection<int, Commandes>

View File

@ -25,10 +25,11 @@ class PlatsType extends AbstractType
'class' => Commandes::class,
'choice_label' => 'id',
'multiple' => true,
'expanded' => true,
])
->add('Reduction', EntityType::class, [
'class' => Reductions::class,
'choice_label' => 'id',
'choice_label' => 'description',
])
;
}

View File

@ -2,6 +2,7 @@
{% block title %}New Clients{% endblock %}
{% block body %}
<h1>Create new Clients</h1>

View File

@ -1,6 +1,10 @@
{% extends 'base.html.twig' %}
{% block title %}New Commandes{% endblock %}
{% block stylesheets %}
<link rel="stylesheet" href="{{ asset('css/new.css') }}"> <!-- Ajout du fichier CSS -->
{% endblock %}
{% block body %}
<h1>Create new Commandes</h1>

View File

@ -1,8 +1,12 @@
{% extends 'base.html.twig' %}
{% block title %}New DetailsCommande{% endblock %}
<link rel="stylesheet" href="{{ asset('css/list.css') }}"> <!-- Ajout du fichier CSS -->
{% block stylesheets %}
<link rel="stylesheet" href="{{ asset('css/new.css') }}"> <!-- Ajout du fichier CSS -->
{% endblock %}
{% block body %}
<h1>Create new DetailsCommande</h1>
{{ include('details_commande/_form.html.twig') }}

View File

@ -1,7 +1,10 @@
{% extends 'base.html.twig' %}
{% block title %}New Plats{% endblock %}
{% block stylesheets %}
<link rel="stylesheet" href="{{ asset('css/new.css') }}"> <!-- Ajout du fichier CSS -->
{% endblock %}
{% block body %}
<h1>Create new Plats</h1>

View File

@ -1,11 +1,14 @@
{% extends 'base.html.twig' %}
{% block title %}New Reductions{% endblock %}
{% block stylesheets %}
<link rel="stylesheet" href="{{ asset('css/new.css') }}"> <!-- Ajout du fichier CSS -->
{% endblock %}
{% block body %}
<h1>Create new Reductions</h1>
<h1>Créer une Reductions</h1>
{{ include('reductions/_form.html.twig') }}
<a href="{{ path('app_reductions_index') }}">back to list</a>
<a href="{{ path('app_reductions_index') }}">revenir a la liste</a>
{% endblock %}

View File

@ -1,7 +1,10 @@
{% extends 'base.html.twig' %}
{% block title %}New Reservations{% endblock %}
{% block stylesheets %}
<link rel="stylesheet" href="{{ asset('css/new.css') }}"> <!-- Ajout du fichier CSS -->
{% endblock %}
{% block body %}
<h1>Create new Reservations</h1>

View File

@ -2,6 +2,10 @@
{% block title %}StatutCommandes index{% endblock %}
{% block stylesheets %}
<link rel="stylesheet" href="{{ asset('css/list.css') }}"> <!-- Ajout du fichier CSS -->
{% endblock %}
{% block body %}
<h1>StatutCommandes index</h1>

View File

@ -1,7 +1,10 @@
{% extends 'base.html.twig' %}
{% block title %}New StatutCommandes{% endblock %}
{% block stylesheets %}
<link rel="stylesheet" href="{{ asset('css/new.css') }}"> <!-- Ajout du fichier CSS -->
{% endblock %}
{% block body %}
<h1>Create new StatutCommandes</h1>

View File

@ -1,6 +1,10 @@
{% extends 'base.html.twig' %}
{% block title %}New Tables{% endblock %}
{% block stylesheets %}
<link rel="stylesheet" href="{{ asset('css/new.css') }}"> <!-- Ajout du fichier CSS -->
{% endblock %}
{% block body %}
<h1>Create new Tables</h1>