{# Template for adding a recurrence-Template to a dynamic Form #} {# Note: The name of an input button must be extended by 6 characters after #} {# substitute uid (see addListItem in EditList.js) #} {% import 'macros_form.html' as form without context %} {% call form.singlefield(extra=' ', name='%saddactions' % uid, size='auto', type='select') %} {{ options }} {% endcall %} {% call form.innerbtngroup() %} {{ form.innerbtn(extra=htmlstr(' %s') % (htmlstr('onclick="return addListItem(this, null, %s, %s);"') % ((editmultiple if editmultiple is defined else 'false'), (cloneSibling if cloneSibling is defined else 'false')) if prototypes is defined else ''), icon='add', name='%saddrpr.x' % uid, type='submit', value=trans('btn_addr')) }} {{ form.innerbtn(extra=htmlstr(' %s') % (htmlstr('onclick=\'return addListItem(this, "X", %s, %s);\'') % ((editmultiple if editmultiple is defined else 'false'), (cloneSibling if cloneSibling is defined else 'false')) if prototypes is defined else ''), icon='add', name='%saddxpr.x' % uid, type='submit', value=trans('btn_addx')) }} {% endcall %}