<%= setup_context :title => I18n.t("enumeration._plural") %>
<%= link_to_help :topic => "enumeration" %> <%= render_aspace_partial :partial => "shared/flash_messages" %>
<% enum_options = @enumerations.map {|e| [sprintf("%s (%s)", I18n.t("enumeration_names.#{e['name']}"), e['name']), JSONModel(:enumeration).id_for(e["uri"])] }.sort {|a, b| a[0] <=> b[0]} %> <%= select_tag "enum_selector", options_for_select([""].concat(enum_options), params[:id]), :style => "width: auto; max-with: 100%;", :class=>"form-control" %>
<% if @enumeration %> <%= render_aspace_partial :partial => "list" %> <% else %> <%= render_aspace_partial :partial => "empty_list" %> <% end %>