Bläddra i källkod

[Frontoffice] Bug adresses

feature/export_comptable
Fab 4 år sedan
förälder
incheckning
ad7e20a821
3 ändrade filer med 12 tillägg och 1 borttagningar
  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 Visa fil

@@ -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 Visa fil

@@ -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 Visa fil

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


Laddar…
Avbryt
Spara