update v1.0.5.2

This commit is contained in:
sujitprasad
2016-01-29 12:49:45 +05:30
parent b1d1ebbbef
commit 0bcbc04f92
28 changed files with 1981 additions and 89 deletions

View File

@@ -69,7 +69,14 @@ class OrganizationController extends Controller {
->orderColumns('name', 'website')
/* column name */
->addColumn('name', function ($model) {
return $model->name;
// return $model->name;
if(strlen($model->name) > 20) {
$orgname = substr($model->name, 0, 25);
$orgname = substr($orgname, 0, strrpos($orgname, ' ')).' ...';
} else {
$orgname = $model->name;
}
return $orgname;
})
/* column website */
->addColumn('website', function ($model) {