I understand what you mean
Unfortunately, in order to fill out the information on that template, you'd have to query the database.
You can do that one of three ways
1) query the page as it first loads (like it does now)
2) refresh the page and requery (possible, but would cause some stall as the page reloads)
3) use ajax to query and refresh that section of the page without refreshing the whole page (optimal)
That is a great idea that you have and one I will definately try to implement in the future. I just don't know enough yet about AJAX to do it
But yes, using ajax, everything would be stuffed into a separate template, and when a user uncollapses it, it would run the queries and load the template.