toutpratique/modules/cms_extrafields/controllers/admin/AdminExtraFieldsGroupController.php

58 lines
1.4 KiB
PHP
Raw Normal View History

<?php
require_once(dirname(__FILE__).'/../../cms_extrafields.php');
class AdminExtraFieldsGroupController extends ModuleAdminController {
public function __construct()
{
$this->identifier = 'id_cmsps_extrafields_group';
$this->lang = true;
$this->table = 'cmsps_extrafields_group';
$this->className = 'CmsPsExtraFieldsGroup';
$this->bootstrap = true;
$this->addRowAction('edit');
parent::__construct();
}
public function renderList()
{
$this->fields_list = array(
'id_cmsps_extrafields_group' => array(
'title' => 'ID',
'width' => 25,
'class' => 'text-center',
),
'name' => array(
'title' => $this->l('Name'),
)
);
return parent::renderList();
}
public function renderForm()
{
$this->fields_form = array(
'multilang' => true,
'legend' => array(
'title' => $this->l('Tags CMS'),
),
'submit' => array(
'title' => $this->l('Save'),
),
'input' => array(
array(
'type' => 'text',
'label' => $this->l('Name'),
'name' => 'name',
'lang' => true
),
)
);
return parent::renderForm();
}
}