rendered paste body<py:def function="tapahtuma(value)"> <td width="80px" class="no_fee"> <!-- title --> <py:choose test="value.title"> <py:when test="None"> <a py:if="value.patient_id" href="${h.default_patient_view()}?p=${value.patient_id}">${value.service}</a> <span py:if="not value.patient_id">${value.service}</span> </py:when> <py:otherwise test="None"> <a py:if="value.patient_id" href="${h.default_patient_view(value)}?p=${value.patient_id}">${value.title}</a> <span py:if="not value.patient_id">${value.title}</span> </py:otherwise> </py:choose> <!-- title --> <br/> <!-- asiakas --> <py:if test="value.has_plan and 'untitled' not in value['patient'].lastname and 'Silmäasema' not in value['patient'].lastname"> <a href="/patient/contact/?p=${value.patient_id}"> ${value['patient'].lastname} ${ value['patient'].firstnames}</a> </py:if> <!-- /asiakas --></td></py:def> <div id="day_render"> <table id="today_table"> <tbody> <py:for each="i in xrange(0, 24)"> <tr py:if="values.get(i,[]) or (i >= 8 and 18 > i)"> <td class="no_fee"><a name="h${i}">${i}.00</a></td> <td colspan="7" class="white no_fee"></td> </tr> <tr py:for="value in values.get(i,[])" class="${value.css_class()}"> <td width="30px" class="timetd no_fee"> ${value.start.hour}.${str(value.start.minute).zfill(2)}- ${value.end.hour}.${str(value.end.minute).zfill(2)}</td> </tr> ${tapahtuma(value)} </py:for> </tbody> </table>