00001 <?php
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034 class Mage_Adminhtml_Block_Customer_Edit_Renderer_Newpass extends Mage_Adminhtml_Block_Abstract implements Varien_Data_Form_Element_Renderer_Interface
00035 {
00036
00037 public function render(Varien_Data_Form_Element_Abstract $element)
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 }
00055
00056 }