I am working on a view which will display a timetable. So far, this is
what I have got:

<table id="site" class="display">
  <thead>
    <tr>
      <th>day</th>
      <th>time</th>
      <th>program</th>
      <th>level</th>
      <th>location</th>
    </tr>
  </thead>
  <tbody>
    {{for program in timetable:}}
      <tr>
        <td>
          {{=program.day}}
        </td>
        <td>
          {{=program.time}}
        </td>
        <td>
          {{=program.program}}
        </td>
        <td>
          {{=program.level}}
        </td>
        <td>
          {{=program.location}}
        </td>
      </tr>
    {{pass}}
  </tbody>
</table>


Since the table is sorted by day, I would like to remove the day
column an put the day in a separate row:

So, instead of:

mon.    09:30 - 10.15
mon.    10.30 - 11.15
etc.

I would like:

Monday
09:30 - 10.15    ...
10:30 - 11.15    ...
Tuesday
10:30 - 11.15    ...
etc.


I have given it a try but didn't get it right, I hope one of you knows
how to code this.


Kind regards,

Annet.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to