// added the name of controller as class in form.tpl
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11419 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -200,7 +200,8 @@ div.fix-toolbar {border-bottom: 1px solid #E0E0E0;position:fixed;top:0;opacity:0
|
||||
#productBox { position:relative; width:100%; float:left;}
|
||||
|
||||
/*tab-pane*/
|
||||
form#product_form, form#access_form, form#cart_rule_form { background-color:#ebedf4; border:1px solid #ccced7; min-height:404px; padding: 5px 10px 10px; margin-left:140px;}
|
||||
form#product_form, form#access_form, form#cart_rule_form { background-color:#ebedf4; border:1px solid #ccced7; min-height:404px; padding: 5px 10px 10px; margin-left:140px;}
|
||||
#content form.adminstockmanagement {margin-left:0px;}
|
||||
form#product_form h4 { font-size:18px; font-weight:normal;}
|
||||
.tab-row {}
|
||||
.tab-row .tab {background:#EFEFEF;width:100px;}
|
||||
|
||||
@@ -42,7 +42,7 @@
|
||||
|
||||
{if isset($fields.title)}<h2>{$fields.title}</h2>{/if}
|
||||
{block name="defaultForm"}
|
||||
<form id="{$table}_form" class="defaultForm" action="{$current}&{$submit_action}=1&token={$token}" method="post" enctype="multipart/form-data" {if isset($style)}style="{$style}"{/if}>
|
||||
<form id="{$table}_form" class="defaultForm {$name_controller}" action="{$current}&{$submit_action}=1&token={$token}" method="post" enctype="multipart/form-data" {if isset($style)}style="{$style}"{/if}>
|
||||
{if $form_id}
|
||||
<input type="hidden" name="id_{$table}" id="id_{$table}" value="{$form_id}" />
|
||||
{/if}
|
||||
|
||||
@@ -1535,6 +1535,7 @@ class AdminControllerCore extends Controller
|
||||
$helper->currentIndex = self::$currentIndex;
|
||||
$helper->className = $this->className;
|
||||
$helper->table = $this->table;
|
||||
$helper->name_controller = Tools::getValue('controller');
|
||||
$helper->orderBy = $this->_orderBy;
|
||||
$helper->orderWay = $this->_orderWay;
|
||||
$helper->listTotal = $this->_listTotal;
|
||||
|
||||
@@ -37,6 +37,7 @@ class HelperFormCore extends Helper
|
||||
public $fields_value = array();
|
||||
|
||||
public $table;
|
||||
public $name_controller = '';
|
||||
|
||||
/** @var string if not null, a title will be added on that list */
|
||||
public $title = null;
|
||||
@@ -151,6 +152,7 @@ class HelperFormCore extends Helper
|
||||
'current' => $this->currentIndex,
|
||||
'token' => $this->token,
|
||||
'table' => $this->table,
|
||||
'name_controller' => $this->name_controller,
|
||||
'languages' => $this->languages,
|
||||
'defaultFormLanguage' => $this->default_form_language,
|
||||
'allowEmployeeFormLang' => $this->allow_employee_form_lang,
|
||||
|
||||
Reference in New Issue
Block a user