| @@ 188-192 (lines=5) @@ | ||
| 185 | $div = new XMLElement('div'); |
|
| 186 | $div->setAttribute('class', 'column'); |
|
| 187 | ||
| 188 | if (isset($this->_errors['name'])) { |
|
| 189 | $div->appendChild(Widget::Error($label, $this->_errors['name'])); |
|
| 190 | } else { |
|
| 191 | $div->appendChild($label); |
|
| 192 | } |
|
| 193 | $group->appendChild($div); |
|
| 194 | $fieldset->appendChild($group); |
|
| 195 | $this->Form->appendChild($fieldset); |
|
| @@ 238-242 (lines=5) @@ | ||
| 235 | $label->appendChild(Widget::Input('meta[name]', |
|
| 236 | (isset($meta['name']) ? General::sanitize($meta['name']) : null))); |
|
| 237 | ||
| 238 | if (isset($this->_errors['name'])) { |
|
| 239 | $namediv->appendChild(Widget::Error($label, $this->_errors['name'])); |
|
| 240 | } else { |
|
| 241 | $namediv->appendChild($label); |
|
| 242 | } |
|
| 243 | ||
| 244 | $fieldset->appendChild($namediv); |
|
| 245 | ||
| @@ 499-503 (lines=5) @@ | ||
| 496 | $label->appendChild(Widget::Input('meta[name]', |
|
| 497 | (isset($meta['name']) ? General::sanitize($meta['name']) : null))); |
|
| 498 | ||
| 499 | if (isset($this->_errors['name'])) { |
|
| 500 | $namediv->appendChild(Widget::Error($label, $this->_errors['name'])); |
|
| 501 | } else { |
|
| 502 | $namediv->appendChild($label); |
|
| 503 | } |
|
| 504 | ||
| 505 | $fieldset->appendChild($namediv); |
|
| 506 | ||