better bootstrap3

This commit is contained in:
mdipierro
2015-03-10 23:07:00 -05:00
parent a2060eedce
commit 3948132817
6 changed files with 45 additions and 138 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
def index():
types = ['string','text','date','time','datetime','integer','double',
'list:string','list:integer']
db.define_table('mytable',*[Field('f_'+t.replace(':','_'),t) for t in types])
'list:string','list:integer','upload']
db.define_table('mytable',*[Field('f_'+t.replace(':','_'),t,requires=IS_NOT_EMPTY()) for t in types])
return dict(
form = SQLFORM(db.mytable).process(),
grid = SQLFORM.grid(db.mytable),