Loading src/UnicaenEvenement/Entity/Db/Evenement.php +1 −1 Original line number Diff line number Diff line Loading @@ -7,7 +7,7 @@ use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\Collection; class Evenement { const DATE_FORMAT = 'd/m/Y H:i'; const DATE_FORMAT = 'Y-m-d\tH:i'; const SEPARATOR = ';'; private ?int $id = -1; Loading src/UnicaenEvenement/Form/Evenement/EvenementForm.php +4 −4 Original line number Diff line number Diff line Loading @@ -3,7 +3,7 @@ namespace UnicaenEvenement\Form\Evenement; use Laminas\Form\Element\Button; use Laminas\Form\Element\DateTime; use Laminas\Form\Element\DateTimeLocal; use Laminas\Form\Element\Text; use Laminas\Form\Form; use Laminas\InputFilter\Factory; Loading @@ -15,14 +15,14 @@ class EvenementForm extends Form { { //date de planif $this->add([ 'type' => DateTime::class, 'type' => DateTimeLocal::class, 'name' => 'planification', 'options' => [ 'label' => 'Date de planification * :', 'format' => Evenement::DATE_FORMAT, ], 'attributes' => [ 'type' => 'planification', 'id' => 'planification', ], ]); //parametres (todo json => array) Loading @@ -33,7 +33,7 @@ class EvenementForm extends Form { 'label' => 'Paramètre :', ], 'attributes' => [ 'type' => 'parametres', 'id' => 'parametres', ], ]); //bouton Loading Loading
src/UnicaenEvenement/Entity/Db/Evenement.php +1 −1 Original line number Diff line number Diff line Loading @@ -7,7 +7,7 @@ use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\Collection; class Evenement { const DATE_FORMAT = 'd/m/Y H:i'; const DATE_FORMAT = 'Y-m-d\tH:i'; const SEPARATOR = ';'; private ?int $id = -1; Loading
src/UnicaenEvenement/Form/Evenement/EvenementForm.php +4 −4 Original line number Diff line number Diff line Loading @@ -3,7 +3,7 @@ namespace UnicaenEvenement\Form\Evenement; use Laminas\Form\Element\Button; use Laminas\Form\Element\DateTime; use Laminas\Form\Element\DateTimeLocal; use Laminas\Form\Element\Text; use Laminas\Form\Form; use Laminas\InputFilter\Factory; Loading @@ -15,14 +15,14 @@ class EvenementForm extends Form { { //date de planif $this->add([ 'type' => DateTime::class, 'type' => DateTimeLocal::class, 'name' => 'planification', 'options' => [ 'label' => 'Date de planification * :', 'format' => Evenement::DATE_FORMAT, ], 'attributes' => [ 'type' => 'planification', 'id' => 'planification', ], ]); //parametres (todo json => array) Loading @@ -33,7 +33,7 @@ class EvenementForm extends Form { 'label' => 'Paramètre :', ], 'attributes' => [ 'type' => 'parametres', 'id' => 'parametres', ], ]); //bouton Loading