oh and the reason mine didn't work is, the layout plugins on web2py don't use bootstrap it seems. I changed to using a bootstrap3 scaffold, and a themed bootstrap.min.css, and it worked fine.
On Tuesday, 10 February 2015 08:33:01 UTC, Yebach wrote: > > > I would like to create a drop down menu in my layout. The data for menu is > read from menu.py > > this is my list for menu > > response.menu_logged = [ > (T('Schedules'),URL('default','index')==URL(),URL('default','index')), > (T('New schedule'),URL('script','edit')==URL(),URL('script','edit', > args='new')), > (T('Settings'), False, None, [ > > (T('Workers'),URL('settings','workers')==URL(),URL('settings','workers')), > > (T('Shifts'),URL('settings','turnusi')==URL(),URL('settings','turnusi')), > (T('Config'),URL('settings','config')== > URL(),URL('settings','config')) ,] > )] > > > Now I would like to put workers, shifts and config in one submenu > (dropdown) called settings (Schedules,new schedule, and config to be > horizontal and then config menus vertical ) > > and in my layout.html > > {{if auth.is_logged_in():}} > {{ for i, page in enumerate(response.menu_logged): }} > <li{{ if response.menu_logged[i][1]: > response.write(XML(' class="active"')) }}><a href="{{ > =response.menu_logged[i][2] }}">{{ =response.menu_logged[i][0] }}</a></li> > > {{ pass }} > <li><a href=" > https://sites.google.com/site/navodilawoshi/" > target="_blank">{{=T('Help')}}</a></li> > any suggestions? > > Is there is a possibility to do it with web2py and not html/css/js? > > thank you > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.