Inital commit
This commit is contained in:
48
local/modules/RibClient/Form/CustomerConfigurationForm.php
Normal file
48
local/modules/RibClient/Form/CustomerConfigurationForm.php
Normal file
@@ -0,0 +1,48 @@
|
||||
<?php
|
||||
/*************************************************************************************/
|
||||
/* Copyright (c) Franck Allimant, CQFDev */
|
||||
/* email : thelia@cqfdev.fr */
|
||||
/* web : http://www.cqfdev.fr */
|
||||
/* */
|
||||
/* For the full copyright and license information, please view the LICENSE */
|
||||
/* file that was distributed with this source code. */
|
||||
/*************************************************************************************/
|
||||
|
||||
/**
|
||||
* Created by Franck Allimant, CQFDev <franck@cqfdev.fr>
|
||||
* Date: 13/04/2019 22:45
|
||||
*/
|
||||
namespace RibClient\Form;
|
||||
|
||||
use RibClient\RibClient;
|
||||
use Symfony\Component\Validator\Constraints\Callback;
|
||||
use Symfony\Component\Validator\Constraints\GreaterThan;
|
||||
use Symfony\Component\Validator\Constraints\NotBlank;
|
||||
use Symfony\Component\Validator\Context\ExecutionContextInterface;
|
||||
use Thelia\Form\BaseForm;
|
||||
|
||||
class CustomerConfigurationForm extends BaseForm
|
||||
{
|
||||
protected function buildForm()
|
||||
{
|
||||
$this->formBuilder
|
||||
->add(
|
||||
'echeance',
|
||||
'choice',
|
||||
[
|
||||
'required' => true,
|
||||
'choices' => [
|
||||
'' => 'Choisissez...',
|
||||
0 => 'À la livraison',
|
||||
15 => 'J + 15 jours',
|
||||
30 => 'J + 30 jours',
|
||||
],
|
||||
'label' => $this->translator->trans('Echéance de ce client', [], RibClient::DOMAIN_NAME),
|
||||
'label_attr' => [
|
||||
'placeholder' => "Indiquez l'échéance à appliquer à ce client."
|
||||
]
|
||||
]
|
||||
)
|
||||
;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user