<?php
global $lang, $app;

$config->cluster->dtable = new stdClass();

$config->cluster->dtable->fieldList['name']['title']    = $lang->cluster->name;
$config->cluster->dtable->fieldList['name']['name']     = 'name';
$config->cluster->dtable->fieldList['name']['type']     = 'shortTitle';
$config->cluster->dtable->fieldList['name']['sortType'] = true;
$config->cluster->dtable->fieldList['name']['hint']     = true;

$config->cluster->dtable->fieldList['env']['title']    = $lang->cluster->env;
$config->cluster->dtable->fieldList['env']['name']     = 'env';
$config->cluster->dtable->fieldList['env']['type']     = 'type';
$config->cluster->dtable->fieldList['env']['width']    = 200;
$config->cluster->dtable->fieldList['env']['sortType'] = true;

$config->cluster->dtable->fieldList['desc']['title']    = $lang->cluster->desc;
$config->cluster->dtable->fieldList['desc']['name']     = 'desc';
$config->cluster->dtable->fieldList['desc']['type']     = 'text';
$config->cluster->dtable->fieldList['desc']['sortType'] = false;

$config->cluster->dtable->fieldList['actions']['name']     = 'actions';
$config->cluster->dtable->fieldList['actions']['title']    = $lang->actions;
$config->cluster->dtable->fieldList['actions']['type']     = 'actions';
$config->cluster->dtable->fieldList['actions']['sortType'] = false;
$config->cluster->dtable->fieldList['actions']['fixed']    = 'right';
$config->cluster->dtable->fieldList['actions']['menu']     = array('edit', 'delete');
$config->cluster->dtable->fieldList['actions']['list']     = $config->cluster->actionList;
$config->cluster->dtable->fieldList['actions']['width']    = 80;
