public function render(InputField $field) { $minAttr = $this->min !== null ? ' min="' . $this->min . '"' : null; $maxAttr = $this->max !== null ? ' max="' . $this->max . '"' : null; $stepAttr = $this->step !== null ? ' step="' . $this->step . '"' : null; return '<input type="number" name="' . $field->getName() . '" id="' . $field->getName() . '" value="' . htmlspecialchars($field->getValue()) . '"' . $minAttr . $maxAttr . $stepAttr . '>'; }
public function render(InputField $field) { return '<input type="password" name="' . $field->getName() . '" id="' . $field->getName() . '" value="' . $field->getValue() . '">'; }
public function render(InputField $field) { return '<textarea name="' . $field->getName() . '" id="' . $field->getName() . '"' . $this->getAttributesAsHtml() . '>' . htmlspecialchars($field->getValue()) . '</textarea>'; }