|
|
|
|
|
|
|
|
<?= $form->field($model, 'photo')->fileInput() ?> |
|
|
<?= $form->field($model, 'photo')->fileInput() ?> |
|
|
<?php |
|
|
<?php |
|
|
if (strlen($model->photo)) { |
|
|
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 />'; |
|
|
echo '<input type="checkbox" name="delete_photo" id="delete_photo" /> <label for="delete_photo">Supprimer la photo</label><br /><br />'; |
|
|
} |
|
|
} |
|
|
?> |
|
|
?> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div v-show="currentSection == 'credit-payment'" class="panel panel-default"> |
|
|
<div v-show="currentSection == 'credit-payment'" class="panel panel-default"> |
|
|
<div class="panel-heading"> |
|
|
<div class="panel-heading"> |
|
|
<h3 class="panel-title">Crédit / paiement en ligne</h3> |
|
|
|
|
|
|
|
|
<h3 class="panel-title">Crédit</h3> |
|
|
</div> |
|
|
</div> |
|
|
<div class="panel-body"> |
|
|
<div class="panel-body"> |
|
|
<?= $form->field($model, 'credit') |
|
|
<?= $form->field($model, 'credit') |
|
|
|
|
|
|
|
|
Producer::CREDIT_FUNCTIONING_OPTIONAL => 'Optionnelle', |
|
|
Producer::CREDIT_FUNCTIONING_OPTIONAL => 'Optionnelle', |
|
|
Producer::CREDIT_FUNCTIONING_MANDATORY => 'Obligatoire', |
|
|
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> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|