grid_tutorial

44 views
Skip to first unread message

Erich Meyer

unread,
Aug 20, 2022, 9:08:13 AM8/20/22
to py4web
@ Jim Steil:

1.
'In Style for Grid Tutorial application

Next we'll cut and paste the following block into templates/index.html

should be clearer

Next we'll cut and paste the following block into templates/index.html and replace everything'

2.
In GridClassStyle your explanations are not quite clear, as you write twice,
that the files should

from py4web.utils.form import Form, FormStyleBulma
from py4web.utils.grid import Grid, GridClassStyleBulma


should be imported.

Erich

Jim Steil

unread,
Aug 22, 2022, 8:40:30 AM8/22/22
to py4web
I've made the update for 1 as you suggested.

For 2, I'm not sure how to make it clearer.  The imports are repeated because they need to be in two different files.  First I'm talking about your controller file(s).  The second is talking about adding a GRID_DEFAULTS variable to your common.py.  To do so you need the imports again.

I made a change to specify the controller file(s) on the first mention of the imports.  Let me know if you have a better suggestion.

-Jim
Reply all
Reply to author
Forward
0 new messages