// WIP customer
This commit is contained in:
@@ -28,6 +28,7 @@ class AdminContactsControllerCore extends AdminController
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
$this->bootstrap = true;
|
||||
$this->table = 'contact';
|
||||
$this->className = 'Contact';
|
||||
$this->lang = true;
|
||||
@@ -36,10 +37,10 @@ class AdminContactsControllerCore extends AdminController
|
||||
$this->bulk_actions = array('delete' => array('text' => $this->l('Delete selected'), 'confirm' => $this->l('Delete selected items?')));
|
||||
|
||||
$this->fields_list = array(
|
||||
'id_contact' => array('title' => $this->l('ID'), 'align' => 'center', 'width' => 25),
|
||||
'name' => array('title' => $this->l('Title'), 'width' => 130),
|
||||
'email' => array('title' => $this->l('Email address'), 'width' => 130),
|
||||
'description' => array('title' => $this->l('Description'), 'width' => 150),
|
||||
'id_contact' => array('title' => $this->l('ID'), 'align' => 'center'),
|
||||
'name' => array('title' => $this->l('Title')),
|
||||
'email' => array('title' => $this->l('Email address')),
|
||||
'description' => array('title' => $this->l('Description')),
|
||||
);
|
||||
|
||||
parent::__construct();
|
||||
@@ -50,34 +51,32 @@ class AdminContactsControllerCore extends AdminController
|
||||
$this->fields_form = array(
|
||||
'legend' => array(
|
||||
'title' => $this->l('Contacts'),
|
||||
'image' => '../img/admin/contact.gif'
|
||||
'icon' => 'icon-envelope-alt'
|
||||
),
|
||||
'input' => array(
|
||||
array(
|
||||
'type' => 'text',
|
||||
'label' => $this->l('Title'),
|
||||
'name' => 'name',
|
||||
'size' => 33,
|
||||
'required' => true,
|
||||
'lang' => true,
|
||||
'desc' => $this->l('Contact name (e.g. Customer Support)'),
|
||||
'hint' => $this->l('Contact name (e.g. Customer Support)'),
|
||||
),
|
||||
array(
|
||||
'type' => 'text',
|
||||
'label' => $this->l('Email address'),
|
||||
'name' => 'email',
|
||||
'size' => 33,
|
||||
'required' => false,
|
||||
'desc' => $this->l('Emails will be sent to this address'),
|
||||
'hint' => $this->l('Emails will be sent to this address'),
|
||||
),
|
||||
array(
|
||||
'type' => 'radio',
|
||||
'type' => 'switch',
|
||||
'label' => $this->l('Save messages?'),
|
||||
'name' => 'customer_service',
|
||||
'required' => false,
|
||||
'class' => 't',
|
||||
'is_bool' => true,
|
||||
'desc' => $this->l('If enabled, all messages will be saved in the "Customer Service" page under the "Customer" menu.'),
|
||||
'hint' => $this->l('If enabled, all messages will be saved in the "Customer Service" page under the "Customer" menu.'),
|
||||
'values' => array(
|
||||
array(
|
||||
'id' => 'customer_service_on',
|
||||
@@ -97,14 +96,12 @@ class AdminContactsControllerCore extends AdminController
|
||||
'name' => 'description',
|
||||
'required' => false,
|
||||
'lang' => true,
|
||||
'cols' => 36,
|
||||
'rows' => 5,
|
||||
'desc' => $this->l('Further information regarding this contact'),
|
||||
'hint' => $this->l('Further information regarding this contact'),
|
||||
),
|
||||
),
|
||||
'submit' => array(
|
||||
'title' => $this->l('Save '),
|
||||
'class' => 'button'
|
||||
'class' => 'btn btn-primary'
|
||||
)
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user