<@row> <@columns> <@box color='primary'> <@boxHeader title='#i18n{module.forms.template.manageTemplates.title}' class='is-align-items-center' boxTools=true> <#if permission_create_template> <@aButton href='jsp/admin/plugins/forms/modules/template/ManageTemplatesStep.jsp?view=createTemplate' buttonIcon='plus' title='#i18n{module.forms.template.manageTemplates.buttonAdd}' hideTitle=['xs','sm'] class='card-header-icon' color='secondary' /> <@aButton title='#i18n{forms.manage_steps.buttonImport}' buttonIcon='upload' size='sm' params='data-toggle="modal" data-target="#importJsonModal" ' hideTitle=['xs','sm'] /> <@boxBody> <@table> <@tr> <@th>#i18n{module.forms.template.manageTemplates.columnTitle} <@th>#i18n{module.forms.template.manageTemplates.columnDescription} <@th>#i18n{module.forms.template.manageTemplates.columnActions} <#list template_list as template> <@tr> <@td>${template.title} <@td>${template.description} <@td> <#if template.actions?exists> <#list template.actions as action> <#assign color='' /> <#assign perm=action.permission?lower_case /> <#assign params='' /> <#if action.permission=='DELETE'> <#assign color = 'danger' /> <#assign perm='' /> <#else> <#assign color = 'primary' /> <@aButton href='${action.url}&id_step=${template.id}' title='${action.name}' hideTitle=['all'] color='${color}' class='${perm}' buttonIcon=action.iconUrl params=params size='sm' /> <@paginationAdmin paginator=paginator combo=1 showcount=0 /> <@toastr infos=infos warnings=warnings errors=errors /> <@modal id='importJsonModal'> <@modalHeader modalTitle='#i18n{forms.manage_steps.buttonImport}' /> <@modalBody> <@tform class='form' method='post' name='upload_form' action='jsp/admin/plugins/forms/modules/template/ManageTemplatesStep.jsp' params='enctype="multipart/form-data"'> <@formGroup labelKey='#i18n{forms.manageForm.labelImportFile}' helpKey='#i18n{forms.manageForm.labelImportFile.help}' rows=2> <@input type='file' name='json_file'/> <@formGroup> <@button type='submit' name='action_doImportJson' buttonIcon='check' title='#i18n{portal.admin.message.buttonValidate}' /> <@button type='cancel' name='action_doCancelImport' buttonIcon='times' title='#i18n{portal.admin.message.buttonCancel}' cancel=true />