@@ 157-161 (lines=5) @@ | ||
154 | )) |
|
155 | ); |
|
156 | ||
157 | if (isset($errors['author_types'])) { |
|
158 | $wrapper->appendChild(Widget::Error($label, $errors['author_types'])); |
|
159 | } else { |
|
160 | $wrapper->appendChild($label); |
|
161 | } |
|
162 | ||
163 | // Options |
|
164 | $div = new XMLElement('div', null, array('class' => 'two columns')); |
@@ 189-193 (lines=5) @@ | ||
186 | ||
187 | $label->appendChild(Widget::Select('fields['.$this->get('sortorder').'][destination]', $options)); |
|
188 | ||
189 | if (isset($errors['destination'])) { |
|
190 | $wrapper->appendChild(Widget::Error($label, $errors['destination'])); |
|
191 | } else { |
|
192 | $wrapper->appendChild($label); |
|
193 | } |
|
194 | ||
195 | // Validation rule |
|
196 | $this->buildValidationSelect($wrapper, $this->get('validator'), 'fields['.$this->get('sortorder').'][validator]', 'upload', $errors); |