SQLFORMGRID - CSS - LAYOUT

61 views
Skip to first unread message

L c

unread,
Dec 4, 2019, 10:47:26 AM12/4/19
to web2py-users
Hi,
Soory but i do not find answer:

I did that  :
  1. Create a subfolder of static (example "css_template")
  2. Move template files to static/css_template
  3. Move static/css_template/index.html to views/layout.html
  4. Edit views/layout.html to fix href and src to static files using {{=URL('static','css_template/style.css')}}
  5. add these to views/layout.html where you want them to appear
I have created a static html page with css like  (<link rel="stylesheet" href="../static/css_template/assets/css/main.css" />)
inside this page html i have {{=list}}  (From controler : list= SQLFORM.grid(query=query,maxtextlength=20,orderby=~db.t_news.id,deletable=False,editable=False,create=False,advanced_search=False,csv=False)

When i want to edit a record , the css ... are not taken ! where can i change this ?

thank you

Laurent Chambon

unread,
Dec 6, 2019, 7:12:05 AM12/6/19
to web...@googlegroups.com
found :
just using : src="{{=URL('static/css_template/assets/','js/jquery.min.js')}}">

--
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 a topic in the Google Groups "web2py-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/web2py/BKkgCKS2348/unsubscribe.
To unsubscribe from this group and all its topics, send an email to web2py+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/57f55765-0a4e-4257-8287-caa1a7c33517%40googlegroups.com.


--

Laurent Chambon
47 rue Pougnet
33400 Talence
06 64 13 71 16 
 

Alex Beskopilny

unread,
Dec 7, 2019, 6:44:23 AM12/7/19
to web2py-users
Hi!
Here is the script and working examples for sqlform and customform
https://github.com/ali96343/facew2p
http://alibsk.pythonanywhere.com


среда, 4 декабря 2019 г., 18:47:26 UTC+3 пользователь L c написал:
Reply all
Reply to author
Forward
0 new messages