|
|
@@ -85,8 +85,7 @@ $this->addBreadcrumb($this->getTitle()) ; |
|
|
|
<?= $form->field($model, 'photo')->fileInput() ?> |
|
|
|
<?php |
|
|
|
if (strlen($model->photo)) { |
|
|
|
$base_url = Yii::$app->urlManagerProducer->getHostInfo().'/'.Yii::$app->urlManagerProducer->baseUrl ; |
|
|
|
echo '<img src="'.$base_url.'uploads/' . $model->photo . '" width="400px" /><br />'; |
|
|
|
echo '<img src="'.Yii::$app->urlManagerProducer->getBaseUrl().'/uploads/' . $model->photo . '" width="400px" /><br />'; |
|
|
|
echo '<input type="checkbox" name="delete_photo" id="delete_photo" /> <label for="delete_photo">Supprimer la photo</label><br /><br />'; |
|
|
|
} |
|
|
|
?> |
|
|
@@ -161,7 +160,7 @@ $this->addBreadcrumb($this->getTitle()) ; |
|
|
|
|
|
|
|
<div v-show="currentSection == 'credit-payment'" class="panel panel-default"> |
|
|
|
<div class="panel-heading"> |
|
|
|
<h3 class="panel-title">Crédit / paiement en ligne</h3> |
|
|
|
<h3 class="panel-title">Crédit</h3> |
|
|
|
</div> |
|
|
|
<div class="panel-body"> |
|
|
|
<?= $form->field($model, 'credit') |
|
|
@@ -184,17 +183,6 @@ $this->addBreadcrumb($this->getTitle()) ; |
|
|
|
Producer::CREDIT_FUNCTIONING_OPTIONAL => 'Optionnelle', |
|
|
|
Producer::CREDIT_FUNCTIONING_MANDATORY => 'Obligatoire', |
|
|
|
], []) ; ?> |
|
|
|
|
|
|
|
<?= $form->field($model, 'online_payment') |
|
|
|
->dropDownList([ |
|
|
|
0 => 'Non', |
|
|
|
1 => 'Oui', |
|
|
|
], []) |
|
|
|
->label('Activer le paiement en ligne') |
|
|
|
->hint('Le paiement en ligne permet à vos utilisateurs de recharger leur Crédit' |
|
|
|
. ' via leur carte bancaire.') ; ?> |
|
|
|
|
|
|
|
<?= $form->field($model, 'secret_key_payplug') ?> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|