|
|
@@ -113,8 +113,9 @@ $this->params['breadcrumbs'][] = $this->title; |
|
|
|
'format' => 'raw', |
|
|
|
'value' => function($model) use($etablissement) { |
|
|
|
if(!isset($model['credit'])) $model['credit'] = 0 ; |
|
|
|
$user = User::findOne($model['user_id']) ; |
|
|
|
$html = '<div class="input-group"> |
|
|
|
<input type="text" class="form-control input-credit" readonly="readonly" value="'.number_format($model['credit'],2).' €" placeholder=""> |
|
|
|
<input type="text" class="form-control input-credit" readonly="readonly" value="'.number_format($user->getCredit($etablissement->id),2).' €" placeholder=""> |
|
|
|
<span class="input-group-btn"> |
|
|
|
'.Html::a( |
|
|
|
'<span class="glyphicon glyphicon-euro"></span> Crédit', |