{# Template for adding a 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(multiple=multiple, name=uid+'addactions', size='auto', type='select') %} {{ options }} {% endcall %} {% call form.innerbtngroup() %} {{ form.innerbtn(extra=(htmlstr('onclick="return addListItem(this, null, ' + ('true' if editmultiple else 'false') + ', ' + ('true' if cloneSibling else 'false') + ');"') if prototypes else ''), icon='add', name=uid+'addact.x', type='submit', value=trans('btn_add')) }} {% endcall %}