-#We'll figure out a better way to deal with this later.
%noscript
  %nav#admin_subsections
    = render_navigation({:expand_all => true, :level => 2})

-# TODO: Actually design nav for the Administer section.
-# Ugly hack to avoid moving files around for the moment.. Abs position the nav :/
#tab_actions{:style => "margin-bottom: 5px;"}
  %span.label.small Control Panels
  %select#admin-section-select
    %option{:value => users_path} Choose section...
    %option{:value => users_path} Users
    %option{:value => roles_path} Roles
    %option{:value => providers_path} Providers
    %option{:value => provider_accounts_path} Provider Accounts
    %option{:value => hardware_profiles_path} Hardware Profiles
    %option{:value => realms_path} Realms
    %option{:value => pool_families_path} Pool Families
    %option{:value => suggested_deployables_path} Suggested Deployables
    %option{:value => settings_path} Settings

:javascript
  $(document).ready(function() {
    $('select#admin-section-select').change(function() {
      window.location = $(this).val();
    });
  });

-#We'll figure out a better way to deal with this later.
%noscript
  %nav#admin_subsections
    = render_navigation({:expand_all => true, :level => 2})

-# TODO: Actually design nav for the Administer section.
-# Ugly hack to avoid moving files around for the moment.. Abs position the nav :/
#tab_actions{:style => "position: absolute; top: -32px; right: 0px;"}
  %label.label.small{:for => 'admin-section-select'} Control Panels
  %select#admin-section-select
    %option{:value => users_path} Choose section...
    %option{:value => users_path} Users
    %option{:value => roles_path} Roles
    %option{:value => providers_path} Providers
    %option{:value => provider_accounts_path} Provider Accounts
    %option{:value => hardware_profiles_path} Hardware Profiles
    %option{:value => realms_path} Realms
    %option{:value => pool_families_path} Pool Families
    %option{:value => suggested_deployables_path} Suggested Deployables
    %option{:value => settings_path} Settings

:javascript
  $(document).ready(function() {
    $('select#admin-section-select').change(function() {
      window.location = $(this).val();
    });
  });

Fix positioning of control panel select drop-down.
Fix positioning of control panel select drop-down.
