Browse Source

[Frontoffice] Bug adresses

feature/export_comptable
Fab 4 years ago
parent
commit
ad7e20a821
3 changed files with 12 additions and 1 deletions
  1. +3
    -1
      ShopBundle/Model/Address.php
  2. +3
    -0
      ShopBundle/Resources/translations/lcshop.fr.yaml
  3. +6
    -0
      ShopBundle/Resources/views/backend/default/block/form_address.html.twig

+ 3
- 1
ShopBundle/Model/Address.php View File

@@ -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';

+ 3
- 0
ShopBundle/Resources/translations/lcshop.fr.yaml View File

@@ -390,6 +390,9 @@ field:
unit: Unité
Address:
city: Commune
statusOptions:
offline: Désactiver
online: Activer
typeOptions:
individual: Particulier
legal-person: Professionnel

+ 6
- 0
ShopBundle/Resources/views/backend/default/block/form_address.html.twig View File

@@ -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) }}


Loading…
Cancel
Save