| @@ 144-148 (lines=5) @@ | ||
| 141 | )) |
|
| 142 | ); |
|
| 143 | ||
| 144 | if (isset($errors['author_types'])) { |
|
| 145 | $wrapper->appendChild(Widget::Error($label, $errors['author_types'])); |
|
| 146 | } else { |
|
| 147 | $wrapper->appendChild($label); |
|
| 148 | } |
|
| 149 | ||
| 150 | // Options |
|
| 151 | $div = new XMLElement('div', null, array('class' => 'two columns')); |
|
| @@ 170-174 (lines=5) @@ | ||
| 167 | ||
| 168 | $label->appendChild(Widget::Select('fields[' . $this->get('sortorder') . '][destination]', $options)); |
|
| 169 | ||
| 170 | if (isset($errors['destination'])) { |
|
| 171 | $wrapper->appendChild(Widget::Error($label, $errors['destination'])); |
|
| 172 | } else { |
|
| 173 | $wrapper->appendChild($label); |
|
| 174 | } |
|
| 175 | ||
| 176 | // Validation rule |
|
| 177 | $this->buildValidationSelect($wrapper, $this->get('validator'), |
|