Skip to content

Commit

Permalink
Add ucfirst to State column in Crontab index view
Browse files Browse the repository at this point in the history
  • Loading branch information
tafid committed Nov 19, 2015
1 parent 7c0d4db commit a971f0c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/grid/CrontabGridView.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
namespace hipanel\modules\hosting\grid;

use hipanel\grid\ActionColumn;
use hipanel\helpers\StringHelper;
use hipanel\modules\server\grid\ServerColumn;
use Yii;
use yii\helpers\Html;
Expand Down Expand Up @@ -40,6 +41,9 @@ static public function defaultColumns()
'state' => [
'enableSorting' => false,
'attribute' => 'state',
'value' => function($model) {
return ucfirst(Yii::t('app', $model->state));
}
],
'actions' => [
'class' => ActionColumn::className(),
Expand Down

0 comments on commit a971f0c

Please sign in to comment.