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

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

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

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

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

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



Loading…
Cancel
Save