Hi,

How do I auto close a JS Bootstrap modal window that has simple form
and then update a grid on the calling main page??? I am using
Bootstrap modal window.

Model:
db.define_table('department', Field('name'))
db.define_table('office', Field('name'), Field('department', db.department))

Controller:
def add_department():
   form=SQLFORM(db.department)
   if ..:
      ...
   else:
      ...
   return dict(form=form)

def add_office():
   form = SQLFORM(db.office)
   if ...:
      ...
   else:
      ....
add_department.load:
   {{=form}}
add_office.load:
   {{=form}}

What I want in the view is to be able to add a company using a
bootstrap modal window after clicking on save close the modal window
and update a grid with a new company added in the same window. Also I
when i add office modal window, in the dropbox i want to see the just
added company without refreshing the main winnow but using ajax.

Any ideas pointer...thanx in advance...
 enalapril + nifedipin + pediatric benlin

Teddy L.

/~

-- 



Reply via email to