use Lc\ShopBundle\Form\Backend\UserMerchant\CreditHistoryType; | use Lc\ShopBundle\Form\Backend\UserMerchant\CreditHistoryType; | ||||
use Lc\ShopBundle\Services\CreditUtils; | use Lc\ShopBundle\Services\CreditUtils; | ||||
use Lc\ShopBundle\Services\Utils; | use Lc\ShopBundle\Services\Utils; | ||||
use Lc\ShopBundle\Services\UtilsManager; | |||||
use Mailjet\MailjetSwiftMailer\SwiftMailer\MailjetTransport; | use Mailjet\MailjetSwiftMailer\SwiftMailer\MailjetTransport; | ||||
use Symfony\Bridge\Doctrine\Form\Type\EntityType; | use Symfony\Bridge\Doctrine\Form\Type\EntityType; | ||||
use Symfony\Component\Form\Extension\Core\Type\SubmitType; | use Symfony\Component\Form\Extension\Core\Type\SubmitType; | ||||
{ | { | ||||
protected $creditUtils; | protected $creditUtils; | ||||
public function __construct(Security $security, UserManagerInterface $userManager, EntityManagerInterface $em, Utils $utils, MerchantUtilsInterface $merchantUtils, MailjetTransport $mailjetTransport, OrderUtilsInterface $orderUtils, TranslatorInterface $translator, CreditUtils $creditUtils) | |||||
public function __construct(Security $security, UserManagerInterface $userManager, EntityManagerInterface $em, MailjetTransport $mailjetTransport, UtilsManager $utilsManager, TranslatorInterface $translator) | |||||
{ | { | ||||
parent::__construct($security, $userManager, $em, $utils, $merchantUtils, $mailjetTransport, $orderUtils, $translator); | |||||
$this->creditUtils = $creditUtils; | |||||
parent::__construct($security, $userManager, $em, $mailjetTransport, $utilsManager, $translator); | |||||
$this->creditUtils = $utilsManager->getCreditUtils(); | |||||
} | } | ||||
public function addCreditHistoryAction(){ | public function addCreditHistoryAction(){ |
{% endmacro card_end %} | {% endmacro card_end %} | ||||
{# | |||||
{% macro startCard(col, zone = "default", card ='primary', fullWidth = false ) %} | {% macro startCard(col, zone = "default", card ='primary', fullWidth = false ) %} | ||||
</div> | </div> | ||||
{% if noCol == false %}</div>{% endif %} | {% if noCol == false %}</div>{% endif %} | ||||
{% endmacro endCard %} | {% endmacro endCard %} | ||||
#} | |||||
{% elseif metadata.type == 'association' %} | {% elseif metadata.type == 'association' %} | ||||
{% set searchable= "select" %} | {% set searchable= "select" %} | ||||
{% elseif metadata.type == 'date' %} | {% elseif metadata.type == 'date' %} | ||||
{% set searchable= "date" %}#} | |||||
{% set searchable= "date" %} | |||||
{% elseif metadata.type=="toggle" %} | {% elseif metadata.type=="toggle" %} | ||||
{% set searchable= "select" %} | {% set searchable= "select" %} | ||||
{% endif %} | {% endif %} |
<div class="col-12"> | <div class="col-12"> | ||||
{{ form_row(form.title) }} | {{ form_row(form.title) }} | ||||
</div> | </div> | ||||
<div class="col-12"> | |||||
{#<div class="col-12"> | |||||
{{ form_row(form.subtitle) }} | {{ form_row(form.subtitle) }} | ||||
</div> | |||||
<div class="col-12"> | |||||
</div>#} | |||||
{#<div class="col-12"> | |||||
{{ form_row(form.kmsHub) }} | {{ form_row(form.kmsHub) }} | ||||
</div> | |||||
<div class="col-12"> | |||||
</div>#} | |||||
{#<div class="col-12"> | |||||
{{ form_row(form.imageFile) }} | {{ form_row(form.imageFile) }} | ||||
</div> | |||||
<div class="col-12"> | |||||
</div>#} | |||||
{#<div class="col-12"> | |||||
{{ form_row(form.description) }} | {{ form_row(form.description) }} | ||||
</div> | |||||
<div class="col-12"> | |||||
</div>#} | |||||
{#<div class="col-12"> | |||||
{{ form_row(form.user) }} | {{ form_row(form.user) }} | ||||
</div> | |||||
</div>#} | |||||
{{ macros.card_end() }} | {{ macros.card_end() }} | ||||
</div> | </div> | ||||
</div> | </div> |