setTitle('Taxes');
$this->addBreadcrumb($this->getTitle());
$this->addButton(['label' => 'Nouvelle taxe ', 'url' => 'tax-rate-admin/create', 'class' => 'btn btn-primary']);
?>
= GridView::widget([
'dataProvider' => $dataProviderTaxRate,
'columns' => [
'name',
[
'attribute' => 'value',
'value' => function ($model) {
return $model->value . '%';
}
],
[
'class' => 'yii\grid\ActionColumn',
'template' => '{update} {delete}',
'headerOptions' => ['class' => 'column-actions'],
'contentOptions' => ['class' => 'column-actions'],
'buttons' => [
'update' => function ($url, $model) {
return Html::a('', $url, [
'title' => 'Modifier', 'class' => 'btn btn-default'
]);
},
'delete' => function ($url, $model) {
return Html::a('', $url, [
'title' => 'Supprimer', 'class' => 'btn btn-default'
]);
}
],
],
],
]); ?>