Beispiel #1
0
 public function __construct($options = null)
 {
     parent::__construct($options);
     $this->_currentEditLanguage = Zend_Registry::get('currentEditLanguage');
     $this->_labelCSS = Cible_FunctionsGeneral::getLanguageLabelColor($options);
     if (isset($options['addAction'])) {
         $this->_currentMode = 'add';
     }
     $lang = new Cible_Form_Element_LanguageSelector('langSelector', $this->_params, array('lang' => $this->_currentEditLanguage, 'mode' => $this->_currentMode));
     $lang->setValue($this->_currentEditLanguage)->removeDecorator('Label');
     $this->addElement($lang);
 }
Beispiel #2
0
 public function __construct($options = null)
 {
     parent::__construct($options);
     if (!$this->_disabledLangSwitcher) {
         $this->_currentEditLanguage = Zend_Registry::get('currentEditLanguage');
         $this->_labelCSS = Cible_FunctionsGeneral::getLanguageLabelColor($options);
         if (isset($options['addAction'])) {
             $this->_currentMode = 'add';
         }
         $lang = new Cible_Form_Element_LanguageSelector('langSelector', $this->_params, array('lang' => $this->_currentEditLanguage, 'mode' => $this->_currentMode));
         $lang->setValue($this->_currentEditLanguage)->setDecorators(array('ViewHelper'));
         if (!$this->_disabledDefaultActions) {
             $this->addActionButton($lang);
         }
     }
 }
Beispiel #3
0
 public function __construct($options = null)
 {
     parent::__construct($options);
     $labelCSS = Cible_FunctionsGeneral::getLanguageLabelColor($options);
     $imageSrc = $options['imageSrc'];
     $dataId = $options['dataId'];
     $imgField = $options['imgField'];
     $isNewImage = $options['isNewImage'];
     $moduleName = $options['moduleName'];
     if ($dataId == '') {
         $pathTmp = "../../../../../data/images/" . $moduleName . "/tmp";
     } else {
         $pathTmp = "../../../../../data/images/" . $moduleName . "/" . $dataId . "/tmp";
     }
     // hidden specify if new image for the news
     //        $newImage = new Zend_Form_Element_Hidden('isNewImage', array('value' => $isNewImage));
     //        $newImage->removeDecorator('Label');
     //        $this->addElement($newImage);
     // Value of the reference
     $value = new Zend_Form_Element_Text('RI_Value');
     $value->setLabel($this->getView()->getCibleText('form_reference_value_label'))->setRequired(true)->addFilter('StripTags')->addFilter('StringTrim')->addValidator('NotEmpty', true, array('messages' => array('isEmpty' => $this->getView()->getCibleText('validation_message_empty_field'))))->setDecorators(array('ViewHelper', array('label', array('placement' => 'prepend')), array('Errors', array('placement' => 'append')), array(array('row' => 'HtmlTag'), array('tag' => 'dd', 'class' => 'form_title_inline', 'id' => 'title'))))->setAttrib('class', 'stdTextInput');
     $label = $value->getDecorator('Label');
     $label->setOption('class', $this->_labelCSS);
     $this->addElement($value);
     // List of Type
     $type = new Zend_Form_Element_Select('R_TypeRef');
     $type->setLabel($this->getView()->getCibleText('form_reference_type_label'))->setRequired(true)->addValidator('NotEmpty', true, array('messages' => array('isEmpty' => $this->getView()->getCibleText('validation_message_empty_field'))))->setAttrib('class', 'stdSelect')->setDecorators(array('ViewHelper', array('label', array('placement' => 'prepend')), array('Errors', array('placement' => 'append')), array(array('row' => 'HtmlTag'), array('tag' => 'dd', 'class' => 'form_title_inline', 'id' => 'title'))));
     $oRef = new ReferencesObject();
     $enums = $oRef->getEnum('R_TypeRef');
     $multiOptions = array();
     foreach ($enums as $enum) {
         $multiOptions[$enum] = $this->getView()->getCibleText('form_enum_' . $enum);
     }
     $type->addMultiOptions($multiOptions);
     $this->addElement($type);
     // Value of the reference
     $seq = new Zend_Form_Element_Text('RI_Seq');
     $seq->setLabel($this->getView()->getCibleText('form_reference_seq_label'))->setRequired(true)->addFilter('StripTags')->addFilter('StringTrim')->addValidator('NotEmpty', true, array('messages' => array('isEmpty' => $this->getView()->getCibleText('validation_message_empty_field'))))->setDecorators(array('ViewHelper', array('label', array('placement' => 'prepend')), array('Errors', array('placement' => 'append')), array(array('row' => 'HtmlTag'), array('tag' => 'dd', 'class' => 'form_title_inline', 'id' => 'title'))))->setAttrib('class', 'stdTextInput');
     $label = $seq->getDecorator('Label');
     $label->setOption('class', $this->_labelCSS);
     $this->addElement($seq);
 }
Beispiel #4
0
 public function __construct($options = null)
 {
     parent::__construct($options);
     $labelCSS = Cible_FunctionsGeneral::getLanguageLabelColor($options);
     $imageSrc = $options['imageSrc'];
     $dataId = $options['dataId'];
     $imgField = $options['imgField'];
     $isNewImage = $options['isNewImage'];
     $moduleName = $options['moduleName'];
     if ($dataId == '') {
         $pathTmp = "../../../../../data/images/" . $moduleName . "/tmp";
     } else {
         $pathTmp = "../../../../../data/images/" . $moduleName . "/" . $dataId . "/tmp";
     }
     // Name of the group of banner
     $valueName = new Zend_Form_Element_Text('BG_Name');
     $valueName->setLabel($this->getView()->getCibleText('form_banner_name_label'))->setRequired(true)->addFilter('StripTags')->addFilter('StringTrim')->addValidator('NotEmpty', true, array('messages' => array('isEmpty' => $this->getView()->getCibleText('validation_message_empty_field'))))->setDecorators(array('ViewHelper', array('label', array('placement' => 'prepend')), array('Errors', array('placement' => 'append')), array(array('row' => 'HtmlTag'), array('tag' => 'dd', 'class' => 'form_title_inline', 'id' => 'title'))))->setAttrib('class', 'stdTextInput');
     $label = $valueName->getDecorator('Label');
     $label->setOption('class', $this->_labelCSS);
     $this->addElement($valueName);
 }
Beispiel #5
0
 public function __construct($options = null)
 {
     parent::__construct($options);
     $labelCSS = Cible_FunctionsGeneral::getLanguageLabelColor($options);
     $imageSrc = $options['imageSrc'];
     $dataId = $options['dataId'];
     $imgField = $options['imgField'];
     $isNewImage = $options['isNewImage'];
     $moduleName = $options['moduleName'];
     if ($dataId == '') {
         $pathTmp = "../../../../../data/images/" . $moduleName . "/tmp";
     } else {
         $pathTmp = "../../../../../data/images/" . $moduleName . "/" . $dataId . "/tmp";
     }
     // Value of the shipping free
     $valueShippingFees = new Zend_Form_Element_Text('CP_ShippingFees');
     $valueShippingFees->setLabel($this->getView()->getCibleText('form_parameters_montant_label'))->setRequired(true)->addFilter('StripTags')->addFilter('StringTrim')->addValidator('NotEmpty', true, array('messages' => array('isEmpty' => $this->getView()->getCibleText('validation_message_empty_field'))))->setDecorators(array('ViewHelper', array('label', array('placement' => 'prepend')), array('Errors', array('placement' => 'append')), array(array('row' => 'HtmlTag'), array('tag' => 'dd', 'class' => 'form_title_inline', 'id' => 'title'))))->setAttrib('class', 'stdTextInput');
     $label = $valueShippingFees->getDecorator('Label');
     $label->setOption('class', $this->_labelCSS);
     // Value of the shipping fees limit
     $valueShippingFeesLimit = new Zend_Form_Element_Text('CP_ShippingFeesLimit');
     $valueShippingFeesLimit->setLabel($this->getView()->getCibleText('form_parameters_limit_transport_label'))->setRequired(true)->addFilter('StripTags')->addFilter('StringTrim')->addValidator('NotEmpty', true, array('messages' => array('isEmpty' => $this->getView()->getCibleText('validation_message_empty_field'))))->setDecorators(array('ViewHelper', array('label', array('placement' => 'prepend')), array('Errors', array('placement' => 'append')), array(array('row' => 'HtmlTag'), array('tag' => 'dd', 'class' => 'form_title_inline', 'id' => 'title'))))->setAttrib('class', 'stdTextInput');
     $label = $valueShippingFeesLimit->getDecorator('Label');
     $label->setOption('class', $this->_labelCSS);
     // Value of the COD
     $valueMontantFraisCOD = new Zend_Form_Element_Text('CP_MontantFraisCOD');
     $valueMontantFraisCOD->setLabel($this->getView()->getCibleText('form_parameters_COD_label'))->setRequired(true)->addFilter('StripTags')->addFilter('StringTrim')->addValidator('NotEmpty', true, array('messages' => array('isEmpty' => $this->getView()->getCibleText('validation_message_empty_field'))))->setDecorators(array('ViewHelper', array('label', array('placement' => 'prepend')), array('Errors', array('placement' => 'append')), array(array('row' => 'HtmlTag'), array('tag' => 'dd', 'class' => 'form_title_inline', 'id' => 'title'))))->setAttrib('class', 'stdTextInput');
     $label = $valueMontantFraisCOD->getDecorator('Label');
     $label->setOption('class', $this->_labelCSS);
     // Email for the command
     $valueAdminOrdersEmail = new Zend_Form_Element_Text('CP_AdminOrdersEmail');
     $valueAdminOrdersEmail->setLabel($this->getView()->getCibleText('form_parameters_email_label'))->setRequired(true)->addFilter('StripTags')->addFilter('StringTrim')->addValidator('NotEmpty', true, array('messages' => array('isEmpty' => $this->getView()->getCibleText('validation_message_empty_field'))))->setDecorators(array('ViewHelper', array('label', array('placement' => 'prepend')), array('Errors', array('placement' => 'append')), array(array('row' => 'HtmlTag'), array('tag' => 'dd', 'class' => 'form_title_inline', 'id' => 'title'))))->setAttrib('class', 'stdTextInput');
     $label = $valueAdminOrdersEmail->getDecorator('Label');
     $label->setOption('class', $this->_labelCSS);
     // Id of the free Item
     // List of products
     $oItems = new ItemsObject();
     $listItem = $oItems->itemsCollection(Zend_Registry::get('currentEditLanguage'));
     $itemID = new Zend_Form_Element_Select('CP_FreeItemID');
     $itemID->setLabel($this->getView()->getCibleText('form_parameters_free_item_label'))->setRequired(true)->addValidator('NotEmpty', true, array('messages' => array('isEmpty' => $this->getView()->getCibleText('validation_message_empty_field'))))->setAttrib('class', 'stdSelect')->setDecorators(array('ViewHelper', array('label', array('placement' => 'prepend')), array('Errors', array('placement' => 'append')), array(array('row' => 'HtmlTag'), array('tag' => 'dd', 'class' => 'form_title_inline', 'id' => 'title'))));
     $itemID->addMultiOption('', $this->getView()->getCibleText('form_select_default_label'));
     $itemID->addMultiOptions($listItem);
     // Value of the minimum amount to have a free item
     $valueFreeMiniAmount = new Zend_Form_Element_Text('CP_FreeMiniAmount');
     $valueFreeMiniAmount->setLabel($this->getView()->getCibleText('form_parameters_free_item_minimum_label'))->setRequired(true)->addFilter('StripTags')->addFilter('StringTrim')->addValidator('NotEmpty', true, array('messages' => array('isEmpty' => $this->getView()->getCibleText('validation_message_empty_field'))))->setDecorators(array('ViewHelper', array('label', array('placement' => 'prepend')), array('Errors', array('placement' => 'append')), array(array('row' => 'HtmlTag'), array('tag' => 'dd', 'class' => 'form_title_inline', 'id' => 'title'))))->setAttrib('class', 'stdTextInput');
     $label = $valueFreeMiniAmount->getDecorator('Label');
     $label->setOption('class', $this->_labelCSS);
     // Value of the minimum amount to have a free item
     $valueBonusPointDollar = new Zend_Form_Element_Text('CP_BonusPointDollar');
     $valueBonusPointDollar->setLabel($this->getView()->getCibleText('form_parameters_bonus_label'))->setRequired(true)->addFilter('StripTags')->addFilter('StringTrim')->addValidator('NotEmpty', true, array('messages' => array('isEmpty' => $this->getView()->getCibleText('validation_message_empty_field'))))->setDecorators(array('ViewHelper', array('label', array('placement' => 'prepend')), array('Errors', array('placement' => 'append')), array(array('row' => 'HtmlTag'), array('tag' => 'dd', 'class' => 'form_title_inline', 'id' => 'title'))))->setAttrib('class', 'stdTextInput');
     $label = $valueBonusPointDollar->getDecorator('Label');
     $label->setOption('class', $this->_labelCSS);
     // Value of the canadian tax TPS
     $valueTauxTaxeFed = new Zend_Form_Element_Text('CP_TauxTaxeFed');
     $valueTauxTaxeFed->setLabel($this->getView()->getCibleText('form_parameters_taxe_label'))->setRequired(true)->addFilter('StripTags')->addFilter('StringTrim')->addValidator('NotEmpty', true, array('messages' => array('isEmpty' => $this->getView()->getCibleText('validation_message_empty_field'))))->setDecorators(array('ViewHelper', array('label', array('placement' => 'prepend')), array('Errors', array('placement' => 'append')), array(array('row' => 'HtmlTag'), array('tag' => 'dd', 'class' => 'form_title_inline', 'id' => 'title'))))->setAttrib('class', 'stdTextInput');
     $label = $valueTauxTaxeFed->getDecorator('Label');
     $label->setOption('class', $this->_labelCSS);
     $this->addElement($valueShippingFees);
     $this->addElement($valueShippingFeesLimit);
     $this->addElement($valueMontantFraisCOD);
     $this->addElement($valueAdminOrdersEmail);
     $this->addElement($itemID);
     $this->addElement($valueFreeMiniAmount);
     $this->addElement($valueBonusPointDollar);
     $this->addElement($valueTauxTaxeFed);
 }
Beispiel #6
0
 /**
  * Class constructor
  *
  * @return void
  */
 public function __construct($options = null)
 {
     parent::__construct($options);
     $labelCSS = Cible_FunctionsGeneral::getLanguageLabelColor($options);
     $imageSrc = $options['imageSrc'];
     $dataId = $options['dataId'];
     $imgField = $options['imgField'];
     $isNewImage = $options['isNewImage'];
     $moduleName = $options['moduleName'];
     $formItemPrices = new Zend_Form_SubForm();
     $formTop = new Zend_Form_SubForm();
     $formBottom = new Zend_Form_SubForm();
     //        $this = new Zend_Form_SubForm();
     if ($dataId == '') {
         $pathTmp = "../../../../../data/images/" . $moduleName . "/tmp";
     } else {
         $pathTmp = "../../../../../data/images/" . $moduleName . "/" . $dataId . "/tmp";
     }
     // hidden specify if new image for the news
     //        $newImage = new Zend_Form_Element_Hidden('isNewImage', array('value' => $isNewImage));
     //        $newImage->removeDecorator('Label');
     //        $this->addElement($newImage);
     // Name of the product line
     $name = new Zend_Form_Element_Text('II_Name');
     $name->setLabel($this->getView()->getCibleText('item_label_name') . "<span class='field_required'>*</span>")->setRequired(true)->addFilter('StripTags')->addFilter('StringTrim')->addValidator('NotEmpty', true, array('messages' => array('isEmpty' => $this->getView()->getCibleText('validation_message_empty_field'))))->setDecorators(array('ViewHelper', array('label', array('placement' => 'prepend')), array('Errors', array('placement' => 'append')), array(array('row' => 'HtmlTag'), array('tag' => 'dd', 'class' => 'form_title_inline', 'id' => 'title'))))->setAttrib('class', 'stdTextInput');
     $label = $name->getDecorator('Label');
     $label->setOption('class', $this->_labelCSS);
     $formTop->addElement($name);
     // List of products
     $oProducts = new ProductsObject();
     $listProd = $oProducts->productsCollection(Zend_Registry::get('currentEditLanguage'));
     $products = new Zend_Form_Element_Select('I_ProductID');
     $products->setLabel($this->getView()->getCibleText('form_item_products_label') . "<span class='field_required'>*</span>")->setRequired(true)->addValidator('NotEmpty', true, array('messages' => array('isEmpty' => $this->getView()->getCibleText('validation_message_empty_field'))))->setAttrib('class', 'largeSelect')->setDecorators(array('ViewHelper', array('label', array('placement' => 'prepend')), array('Errors', array('placement' => 'append')), array(array('row' => 'HtmlTag'), array('tag' => 'dd', 'class' => 'form_title_inline', 'id' => 'title'))));
     $products->addMultiOption('', $this->getView()->getCibleText('form_select_default_label'));
     $products->addMultiOptions($listProd);
     //        foreach ($listProd as $data)
     //        {
     //            $products->addMultiOption($data['P_ID'], $data['PI_Name']);
     //        }
     $formTop->addElement($products);
     // Product
     $productCode = new Zend_Form_Element_Text('I_ProductCode');
     $productCode->setLabel($this->getView()->getCibleText('form_product_code_label'))->setRequired(false)->addFilter('StripTags')->addFilter('StringTrim')->addValidator('NotEmpty', true, array('messages' => array('isEmpty' => $this->getView()->getCibleText('validation_message_empty_field'))))->setDecorators(array('ViewHelper', array('label', array('placement' => 'prepend')), array(array('row' => 'HtmlTag'), array('tag' => 'dd', 'class' => 'form_title_inline', 'id' => 'title'))))->setAttrib('class', 'stdTextInput');
     $formTop->addElement($productCode);
     // Item sequence
     $sequence = new Zend_Form_Element_Text('I_Seq');
     $sequence->setLabel($this->getView()->getCibleText('form_product_sequence_label'))->setRequired(false)->addFilter('StripTags')->addFilter('StringTrim')->addValidator('NotEmpty', true, array('messages' => array('isEmpty' => $this->getView()->getCibleText('validation_message_empty_field'))))->setDecorators(array('ViewHelper', array('label', array('placement' => 'prepend')), array(array('row' => 'HtmlTag'), array('tag' => 'dd', 'class' => 'form_title_inline', 'id' => 'title'))))->setAttrib('class', 'smallTextInput');
     $formTop->addElement($sequence);
     // Detail Price
     $detailPrice = new Zend_Form_Element_Text('I_PriceDetail');
     $detailPrice->setLabel($this->getView()->getCibleText('form_item_pricedetail_label'))->setRequired(false)->addFilter('StripTags')->addFilter('StringTrim')->addValidator('NotEmpty', true, array('messages' => array('isEmpty' => $this->getView()->getCibleText('validation_message_empty_field'))))->setDecorators(array('ViewHelper', array('label', array('placement' => 'prepend')), array(array('row' => 'HtmlTag'), array('tag' => 'dd', 'class' => 'form_title_inline', 'id' => 'title'))))->setAttrib('class', 'smallTextInput');
     $formTop->addElement($detailPrice);
     // Pro price
     $proPrice = new Zend_Form_Element_Text('I_PricePro');
     $proPrice->setLabel($this->getView()->getCibleText('form_item_pricepro_label'))->setRequired(false)->addFilter('StripTags')->addFilter('StringTrim')->addValidator('NotEmpty', true, array('messages' => array('isEmpty' => $this->getView()->getCibleText('validation_message_empty_field'))))->setDecorators(array('ViewHelper', array('label', array('placement' => 'prepend')), array(array('row' => 'HtmlTag'), array('tag' => 'dd', 'class' => 'form_title_inline', 'id' => 'title'))))->setAttrib('class', 'smallTextInput');
     $formTop->addElement($proPrice);
     //********************************************************
     //* Sub form containing data defining prices and volumes *
     //********************************************************
     $txtQty = new Cible_Form_Element_Html('lblQty', array('value' => $this->getView()->getCibleText('form_item_qty_label')));
     $txtQty->setDecorators(array('ViewHelper', array('label', array('placement' => 'prepend')), array(array('row' => 'HtmlTag'), array('tag' => 'dd', 'class' => 'form_title_inline left'))));
     $formItemPrices->addElement($txtQty);
     $txtPrices = new Cible_Form_Element_Html('lblPrices', array('value' => $this->getView()->getCibleText('form_item_prices_label')));
     $txtPrices->setDecorators(array('ViewHelper', array(array('row' => 'HtmlTag'), array('tag' => 'dd', 'class' => 'form_title_inline right'))));
     $formItemPrices->addElement($txtPrices);
     // Qty limit 1
     $qtyInf = new Zend_Form_Element_Text('I_LimitVol1');
     $qtyInf->setLabel($this->getView()->getCibleText('form_item_limitvol1_label'))->setRequired(false)->addFilter('StripTags')->addFilter('StringTrim')->addValidator('NotEmpty', true, array('messages' => array('isEmpty' => $this->getView()->getCibleText('validation_message_empty_field'))))->setDecorators(array('ViewHelper', array('label', array('placement' => 'prepend')), array(array('row' => 'HtmlTag'), array('tag' => 'dd', 'class' => 'inputColLeft'))))->setAttrib('class', 'smallTextInput left');
     $formItemPrices->addElement($qtyInf);
     // Price Vol 1
     $firstPrice = new Zend_Form_Element_Text('I_PriceVol1');
     $firstPrice->removeDecorator('Label')->setRequired(false)->addFilter('StripTags')->addFilter('StringTrim')->addValidator('NotEmpty', true, array('messages' => array('isEmpty' => $this->getView()->getCibleText('validation_message_empty_field'))))->setDecorators(array('ViewHelper', array('label', array('placement' => 'prepend')), array(array('row' => 'HtmlTag'), array('tag' => 'dd', 'class' => 'inputColRight'))))->setAttrib('class', 'smallTextInput');
     $formItemPrices->addElement($firstPrice);
     // Qty limit 2
     $qtyMiddle = new Zend_Form_Element_Text('I_LimitVol2');
     $qtyMiddle->setLabel($this->getView()->getCibleText('form_item_limitvol2_label'))->setRequired(false)->addFilter('StripTags')->addFilter('StringTrim')->addValidator('NotEmpty', true, array('messages' => array('isEmpty' => $this->getView()->getCibleText('validation_message_empty_field'))))->setDecorators(array('ViewHelper', array('label', array('placement' => 'prepend')), array(array('row' => 'HtmlTag'), array('tag' => 'dd', 'class' => 'inputColLeft'))))->setAttrib('class', 'smallTextInput textRight');
     $formItemPrices->addElement($qtyMiddle);
     // Price vol 2
     $secondPrice = new Zend_Form_Element_Text('I_PriceVol2');
     $secondPrice->removeDecorator('Label')->setRequired(false)->addFilter('StripTags')->addFilter('StringTrim')->addValidator('NotEmpty', true, array('messages' => array('isEmpty' => $this->getView()->getCibleText('validation_message_empty_field'))))->setDecorators(array('ViewHelper', array('label', array('placement' => 'prepend')), array(array('row' => 'HtmlTag'), array('tag' => 'dd', 'class' => 'inputColRight', 'id' => 'title'))))->setAttrib('class', 'smallTextInput textRight');
     $formItemPrices->addElement($secondPrice);
     // Price vol 3
     $thirdPrice = new Zend_Form_Element_Text('I_PriceVol3');
     $thirdPrice->setLabel($this->getView()->getCibleText('form_item_priceVol3_label'))->setRequired(false)->addFilter('StripTags')->addFilter('StringTrim')->addValidator('NotEmpty', true, array('messages' => array('isEmpty' => $this->getView()->getCibleText('validation_message_empty_field'))))->setDecorators(array('ViewHelper', array('label', array('placement' => 'prepend')), array(array('row' => 'HtmlTag'), array('tag' => 'dd', 'class' => 'inputColRight'))))->setAttrib('class', 'smallTextInput textRight');
     $formItemPrices->addElement($thirdPrice);
     //********************************************************
     $special = new Zend_Form_Element_Checkbox('I_Special');
     $special->setLabel($this->getView()->getCibleText('form_item_special_label'));
     $special->setDecorators(array('ViewHelper', array('label', array('placement' => 'append')), array(array('row' => 'HtmlTag'), array('tag' => 'dd', 'class' => 'label_after_checkbox'))));
     $formBottom->addElement($special);
     // Special Price
     $specialPrice = new Zend_Form_Element_Text('I_PrixSpecial');
     $specialPrice->setLabel($this->getView()->getCibleText('form_item_specialPrice_label'))->setRequired(false)->addFilter('StripTags')->addFilter('StringTrim')->addValidator('NotEmpty', true, array('messages' => array('isEmpty' => $this->getView()->getCibleText('validation_message_empty_field'))))->setDecorators(array('ViewHelper', array('label', array('placement' => 'prepend')), array(array('row' => 'HtmlTag'), array('tag' => 'dd', 'class' => 'form_title_inline', 'id' => 'title'))))->setAttrib('class', 'smallTextInput');
     $formBottom->addElement($specialPrice);
     // Checkbox for tax of the province
     $taxProv = new Zend_Form_Element_Checkbox('P_TaxProv');
     $taxProv->setLabel($this->getView()->getCibleText('form_item_taxprov_label'))->setAttrib('checked', 'checked');
     $taxProv->setDecorators(array('ViewHelper', array('label', array('placement' => 'append')), array(array('row' => 'HtmlTag'), array('tag' => 'dd', 'class' => 'label_after_checkbox'))));
     $formBottom->addElement($taxProv);
     // Checkbox for federal tax
     $taxFed = new Zend_Form_Element_Checkbox('P_TaxFed');
     $taxFed->setLabel($this->getView()->getCibleText('form_item_taxfed_label'))->setAttrib('checked', 'checked');
     $taxFed->setDecorators(array('ViewHelper', array('label', array('placement' => 'append')), array(array('row' => 'HtmlTag'), array('tag' => 'dd', 'class' => 'label_after_checkbox'))));
     $formBottom->addElement($taxFed);
     $formItemPrices->setLegend($this->getView()->getCibleText('subform_itemprices_legend'));
     $formItemPrices->setAttrib('class', 'smallFieldsetBorder');
     //        $this->setLegend($this->getView()->getCibleText('subform_professional_legend'));
     //        $this->setAttrib('class', 'fieldsetBorder');
     //        $this->addSubForm($this, 'productFormLeft');
     //        $this->addSubForm($this, 'productFormRight');
     $this->addSubForm($formTop, 'formTop');
     $this->addSubForm($formItemPrices, 'formItemPrices');
     $this->addSubForm($formBottom, 'formBottom');
 }