public function getValueElement()
 {
     $element = parent::getValueElement();
     switch ($this->getInputType()) {
         case 'date':
             $element->setImage(Mage::getDesign()->getSkinUrl('images/grid-cal.gif'));
             break;
     }
     return $element;
 }
Exemplo n.º 2
0
 /**
  * Retrieve value element
  *
  * @return Varien_Data_Form_Element_Abstract
  */
 public function getValueElement()
 {
     $element = parent::getValueElement();
     $customer = Mage::getModel('customer/customer');
     foreach ($customer->getAttributes() as $attribute) {
         if ($attribute->getBackendModel() == "" && $attribute->getFrontendLabel() != "") {
             if ($attribute->getAttributeCode() == $this->getAttribute()) {
                 switch ($attribute->getBackendType()) {
                     case 'date':
                     case 'datetime':
                         $element->setImage(Mage::getDesign()->getSkinUrl('images/grid-cal.gif'));
                         break;
                 }
             }
         }
     }
     return $element;
 }
Exemplo n.º 3
0
 /**
  * Retrieve value element
  *
  * @return Varien_Data_Form_Element_Abstract
  */
 public function getValueElement()
 {
     $element = parent::getValueElement();
     if (is_object($this->getAttributeObject())) {
         switch ($this->getAttributeObject()->getFrontendInput()) {
             case 'date':
                 $element->setImage(Mage::getDesign()->getSkinUrl('images/grid-cal.gif'));
                 break;
         }
     }
     return $element;
 }
Exemplo n.º 4
0
 /**
  * Retrieve value element
  *
  * @return Varien_Data_Form_Element_Abstract
  */
 public function getValueElement()
 {
     $element = parent::getValueElement();
     return $element;
 }