| @@ 524-528 (lines=5) @@ | ||
| 521 | $label->appendChild( |
|
| 522 | Widget::Input('fields[' . $this->get('sortorder') . '][label]', $this->get('label')) |
|
| 523 | ); |
|
| 524 | if (isset($errors['label'])) { |
|
| 525 | $div->appendChild(Widget::Error($label, $errors['label'])); |
|
| 526 | } else { |
|
| 527 | $div->appendChild($label); |
|
| 528 | } |
|
| 529 | ||
| 530 | // Handle + placement |
|
| 531 | $group = new XMLElement('div'); |
|
| @@ 154-158 (lines=5) @@ | ||
| 151 | )) |
|
| 152 | ); |
|
| 153 | ||
| 154 | if (isset($errors['dynamic_options'])) { |
|
| 155 | $div->appendChild(Widget::Error($label, $errors['dynamic_options'])); |
|
| 156 | } else { |
|
| 157 | $div->appendChild($label); |
|
| 158 | } |
|
| 159 | ||
| 160 | $wrapper->appendChild($div); |
|
| 161 | ||