| @@ 198-202 (lines=5) @@ | ||
| 195 | $div = new XMLElement('div'); |
|
| 196 | $div->setAttribute('class', 'column'); |
|
| 197 | ||
| 198 | if (isset($this->_errors['name'])) { |
|
| 199 | $div->appendChild(Widget::Error($label, $this->_errors['name'])); |
|
| 200 | } else { |
|
| 201 | $div->appendChild($label); |
|
| 202 | } |
|
| 203 | $group->appendChild($div); |
|
| 204 | $fieldset->appendChild($group); |
|
| 205 | $this->Form->appendChild($fieldset); |
|
| @@ 190-194 (lines=5) @@ | ||
| 187 | $label = Widget::Label(__('Name')); |
|
| 188 | $label->appendChild(Widget::Input('meta[name]', (isset($meta['name']) ? General::sanitize($meta['name']) : null))); |
|
| 189 | ||
| 190 | if (isset($this->_errors['name'])) { |
|
| 191 | $namediv->appendChild(Widget::Error($label, $this->_errors['name'])); |
|
| 192 | } else { |
|
| 193 | $namediv->appendChild($label); |
|
| 194 | } |
|
| 195 | ||
| 196 | $fieldset->appendChild($namediv); |
|
| 197 | ||
| @@ 408-412 (lines=5) @@ | ||
| 405 | $label = Widget::Label(__('Name')); |
|
| 406 | $label->appendChild(Widget::Input('meta[name]', (isset($meta['name']) ? General::sanitize($meta['name']) : null))); |
|
| 407 | ||
| 408 | if (isset($this->_errors['name'])) { |
|
| 409 | $namediv->appendChild(Widget::Error($label, $this->_errors['name'])); |
|
| 410 | } else { |
|
| 411 | $namediv->appendChild($label); |
|
| 412 | } |
|
| 413 | ||
| 414 | $fieldset->appendChild($namediv); |
|
| 415 | ||