protected function renderControlEditable()
 {
     $dropdown = parent::renderControlEditable();
     $sendTestEmail = new SendATestEmailToElement($this->model, 'aTestToAddress', $this->form);
     $sendTestEmail->editableTemplate = '{label}{content}{error}';
     $content = ZurmoHtml::tag('div', array('class' => 'beforeToolTip'), $dropdown);
     $content .= $this->renderPersonalSmtpSettings();
     $content .= $this->renderPersonalSendGridSettings();
     $this->renderScripts();
     return $content;
 }
 protected function getEditableHtmlOptions()
 {
     $moduleName = $this->getModuleId() . 'sModule';
     $prompt = array('prompt' => Zurmo::t($moduleName, 'Select a template'));
     $parentHtmlOptions = parent::getEditableHtmlOptions();
     $htmlOptions = CMap::mergeArray($parentHtmlOptions, $prompt);
     return $htmlOptions;
 }
 /**
  * @return string
  */
 protected function renderControlEditable()
 {
     $content = parent::renderControlEditable();
     $this->renderChangeScript();
     return $content;
 }
 protected function renderControlNonEditable()
 {
     $relatedAttributeName = $this->getRelatedAttributeName();
     assert('$relatedAttributeName != null');
     return parent::renderControlNonEditable();
 }