I posted the following problem:
https://groups.google.com/forum/?fromgroups#!topic/web2py/vm3WwFamfXQ
This is part of a problem I have been working on for a couple of they. I
have two functions:
def eventList():
response.view='calendar/eventList.html'
rows=db(...).select()
return dict(rows=rows)
def event():
response.view='calendar/event.html'
row=db(db.EventList.id==request.args(0)).select(db.EventList.ALL)
return dict(row=row)
eventList is embedded in a tab and called in a tab-pane:
{{=LOAD('calendar','eventList.load',args=int(organization.nodeID),ajax=True,target='eventlist')}}
The eventList view lists all the events and each event has a view details
button. When the user clicks this button I would like the event to open in
a modal window. Bootstrap provides this:
<a class="btn" data-toggle="modal" href="#myModal" >Launch Modal</a>
<div class="modal hide" id="myModal">
<div class="modal-header">
<a class="close" data-dismiss="modal">×</a>
<h3>...</h3>
</div>
<div class="modal-body">
<p>...</p>
</div>
<div class="modal-footer">
<a class="btn" data-dismiss="modal">Close</a>
</div>
</div>
Which works fine with static content in a static view. But I cannot get it
to work with my eventList and event functions. I hope one of you has done
something similar and could provide me with a solution.
Kind regards,
Annet.