diff --git a/assets/styles/css/intervention.css b/assets/styles/css/intervention.css index 7d02e03..100a4ac 100644 --- a/assets/styles/css/intervention.css +++ b/assets/styles/css/intervention.css @@ -20,7 +20,6 @@ body { } - .logoCalendar { position: absolute; margin: 5% 0 0 2%; @@ -72,25 +71,37 @@ body { width: 90%; height: 10%; } -#pannes { + + +#adresse { position: absolute; margin: 10% 0 0 3%; width: 65%; } -#employesCompetences { + + +#pannes { position: absolute; margin: 15% 0 0 3%; width: 65%; } -#piece { + +#employesCompetences { position: absolute; margin: 20% 0 0 3%; width: 65%; } -#vehicule { +#piece { position: absolute; margin: 25% 0 0 3%; + width: 65%; +} + + +#vehicule { + position: absolute; + margin: 30% 0 0 3%; width: 20%; height: 5%; @@ -99,19 +110,31 @@ body { } #vehicule1 { position: absolute; - margin: 25.7% 0 0 21.5%; + margin: 30.7% 0 0 25%; } #oui { position: absolute; - margin: 25.3% 0 0 24%; + margin: 30.3% 0 0 27%; } #vehicule2 { position: absolute; - margin: 19% 0 0 30%; + margin: 30.7% 0 0 32%; } #non { position: absolute; - margin: 18.5% 0 0 33%; + margin: 30.3% 0 0 34%; +} + + +#description { + position: absolute; + margin: 35% 0 0 3%; + width: 40%; + height: 25%; +} +#liste { + position: absolute; + margin: 45% 0 0 44%; } #date { @@ -128,6 +151,11 @@ body { position: absolute; margin: 15% 0 0 75%; } + + + + + .applique { position: absolute; margin: 40% 0 0 80%; @@ -145,13 +173,4 @@ body { border-radius: 3%; background-color: white; -} - - - - - -.from { - position: absolute; - margin: 65% 15% 15% 15%; } \ No newline at end of file diff --git a/src/Form/InterventionType.php b/src/Form/InterventionType.php index 0e2a08e..26cf5a2 100644 --- a/src/Form/InterventionType.php +++ b/src/Form/InterventionType.php @@ -3,8 +3,9 @@ namespace App\Form; use App\Entity\Intervention; -use Doctrine\DBAL\Types\TextType; use Symfony\Component\Form\AbstractType; +use Symfony\Component\Form\Extension\Core\Type\DateType; +use Symfony\Component\Form\Extension\Core\Type\TextType; use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\OptionsResolver\OptionsResolver; @@ -14,7 +15,7 @@ class InterventionType extends AbstractType { $builder ->add('Wording', TextType::class) - ->add('Timestamp', \DateTime::class, [ + ->add('Timestamp', DateType::class, [ 'widget' => 'single_text', ]) ->add('Description', TextType::class) diff --git a/templates/intervention/add.html.twig b/templates/intervention/add.html.twig deleted file mode 100644 index f54dafe..0000000 --- a/templates/intervention/add.html.twig +++ /dev/null @@ -1,66 +0,0 @@ - - -
- -Véhicule nécessaire
- - - - -Jour de l'intervention
- - - - - -Véhicule nécessaire
+ + + + + +Jour de l'intervention
+ + + + + + + + + + + + + Retour à la liste +