ソースを参照

Merge branch 'develop'

develop
Guillaume 3年前
コミット
d1709de372
3個のファイルの変更33行の追加5行の削除
  1. +5
    -5
      ShopBundle/Form/Frontend/TicketType.php
  2. +1
    -0
      ShopBundle/Resources/translations/lcshop.fr.yaml
  3. +27
    -0
      ShopBundle/Resources/views/backend/default/block/list_ordersgiftvoucher.html.twig

+ 5
- 5
ShopBundle/Form/Frontend/TicketType.php ファイルの表示

@@ -23,6 +23,7 @@ class TicketType extends AbstractType
protected $security ;
protected $em ;
protected $priceUtils ;
protected $utils ;

public function __construct(Security $security, EntityManagerInterface $em, UtilsManager $utilsManager)
{
@@ -30,6 +31,7 @@ class TicketType extends AbstractType
$this->em = $em ;
$this->orderShopRepository = $this->em->getRepository(OrderShop::class) ;
$this->priceUtils = $utilsManager->getPriceUtils() ;
$this->utils = $utilsManager->getUtils() ;
}

public function buildForm(FormBuilderInterface $builder, array $options)
@@ -83,13 +85,11 @@ class TicketType extends AbstractType
]) ;
}
else {
// captcha (honey pot)
$builder->add('body', TextType::class, [
'label' => 'Body',
'required' => false,
]) ;
// captcha
$this->utils->addCaptchaType($builder);
}


$builder->add('subject', TextType::class, [
'label' => 'Sujet'
])

+ 1
- 0
ShopBundle/Resources/translations/lcshop.fr.yaml ファイルの表示

@@ -78,6 +78,7 @@ group:
orderStatusHistories: Historique de changement de statut
waitingBankReturn: Commandes en attente de retour banque
list: Liste des commandes
giftVoucher: Commandes de bons cadeaux
Ticket:
listMessages: Liste des messages
list: Tickets ouverts

+ 27
- 0
ShopBundle/Resources/views/backend/default/block/list_ordersgiftvoucher.html.twig ファイルの表示

@@ -0,0 +1,27 @@
<table class="table table-condensed" id="address-list">
<thead>
<tr>
<th>Id</th>
<th>Utilisateurs</th>
<th>Date</th>
<th></th>
</tr>
</thead>
<tbody>
{% for order in orderShopsWeekGiftVoucher %}
<tr>
<td>{{ order.id }}</td>
<td>{{ order.user }}</td>
<td>{{ order.updatedAt|date('d-m H:i') }}</td>
<td><a class="btn-sm btn-success"
href="{{ path('easyadmin', {id: order.id, entity: 'OrderShop', action: 'show'}) }}">
<i class="fas fa-eye"></i>
</a></td>
</tr>
{% else %}
<tr>
<td colspan="4"><i>Aucune commande de bons cadeaux</i></td>
{% endfor %}
</tbody>
</table>


読み込み中…
キャンセル
保存