Browse Source

Adaptations backend/producer/billing

dev
Guillaume Bourgeois 6 years ago
parent
commit
a004ff1aac
2 changed files with 6 additions and 51 deletions
  1. +1
    -1
      backend/views/layouts/main.php
  2. +5
    -50
      backend/views/producer/billing.php

+ 1
- 1
backend/views/layouts/main.php View File

], ],
[ [
'label' => '<span class="glyphicon glyphicon-euro"></span> Mon abonnement', 'label' => '<span class="glyphicon glyphicon-euro"></span> Mon abonnement',
'url' => ['/producer/facturation'],
'url' => ['/producer/billing'],
'visible' => !Yii::$app->user->isGuest, 'visible' => !Yii::$app->user->isGuest,
], ],
[ [

+ 5
- 50
backend/views/producer/billing.php View File



<div id="free-price" class=""> <div id="free-price" class="">
<?php if($alert_prix_libre): ?>
<?php if($alertFreePrice): ?>
<div class="alert alert-success"> <div class="alert alert-success">
Le montant de votre abonnement a bien été mis à jour. Le montant de votre abonnement a bien été mis à jour.
<?php if($etablissement->prix_libre != 0): ?>
Vos prochaines factures mensuelles auront un montant de <strong><?= number_format(Html::encode($etablissement->prix_libre),2).' € HT' ; ?></strong>.
<?php if($producer->free_price != 0): ?>
Vos prochaines factures mensuelles auront un montant de <strong><?= number_format(Html::encode($producer->free_price),2).' € HT' ; ?></strong>.
<?php endif; ?> <?php endif; ?>
</div> </div>
<?php endif; ?> <?php endif; ?>
<?php $form = ActiveForm::begin([ <?php $form = ActiveForm::begin([
//'layout' => 'vertical',
'fieldConfig' => [ 'fieldConfig' => [
'template' => "{label}\n{beginWrapper}\n{input}\n{hint}\n{error}\n{endWrapper}", 'template' => "{label}\n{beginWrapper}\n{input}\n{hint}\n{error}\n{endWrapper}",
'horizontalCssClasses' => [ 'horizontalCssClasses' => [
], ],
]); ?> ]); ?>
<?= $form->field($producer, 'prix_libre',[
<?= $form->field($producer, 'free_price',[
'inputTemplate' => '<div class="input-group">{input}<span class="input-group-addon"><span class="glyphicon glyphicon-euro"></span> HT / mois</span></div>', 'inputTemplate' => '<div class="input-group">{input}<span class="input-group-addon"><span class="glyphicon glyphicon-euro"></span> HT / mois</span></div>',
]) ])
->label('Prix libre'); ?> ->label('Prix libre'); ?>
<div class="form-group field-user-prix_libre"> <div class="form-group field-user-prix_libre">
<label class="control-label col-sm-2" for=""></label>
<div class="col-sm-6"> <div class="col-sm-6">
<?= Html::submitButton('Valider', ['class' => 'btn btn-primary']) ?> <?= Html::submitButton('Valider', ['class' => 'btn btn-primary']) ?>
</div> </div>


<?php ActiveForm::end(); ?> <?php ActiveForm::end(); ?>
<div class="clr"></div> <div class="clr"></div>
</div>


<!--
<h2>Dernières factures</h2>
<?= GridView::widget([
'dataProvider' => $datasInvoices,
'columns' => [
[
'attribute' => 'reference',
'label' => 'Référence',
],
[
'attribute' => 'date',
'value' => function($model) {
return date('d/m/Y', strtotime($model->date)) ;
}
],
'libelle',
[
'attribute' => 'montant_ht',
'label' => 'Montant',
'value' => function($model) {
return number_format($model->amount_ht,2).' €' ;
}
],
[
'attribute' => 'paye',
'label' => 'Payé',
'format' => 'raw',
'value' => function($model) {
if($model->paid)
{
return '<span class="label label-success">Oui</span>' ;
}
else {
return '<span class="label label-danger">Non</span>' ;
}
}
]
],
]); ?>

-->
</div>

Loading…
Cancel
Save