Sha256: 0519f404f7480552752ab95a33530a0eb0ceb071ed0fd588b4bf8be39f925714
Contents?: true
Size: 823 Bytes
Versions: 4
Compression:
Stored size: 823 Bytes
Contents
<div class="container-fluid"> <%= form_tag({}, {method: 'get'}) do %> <%= collection_select(:site, :id, Odania::Site.order('name ASC'), :id, :name, selected: session[:site_id]) %> <%= submit_tag 'Select' %> <% end %> <br/> <%= form_tag(select_odania_menu_admin_odania_menus_path(return_to: request.path)) do %> <%= collection_select(:menu, :id, Odania::Menu.where(site_id: session[:site_id]).order('title ASC'), :id, :title, selected: (@odania_menu.nil? ? nil : @odania_menu.id)) %> <%= submit_tag 'Select' %> <% end %> <br/> <%= content_for?(:admin_selection) ? yield(:admin_selection) : '' %> <div class="nav-collapse"> <ul class="nav nav-list"> <% Odania.admin.admin_pages.each do |admin_page| %> <li><%= link_to admin_page[:name], admin_page[:path] %></li> <% end %> </ul> </div> </div>
Version data entries
4 entries across 4 versions & 1 rubygems