|
|
@@ -36,6 +36,7 @@ |
|
|
|
* termes. |
|
|
|
*/ |
|
|
|
|
|
|
|
use common\helpers\GlobalParam; |
|
|
|
use domain\Distribution\Distribution\DistributionModule; |
|
|
|
use domain\Distribution\Distribution\ExportManager; |
|
|
|
use domain\Producer\Producer\ProducerModule; |
|
|
@@ -45,6 +46,7 @@ use yii\helpers\ArrayHelper; |
|
|
|
use yii\helpers\Html; |
|
|
|
use yii\widgets\ActiveForm; |
|
|
|
|
|
|
|
$userCurrent = GlobalParam::getCurrentUser(); |
|
|
|
$userModule = UserModule::getInstance(); |
|
|
|
$producerModule = ProducerModule::getInstance(); |
|
|
|
$distributionModule = DistributionModule::getInstance(); |
|
|
@@ -86,6 +88,20 @@ $distributionModule = DistributionModule::getInstance(); |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
<?php if($userModule->getAuthorizationChecker()->isGrantedAsAdministrator($userCurrent)): ?> |
|
|
|
<div class="panel panel-default"> |
|
|
|
<div class="panel-heading"> |
|
|
|
<h3 class="panel-title"> |
|
|
|
<i class="fa fa-lock"></i> |
|
|
|
Mot de passe |
|
|
|
</h3> |
|
|
|
</div> |
|
|
|
<div class="panel-body"> |
|
|
|
<?= $form->field($model, 'password_new')->passwordInput() ?> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<?php endif; ?> |
|
|
|
|
|
|
|
<?php if($pointsSaleArray && count($pointsSaleArray) > 0): ?> |
|
|
|
<div class="panel panel-default panel-point-sales"> |
|
|
|
<div class="panel-heading"> |