Переглянути джерело

[Global] Ajout type ticket

feature/module_traiteur_v1
Fab 4 роки тому
джерело
коміт
6d522f1835
4 змінених файлів з 6 додано та 1 видалено
  1. +2
    -1
      ShopBundle/Form/Backend/User/TicketTypesNotificationType.php
  2. +1
    -0
      ShopBundle/Form/Frontend/TicketType.php
  3. +2
    -0
      ShopBundle/Model/Ticket.php
  4. +1
    -0
      ShopBundle/Resources/translations/lcshop.fr.yaml

+ 2
- 1
ShopBundle/Form/Backend/User/TicketTypesNotificationType.php Переглянути файл

@@ -35,7 +35,8 @@ class TicketTypesNotificationType extends AbstractType
'field.Ticket.typeOptions.'.Ticket::TYPE_GENERAL_QUESTION => Ticket::TYPE_GENERAL_QUESTION,
'field.Ticket.typeOptions.'.Ticket::TYPE_PRODUCT_ERROR=> Ticket::TYPE_PRODUCT_ERROR ,
'field.Ticket.typeOptions.'.Ticket::TYPE_PRODUCT_UNAVAILABLE => Ticket::TYPE_PRODUCT_UNAVAILABLE,
'field.Ticket.typeOptions.'.Ticket::TYPE_TECHNICAL_PROBLEM => Ticket::TYPE_TECHNICAL_PROBLEM
'field.Ticket.typeOptions.'.Ticket::TYPE_TECHNICAL_PROBLEM => Ticket::TYPE_TECHNICAL_PROBLEM,
'field.Ticket.typeOptions.'.Ticket::TYPE_POULTRY_BOOKING => Ticket::TYPE_POULTRY_BOOKING
),
'required' => false,
'expanded' => false,

+ 1
- 0
ShopBundle/Form/Frontend/TicketType.php Переглянути файл

@@ -58,6 +58,7 @@ class TicketType extends AbstractType
'field.Ticket.typeOptions.'.Ticket::TYPE_PRODUCT_UNAVAILABLE => Ticket::TYPE_PRODUCT_UNAVAILABLE,
'field.Ticket.typeOptions.'.Ticket::TYPE_PRODUCT_ERROR => Ticket::TYPE_PRODUCT_ERROR,
'field.Ticket.typeOptions.'.Ticket::TYPE_TECHNICAL_PROBLEM => Ticket::TYPE_TECHNICAL_PROBLEM,
'field.Ticket.typeOptions.'.Ticket::TYPE_POULTRY_BOOKING => Ticket::TYPE_POULTRY_BOOKING,
],
'translation_domain' => 'lcshop',
]) ;

+ 2
- 0
ShopBundle/Model/Ticket.php Переглянути файл

@@ -22,6 +22,8 @@ abstract class Ticket extends AbstractEntity implements FilterMerchantInterface
const TYPE_PRODUCT_ERROR = 'product-error' ;
const TYPE_TECHNICAL_PROBLEM = 'technical-problem' ;
const TYPE_GENERAL_QUESTION = 'general-question' ;
const TYPE_POULTRY_BOOKING = 'poultry-booking' ;


const TICKET_STATUS_OPEN = 'open' ;
const TICKET_STATUS_BEING_PROCESSED = 'being-processed' ;

+ 1
- 0
ShopBundle/Resources/translations/lcshop.fr.yaml Переглянути файл

@@ -462,6 +462,7 @@ field:
product-unavailable: Produit manquant
product-error: Erreur sur un produit
technical-problem: Problème techique
poultry-booking: Réservation volaille
statusOptions:
open: Ouvert
being-processed: En cours de traitement

Завантаження…
Відмінити
Зберегти