Hello,
Does it a bug All buttons in SQLFORM have only text link. And I am working
on school project for carpool, Could someone help me
to build "etapes" like this https://www.blablacar.fr/offer-seats/1
I need only how to add city or remove it for a "one trajet" Could I do it
with SQLFORM.factory with JQUERY?
Many thx
This is my model
db.define_table('t_villes',
Field('dep', type='string', notnull=True,
label=T('Département')),
Field('nom', type='string', notnull=True,
label=T('ville')),
Field('code_postal', type='string', notnull=True,
label=T('Code postal')),
Field('longitude_deg', type='float', notnull=True,
label=T('Longitude')),
Field('latitude_deg', type='float', notnull=True,
label=T('Latitude')),
format='%(nom)s %(code_postal)s'
)
db.define_table(
't_trajets',
Field('membre_voiture_id','reference t_voitures'),
Field('lieu_depart_id','reference t_villes',requires=
IS_IN_DB(db,'t_villes.id','t_villes.nom')),
Field('lieu_arrive_id',db.t_villes),
Field('depart_le','datetime'),
Field('frequence',requires=IS_IN_SET(FREQUENCES),default=
FREQUENCES[0]),
Field('type',requires=IS_IN_SET(TYPE_TRAJETS),default=
TYPE_TRAJETS[0]),
Field('fumeur',requires=IS_IN_SET(FUMEUR),default=FUMEUR[1
]),
Field('commentaire','text'),
Field( 'place_offert','integer'),
auth.signature
)
db.define_table('t_etapes_ville',
Field('trajet_id','reference t_trajets',requires=IS_IN_DB(db,
't_trajets.id','t_trajets.lieu_depart_id')),
Field('ville_id',db.t_villes,requires=IS_IN_DB(db,'t_villes.id',
't_villes.nom')),
Field('ordre_depart','integer'),
)
--
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 [email protected].
For more options, visit https://groups.google.com/d/optout.