app->app_name;
};
}
public static function getLayout() {
return "{items}
";
}
public static function actionTemplate() {
return "{update} {delete}";
}
public static function driver() {
return function($model) {
$ls = explode("/", $model->driver);
return implode("", $ls);
};
}
public static function telephone() {
return function($model) {
$ls = explode("/", $model->telephone);
return implode("", $ls);
};
}
public static function card() {
return function($model) {
$ls = explode("/", $model->indentity_card);
return implode("", $ls);
};
}
public static function update() {
return function($url, $model) {
return Html::button("", [
"class" => "btn btn-success btn-xs",
"data" => [
"toggle" => "tooltip",
"href" => Url::to(['update', 'id' => $model->id])
],
"title" => "Chỉnh sửa",
"onclick" => "_form(this);"
]);
};
}
public static function delete() {
return function($url, $model) {
return Html::a('', ['delete', 'id' => $model->id], [
'class' => 'btn btn-danger btn-xs',
'title' => "Xóa",
'data' => [
'toggle' => 'tooltip',
'confirm' => "Bạn có chắc chắn muốn xóa thông tin xe này không?",
'method' => 'post'
]
]);
};
}
}