[-] BO : FixBug #PSCSX-100 wrong checkbox integration
This commit is contained in:
@@ -3421,12 +3421,12 @@ class AdminProductsControllerCore extends AdminController
|
|||||||
$template = $this->context->smarty->createTemplate('controllers/products/input_text_lang.tpl',
|
$template = $this->context->smarty->createTemplate('controllers/products/input_text_lang.tpl',
|
||||||
$this->context->smarty);
|
$this->context->smarty);
|
||||||
return '<div class="form-group"><div class="input-group">'
|
return '<div class="form-group"><div class="input-group">'
|
||||||
|
.'<span class="input-group-addon"><span class="checkbox"><input type="checkbox" name="require_'.$type.'_'.(int)($id_customization_field).'" id="require_'.$type.'_'.(int)($id_customization_field).'" value="1" '.($required ? 'checked="checked"' : '').'/><label for="require_'.$type.'_'.(int)($id_customization_field).'"> '.$this->l('Required').'</label></span></span>'
|
||||||
.$template->assign(array(
|
.$template->assign(array(
|
||||||
'languages' => $languages,
|
'languages' => $languages,
|
||||||
'input_name' => 'label_'.$type.'_'.(int)($id_customization_field),
|
'input_name' => 'label_'.$type.'_'.(int)($id_customization_field),
|
||||||
'input_value' => $input_value
|
'input_value' => $input_value
|
||||||
))->fetch()
|
))->fetch()
|
||||||
.'<span class="input-group-addon"><span class="checkbox"><input type="checkbox" name="require_'.$type.'_'.(int)($id_customization_field).'" id="require_'.$type.'_'.(int)($id_customization_field).'" value="1" '.($required ? 'checked="checked"' : '').'/><label for="require_'.$type.'_'.(int)($id_customization_field).'"> '.$this->l('Required').'</label></span></span>'
|
|
||||||
.'</div></div>';
|
.'</div></div>';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user