protected function renderControlEditable() { if ($this->isSetCaptchaKeys() === false) { $message = Zurmo::t('ContactWebFormsModule', 'Please set ReCaptcha keys in Global Configuration to enable captcha for web forms.'); $message = ZurmoHtml::tag('span', array('class' => 'row-description'), $message); return parent::renderControlEditable() . $message; } return parent::renderControlEditable(); }
protected function renderControlEditable() { $attribute = $this->attribute; $isHidden = !$this->model->{$attribute}; if ($isHidden) { $style = 'display: none;'; } else { $style = null; } $checkBox = parent::renderControlEditable(); $sendTestEmail = new SendATestEmailToElement($this->model, 'aTestToAddress', $this->form); $sendTestEmail->editableTemplate = '{label}{content}{error}'; $content = ZurmoHtml::tag('div', array('class' => 'beforeToolTip'), $checkBox); $settings = $this->renderEditableTextField($this->model, $this->form, 'outboundHost'); $settings .= $this->renderEditableTextField($this->model, $this->form, 'outboundPort'); $settings .= $this->renderEditableTextField($this->model, $this->form, 'outboundUsername'); $settings .= $this->renderEditableTextField($this->model, $this->form, 'outboundPassword', true); $settings .= $this->renderEditableTextField($this->model, $this->form, 'outboundSecurity'); $settings .= $sendTestEmail->renderEditable(); $content .= ZurmoHtml::tag('div', array('class' => 'outbound-settings', 'style' => $style), $settings); $this->renderScripts(); return $content; }
/** * Render A standard text input. * @return The element's content as a string. */ protected function renderControlEditable() { assert('$this->model instanceof WorkflowActionAttributeForm'); return parent::renderControlEditable(); }