namespace Lc\ShopBundle\Model; | namespace Lc\ShopBundle\Model; | ||||
use Doctrine\ORM\Mapping as ORM; | use Doctrine\ORM\Mapping as ORM; | ||||
use Lc\ShopBundle\Context\StatusInterface; | |||||
/** | /** | ||||
* @ORM\MappedSuperclass() | * @ORM\MappedSuperclass() | ||||
*/ | */ | ||||
abstract class Address extends AbstractEntity | |||||
abstract class Address extends AbstractEntity implements StatusInterface | |||||
{ | { | ||||
use StatusTrait; | |||||
const TYPE_INDIVIDUAL = 'individual'; | const TYPE_INDIVIDUAL = 'individual'; | ||||
const TYPE_LEGAL_PERSON = 'legal-person'; | const TYPE_LEGAL_PERSON = 'legal-person'; |
unit: Unité | unit: Unité | ||||
Address: | Address: | ||||
city: Commune | city: Commune | ||||
statusOptions: | |||||
offline: Désactiver | |||||
online: Activer | |||||
typeOptions: | typeOptions: | ||||
individual: Particulier | individual: Particulier | ||||
legal-person: Professionnel | legal-person: Professionnel |
<div class="col-6"> | <div class="col-6"> | ||||
{{ form_row(form.longitudeOverride) }} | {{ form_row(form.longitudeOverride) }} | ||||
</div> | </div> | ||||
<div class="col-12"> | |||||
{{ form_row(form.status) }} | |||||
<p class="callout callout-info"> | |||||
Sauf si vous avez ce que ce vous faites ce champ doit toujours être "Activer" | |||||
</p> | |||||
</div> | |||||
{{ form_row(form.country) }} | {{ form_row(form.country) }} | ||||