<% error_class = @resource.errors.has_key?(:reviewer) ? ' error has-error' : '' -%>
<div id="edition_reviewer_input" class="form-group<%= error_class %>">
  <label for="edition_reviewer" class="control-label">Reviewer</label>
  <%= f.select :reviewer, User.enabled.order_by([[:name, :asc]]).collect{ |p| [p.name, p.name] }, { :include_blank => true }, { :class => "form-control input-md-3 #{error_class}", :disabled => @resource.locked_for_edits?, "data-module" => 'assignee-select'} %>
  <% if @resource.errors.has_key?(:reviewer) -%>
    <ul class="help-block js-error">
    <% @resource.errors[:reviewer].each do |error| -%>
      <li><%= error %></li>
    <% end -%>
    </ul>
  <% end -%>
</div>

<%= form_group(f, :reviewer) do %>
  <%= f.select :reviewer, User.enabled.order_by([[:name, :asc]]).collect{ |p| [p.name, p.name] }, { :include_blank => true }, { :class => "form-control input-md-3", :disabled => @resource.locked_for_edits?, "data-module" => 'assignee-select'} %>
<% end %>

Update edition reviewer field HTML structure
Update edition reviewer field HTML structure

The reviewer field does not have model-level validation against it.
However, the business logic of the field (e.g. the Reviewer cannot also
be the Assignee) is validated by the ReviewerValidator class.

Because of this we want to apply the same validation message display,
and HTML structure as all other model-level validation fields for
consistency. We use the newly created `FormHelper` class to achieve
this.
