Commit d5ba27cf authored by Mat's avatar Mat

hop

parent 96ffb7be
...@@ -96,6 +96,15 @@ class MembreController extends MasterController ...@@ -96,6 +96,15 @@ class MembreController extends MasterController
*/ */
$commande = new Commande($offre, $user); $commande = new Commande($offre, $user);
$legume = new CommandeLegumes(); $legume = new CommandeLegumes();
//boucle//////
//$legume
//->setPrixUnitaire(2.6)
//->setUnite('botte')
//->setQuantite(3)
//->setPrix(7.8);
//////////
$commande->addCommandeLegumes($legume); $commande->addCommandeLegumes($legume);
$form = $this->createForm(CommandeType::class, $commande); $form = $this->createForm(CommandeType::class, $commande);
......
...@@ -18,7 +18,6 @@ class LettreSortedType extends AbstractType ...@@ -18,7 +18,6 @@ class LettreSortedType extends AbstractType
public function buildForm(FormBuilderInterface $builder, array $options) public function buildForm(FormBuilderInterface $builder, array $options)
{ {
// TODO ajouter un champs sorted dans Lettre
$builder->add('sorted', HiddenType::class, array( $builder->add('sorted', HiddenType::class, array(
'data' => array(), 'data' => array(),
)); ));
......
...@@ -87,7 +87,7 @@ ...@@ -87,7 +87,7 @@
{% elseif is_granted('ROLE_ADMIN') %} {% elseif is_granted('ROLE_ADMIN') %}
Maraîcher Maraîcher
{% else %} {% else %}
Légumivore Abonné
{% endif %} {% endif %}
</span> </span>
</a> </a>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment