<inputtype="checkbox"id="is_periodic"name="is_periodic"value="${event.is_periodic}"checked="${event.is_periodic and 'checked' or None}"onchange="toggleStatus()"/><labelfor="is_periodic"> Repeat this event</label>
<selectname="monthname-yearly-0"><optionpy:for="ix, x in enumerate(month_names)"value="${ix}"selected="${period.bymonth == ix and 'selected' or None}">${x}</option></select></td>
</tr>
<tr><td><inputtype="radio"name="freq"value="1"checked="${freq == 1 and 'checked' or None}"/><labelfor="dayocc-yearly-1">Repeat on</label>
<selectid="dayocc-yearly-1"name="dayocc-yearly-1"><optionpy:for="ix, x in enumerate(weekday_names)"value="${ix}"selected="${period.byweekdayocc == ix and 'selected' or None}">${x}</option></select>
<selectname="weekday-yearly-1"><optionpy:for="ix, x in enumerate(day_names)"value="${ix}"selected="${period.byweekday == ix and 'selected' or None}">${x}</option></select> in
<selectname="monthname-yearly-1"><optionpy:for="ix, x in enumerate(month_names)"value="${ix}"selected="${period.bymonth == ix and 'selected' or None}">${x} </option></select></td>
</tr>
<tr><td><inputtype="radio"name="freq"value="2"checked="${freq == 2 and 'checked' or None}"/><labelfor="yearday">Repeat on day no.</label><inputtype="text"size="3"maxlength="3"id="yearday"name="yearday"value="${period.byyearday}"/><labelfor="yearday">of the year</label></td></tr>
<tr><td><inputtype="radio"name="freq"value="3"checked="${freq == 3 and 'checked' or None}"/><labelfor="monthday-monthly-0">Repeat on</label>
<selectid="monthday-monthly-0"name="monthday-monthly-0"><optionpy:for="ix, x in enumerate(monthday_names)"value="${ix}">${x}</option></select> day of the month</td></tr>
<tr><td><inputtype="radio"name="freq"value="4"checked="${freq == 4 and 'checked' or None}"/><labelfor="dayocc-monthly-1">Repeat on</label>
<selectid="dayocc-monthly-1"name="dayocc-monthly-1"><optionpy:for="ix, x in enumerate(weekday_names)"value="${ix}"selected="${period.byweekdayocc == ix and 'selected' or None}">${x}</option></select>
<selectname="weekday-monthly-1"><optionpy:for="ix, x in enumerate(day_names)"value="${ix}"selected="${ix in period.byweekday and 'selected' or None}">${x}</option></select></td></tr>
</table>
</div>
</div>
<div>
<h3><ahref="#">Weekly</a></h3>
<div>
<tableclass="event-wizard">
<tr><td><inputtype="radio"name="freq"value="5"checked="${freq == 5 and 'checked' or None}"/>Repeat every <inputtype="text"size="3"maxlength="3"name="weekinterval"value="${period.interval}"/> week(s)</td></tr>
<tr>
<td>
<py:foreach="ix, x in enumerate(day_names)"><inputtype="checkbox"py:with="myid='weekday:%d' % ix"id="{$myid}"name="weekday-weekly"value="${ix}"checked="${ix in period.byweekday and 'selected' or None}"/><labelfor="{$myid}">${x}</label></py:for></td></tr>
</table>
</div>
</div>
<div>
<h3><ahref="#">Daily</a></h3>
<div>
<tableclass="event-wizard">
<tr><td><inputtype="radio"name="freq"value="6"checked="${freq == 6 and 'checked' or None}"/> Repeat every <inputtype="text"size="3"maxlength="3"name="dayinterval"value="${period.interval}"/> day(s)</td></tr>
<tr><td><labelfor="repeatframe2">Finish after </label><inputid="count"type="text"size="3"maxlength="3"name="count"value="${period.count}"/> Repetitions</td></tr>
<tr><td><labelfor="repeatframe3">End on:</label><inputid="until_date"type="text"size="10"maxlength="10"name="until_date"value="${period.until and period.until.strftime('%d.%m.%Y') or None}"/></td>
<lipy:for="exception in exceptions"><inputtype="checkbox"name="exception:${exception.erd_id}"/> ${exception.erd_datetime.strftime('%d.%m.%Y')}</li></ul>