Преглед изворни кода

Adaptations backend/producer/billing

refactoring
Guillaume Bourgeois пре 5 година
родитељ
комит
a004ff1aac
2 измењених фајлова са 6 додато и 51 уклоњено
  1. +1
    -1
      backend/views/layouts/main.php
  2. +5
    -50
      backend/views/producer/billing.php

+ 1
- 1
backend/views/layouts/main.php Прегледај датотеку

@@ -139,7 +139,7 @@ if(!Yii::$app->user->isGuest) {
],
[
'label' => '<span class="glyphicon glyphicon-euro"></span> Mon abonnement',
'url' => ['/producer/facturation'],
'url' => ['/producer/billing'],
'visible' => !Yii::$app->user->isGuest,
],
[

+ 5
- 50
backend/views/producer/billing.php Прегледај датотеку

@@ -57,17 +57,16 @@ $this->params['breadcrumbs'][] = $this->title;

<div id="free-price" class="">
<?php if($alert_prix_libre): ?>
<?php if($alertFreePrice): ?>
<div class="alert alert-success">
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; ?>
</div>
<?php endif; ?>
<?php $form = ActiveForm::begin([
//'layout' => 'vertical',
'fieldConfig' => [
'template' => "{label}\n{beginWrapper}\n{input}\n{hint}\n{error}\n{endWrapper}",
'horizontalCssClasses' => [
@@ -76,13 +75,12 @@ $this->params['breadcrumbs'][] = $this->title;
],
]); ?>
<?= $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>',
])
->label('Prix libre'); ?>
<div class="form-group field-user-prix_libre">
<label class="control-label col-sm-2" for=""></label>
<div class="col-sm-6">
<?= Html::submitButton('Valider', ['class' => 'btn btn-primary']) ?>
</div>
@@ -90,47 +88,4 @@ $this->params['breadcrumbs'][] = $this->title;

<?php ActiveForm::end(); ?>
<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…
Откажи
Сачувај