[web2py] Re: Creating my own layout.html, but errors not displaying

2015-02-24 Thread Niphlod
given that it seems that the layout is not web2py-specific, if you took it 
as it is, you're missing pretty much everything...
the error shown in the forms are handled first thing by web2py widgets, 
that are coupled with a minimum of css to be displayed.

On Tuesday, February 24, 2015 at 2:54:50 AM UTC+1, Tom Campbell wrote:

 Ugh, I thought I copyedited. For clarification:

 On Monday, February 23, 2015 at 3:58:52 PM UTC-8, the idiot Tom Campbell 
 wrote:

 Creating my own layout.html based on the AdminLTE theme 
 https://github.com/almasaeed2010/AdminLTE. It works, but errors are 
 not being displayed. For example, I have a  notnull*=*True validation 
 rule in the 'description' field of the 'todo' model but if a description 
 isn't *entered*, no .error class div appears. What markup do I need to 
 ensure those errors get shown?



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


[web2py] Re: Creating my own layout.html, but errors not displaying

2015-02-24 Thread JorgeH


On Monday, February 23, 2015 at 6:58:52 PM UTC-5, Tom Campbell wrote:

 Creating my own layout.html based on the AdminLTE theme 
 https://github.com/almasaeed2010/AdminLTE. It works, but errors are not 
 being displayed. For example, I have a  notnull*=*True validation rule in 
 the 'description' field of the model model but if a description isn't 
 displayed, not error appears. What markup am I omitting to ensure those 
 errors get shown?


Hello
 An easy way is to grab the existing layout.html file that comes with web2py
and change what is between the body tags.

example:

body


{{include}}
  


 
  script src={{=URL('static','js/bootstrap.min.js')}}/script
  script src={{=URL('static','js/web2py_bootstrap.js')}}/script

  
 /body


Use this as a starting point, leaving the rest of the file intact and see 
if that meets your expectations. From there add or delete lines accordingly.

 

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


[web2py] Re: Creating my own layout.html, but errors not displaying

2015-02-24 Thread JorgeH
Of course, read what I wrote.

Use an existing layout.html, and change what is inside the body tags, 
leaving the rest intact. From there, start playing until you obtain what 
you want.

On Tuesday, February 24, 2015 at 4:32:38 PM UTC-5, Niphlod wrote:



 Hello
  An easy way is to grab the existing layout.html file that comes with 
 web2py
 and change what is between the body tags.

 example:

 body


 {{include}}
   


  
   script src={{=URL('static','js/bootstrap.min.js')}}/script
   script src={{=URL('static','js/web2py_bootstrap.js')}}/script

   
  /body


 Use this as a starting point, leaving the rest of the file intact and see 
 if that meets your expectations. From there add or delete lines accordingly.


 There's more to that matter, e.g. response.flash, web2py.js, web2py.css 
 are missing, web2py_boostrap.js is tailored for bootstrap 2.3.x, etc. 
 AdminLTE doesn't really seem like an incarnation of a zengarden.css 
 stylesheet but a full-blown tailored template, with its own rules to 
 follow. 


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


[web2py] Re: Creating my own layout.html, but errors not displaying

2015-02-24 Thread Niphlod



 Hello
  An easy way is to grab the existing layout.html file that comes with 
 web2py
 and change what is between the body tags.

 example:

 body


 {{include}}
   


  
   script src={{=URL('static','js/bootstrap.min.js')}}/script
   script src={{=URL('static','js/web2py_bootstrap.js')}}/script

   
  /body


 Use this as a starting point, leaving the rest of the file intact and see 
 if that meets your expectations. From there add or delete lines accordingly.


There's more to that matter, e.g. response.flash, web2py.js, web2py.css are 
missing, web2py_boostrap.js is tailored for bootstrap 2.3.x, etc. AdminLTE 
doesn't really seem like an incarnation of a zengarden.css stylesheet but a 
full-blown tailored template, with its own rules to follow. 

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


[web2py] Re: Creating my own layout.html, but errors not displaying

2015-02-24 Thread Niphlod
whoops. Then I need to rephrase (although the point remains the same)...
response.flash is missing, everything referenced as bootstrap in static 
needs to be altered accordingly to static assets for AdminLTE, 
response.menu would need some tuning but yes...basically the mantra 
is start small and see what's missing...that is the point of @Tom, 
who apparently is missing the error div ^_^

On Tuesday, February 24, 2015 at 10:37:04 PM UTC+1, JorgeH wrote:

 Of course, read what I wrote.

 Use an existing layout.html, and change what is inside the body tags, 
 leaving the rest intact. From there, start playing until you obtain what 
 you want.



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


[web2py] Re: Creating my own layout.html, but errors not displaying

2015-02-23 Thread Tom Campbell
Ugh, I thought I copyedited. For clarification:

On Monday, February 23, 2015 at 3:58:52 PM UTC-8, the idiot Tom Campbell 
wrote:

 Creating my own layout.html based on the AdminLTE theme 
 https://github.com/almasaeed2010/AdminLTE. It works, but errors are not 
 being displayed. For example, I have a  notnull*=*True validation rule in 
 the 'description' field of the 'todo' model but if a description isn't 
 *entered*, no .error class div appears. What markup do I need to ensure 
 those errors get shown?


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