| @@ 189-193 (lines=5) @@ | ||
| 186 | $div = new XMLElement('div'); |
|
| 187 | $div->setAttribute('class', 'column'); |
|
| 188 | ||
| 189 | if (isset($this->_errors['name'])) { |
|
| 190 | $div->appendChild(Widget::Error($label, $this->_errors['name'])); |
|
| 191 | } else { |
|
| 192 | $div->appendChild($label); |
|
| 193 | } |
|
| 194 | $group->appendChild($div); |
|
| 195 | $fieldset->appendChild($group); |
|
| 196 | $this->Form->appendChild($fieldset); |
|
| @@ 213-217 (lines=5) @@ | ||
| 210 | $label = Widget::Label(__('Name')); |
|
| 211 | $label->appendChild(Widget::Input('meta[name]', (isset($meta['name']) ? General::sanitize($meta['name']) : null))); |
|
| 212 | ||
| 213 | if (isset($this->_errors['name'])) { |
|
| 214 | $namediv->appendChild(Widget::Error($label, $this->_errors['name'])); |
|
| 215 | } else { |
|
| 216 | $namediv->appendChild($label); |
|
| 217 | } |
|
| 218 | ||
| 219 | $fieldset->appendChild($namediv); |
|
| 220 | ||
| @@ 423-427 (lines=5) @@ | ||
| 420 | $label = Widget::Label(__('Name')); |
|
| 421 | $label->appendChild(Widget::Input('meta[name]', (isset($meta['name']) ? General::sanitize($meta['name']) : null))); |
|
| 422 | ||
| 423 | if (isset($this->_errors['name'])) { |
|
| 424 | $namediv->appendChild(Widget::Error($label, $this->_errors['name'])); |
|
| 425 | } else { |
|
| 426 | $namediv->appendChild($label); |
|
| 427 | } |
|
| 428 | ||
| 429 | $fieldset->appendChild($namediv); |
|
| 430 | ||