<#macro setupCal field button> <#escape x as x?html>
#i18n{calendar.portlet_modify_calendar.labelPeriodicity}

checked="checked"type="radio"> #i18n{calendar.portlet_modify_calendar.labelPeriodicityInterval}
#i18n{calendar.portlet_modify_calendar.labelFrom} ${date_begin[6..7]}/${date_begin[4..5]}/${date_begin[0..3]}" size="10" maxlength="10" /> #i18n{calendar.portlet_modify_calendar.labelTo} ${date_end[6..7]}/${date_end[4..5]}/${date_end[0..3]}" size="10" maxlength="10" />

#i18n{calendar.portlet_modify_calendar.labelOr}

checked="checked" type="radio" />#i18n{calendar.portlet_modify_calendar.labelPeriodicity}
<@combo name="number_days" default_value="${number_days}" items=interval_list />#i18n{calendar.portlet_modify_calendar.labelStartingNow}

#i18n{calendar.portlet_modify_calendar.labelChoiceAgenda}
#i18n{calendar.portlet_modify_calendar.labelDatabaseAgenda}:
<#list authorized_agenda_list as agenda>
${agenda.id} ${agenda.name}
#i18n{calendar.portlet_modify_calendar.labelTextFileAgenda}:
#i18n{calendar.portlet_modify_calendar.labelSummaryFile}
<@setupCal field="date_begin" button="button_begin" /> <@setupCal field="date_end" button="button_end" />