Browse Source

Backend : correctifs

feature/export_comptable
Guillaume 4 years ago
parent
commit
7a8b744311
4 changed files with 17 additions and 16 deletions
  1. +4
    -3
      ShopBundle/Controller/Backend/UserMerchantController.php
  2. +2
    -2
      ShopBundle/Resources/views/backend/default/block/macros.html.twig
  3. +1
    -1
      ShopBundle/Resources/views/backend/default/list.html.twig
  4. +10
    -10
      ShopBundle/Resources/views/backend/merchant/panel_general.html.twig

+ 4
- 3
ShopBundle/Controller/Backend/UserMerchantController.php View File

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(){

+ 2
- 2
ShopBundle/Resources/views/backend/default/block/macros.html.twig View File

{% 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 %}
#}







+ 1
- 1
ShopBundle/Resources/views/backend/default/list.html.twig View File

{% 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 %}

+ 10
- 10
ShopBundle/Resources/views/backend/merchant/panel_general.html.twig View File

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

Loading…
Cancel
Save