Public Member Functions | |
render (Varien_Data_Form_Element_Abstract $element) |
Definition at line 34 of file Newpass.php.
render | ( | Varien_Data_Form_Element_Abstract $ | element | ) |
Implements Varien_Data_Form_Element_Renderer_Interface.
Definition at line 37 of file Newpass.php.
00038 { 00039 $html = '<tr>'; 00040 $html.= '<td class="label">'.$element->getLabelHtml().'</td>'; 00041 $html.= '<td class="value">'.$element->getElementHtml().'</td>'; 00042 $html.= '</tr>'."\n"; 00043 $html.= '<tr>'; 00044 $html.= '<td class="label"><label> </label></td>'; 00045 $html.= '<td class="value">'.Mage::helper('customer')->__('or').'</td>'; 00046 $html.= '</tr>'."\n"; 00047 $html.= '<tr>'; 00048 $html.= '<td class="label"><label> </label></td>'; 00049 $html.= '<td class="value"><input type="checkbox" id="account-send-pass" name="'.$element->getName().'" value="auto" onclick="setElementDisable(\''.$element->getHtmlId().'\', this.checked)"/> '; 00050 $html.= '<label for="account-send-pass">'.Mage::helper('customer')->__('Send auto-generated password').'</label></td>'; 00051 $html.= '</tr>'."\n"; 00052 00053 return $html; 00054 }