@@ -3,12 +3,14 @@ | |||
namespace Lc\ShopBundle\Model; | |||
use Doctrine\ORM\Mapping as ORM; | |||
use Lc\ShopBundle\Context\StatusInterface; | |||
/** | |||
* @ORM\MappedSuperclass() | |||
*/ | |||
abstract class Address extends AbstractEntity | |||
abstract class Address extends AbstractEntity implements StatusInterface | |||
{ | |||
use StatusTrait; | |||
const TYPE_INDIVIDUAL = 'individual'; | |||
const TYPE_LEGAL_PERSON = 'legal-person'; |
@@ -390,6 +390,9 @@ field: | |||
unit: Unité | |||
Address: | |||
city: Commune | |||
statusOptions: | |||
offline: Désactiver | |||
online: Activer | |||
typeOptions: | |||
individual: Particulier | |||
legal-person: Professionnel |
@@ -68,6 +68,12 @@ | |||
<div class="col-6"> | |||
{{ form_row(form.longitudeOverride) }} | |||
</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) }} | |||