On Wednesday, April 5, 2017 at 2:14:33 AM UTC-4, Mike Stephenson wrote:
>
> I am using this layout from web2py's official 
> site: web2py.plugin.layout_Chasmogamous
>
> However I see that the response.flash can't be dismissed.
> I guess there is a problem with this snippet in its layout.html:
> <div class="flash">{{=response.flash or ''}}</div>
>

web2py.js was changed so it looks for class="w2p_flash" instead of "flash". 
So, change the class of the div to "w2p_flash", and there is also a 
div.flash CSS rule at the top of the layout.html file that should be 
changed to div.w2p_flash.
 

> How do I make it work like it does in default layout?
> This snippet no longer works:
>  <div class="w2p_flash alert alert-dismissable">{{=response.flash or 
> ''}}</div>
>

"alert-dismissable" is specific to Bootstrap.

Anthony

-- 
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.

Reply via email to