Dobrý den,
úpravu musíte provést v souboru
tabs/AdminCustomers.php. V této části kódu se dají upravit jednotlivé sloupce tabulky:
Kód:
'id_customer' => array('title' => $this->l('ID'), 'align' => 'center', 'width' => 25),
'id_gender' => array('title' => $this->l('Gender'), 'width' => 25, 'align' => 'center', 'icon' => array(1 => 'male.gif', 2 => 'female.gif', 'default' => 'unknown.gif'), 'orderby' => false, 'type' => 'select', 'select' => $genders, 'filter_key' => 'a!id_gender'),
'lastname' => array('title' => $this->l('Last Name'), 'width' => 80),
'firstname' => array('title' => $this->l('First name'), 'width' => 60),
'email' => array('title' => $this->l('E-mail address'), 'width' => 120, 'maxlength' => 19),
'age' => array('title' => $this->l('Age'), 'width' => 30, 'search' => false),
'active' => array('title' => $this->l('Enabled'), 'width' => 25, 'align' => 'center', 'active' => 'status', 'type' => 'bool', 'orderby' => false),
'newsletter' => array('title' => $this->l('News.'), 'width' => 25, 'align' => 'center', 'type' => 'bool', 'callback' => 'printNewsIcon', 'orderby' => false),
'optin' => array('title' => $this->l('Opt.'), 'width' => 25, 'align' => 'center', 'type' => 'bool', 'callback' => 'printOptinIcon', 'orderby' => false),
'date_add' => array('title' => $this->l('Registration'), 'width' => 30, 'type' => 'date', 'align' => 'right'),
'connect' => array('title' => $this->l('Connection'), 'width' => 60, 'type' => 'datetime', 'search' => false));
Takže pokud chcete zvětšit sloupec pro email, upravte si hodnoty
width a
maxlength na tomto řádku:
Kód:
'email' => array('title' => $this->l('E-mail address'), 'width' => 120, 'maxlength' => 19),
Hodnotou
width se nastavuje šířka sloupce (aktuálně
120) a hodnotou
maxlength maximální délka textu/emailu daného sloupce (aktuálně
19).
Pokud chcete zrušit např. zobrazení sloupce
AGE s věkem, tak stačí smazat řádek:
Kód:
'age' => array('title' => $this->l('Age'), 'width' => 30, 'search' => false),
nebo ho můžete pouze zakomentovat (tzn. na začátek řádku přidat
//). Upravený řádek pak bude vypadat následovně:
Kód:
// 'age' => array('title' => $this->l('Age'), 'width' => 30, 'search' => false),