<#-- -- Build the HTML code to display the actions -- @param resource_actions the actions to display -- @return the HTML code of the actions --> <#macro display_actions resource_actions > <#if resource_actions.workflow_action_list?exists>

#i18n{forms.multiviewForms.view_record_history.actions}

<#if resource_actions.workflow_action_list?has_content> <#list resource_actions.workflow_action_list as action> <@link class='btn btn-block' href='jsp/admin/plugins/forms/ManageDirectoryFormResponseDetails.jsp?action=doProcessAction&id_action=${action.id}&id_form_response=${form_response.id}' > <@img class='img-circle img-action' url='image?resource_type=workflow_icon_img&id=${action.icon.id}' title=action.name alt=action.name /> ${action.name} <#else> <@alert color='warning'> <@icon style='exclamation-triangle' /> #i18n{forms.multiviewForms.view_record_history.history_empty} <@div id='form-response-details'> <@messages errors=errors /> <@box id='form-detail-header'> <@boxBody> <@icon style='list' id='toc-expand-toggle' title='#i18n{forms.multiviewForms.responseDetails.show.steps}' params=' role="button"' /> <@row> <@columns sm=2 id='toc'> <@box id='toc-box'> <#assign boxHeaderTitle>${form.title} <@icon style='hashtag' title='#i18n{forms.multiviewForms.responseDetails.response.number}' /> ${form_response.id} <@boxHeader id='toc-box-header' title=boxHeaderTitle boxTools=true> <@icon style='times' id='toc-compress-toggle' title='#i18n{forms.multiviewForms.responseDetails.hide.steps}' params=' role="button"' /> <@boxBody> <@navBar id='step-toc'> <@nav type='pills'> <@columns sm=7 id='steps-content'> <#if list_multiview_step_display?has_content> <#list list_multiview_step_display as multiview_step_display> ${multiview_step_display} <@columns sm=3> <@box id='response-right'> <@boxHeader id='info-box-header' title='' boxTools=true> <@tform method='get' id='form-response-detail-header' type='inline' action='jsp/admin/plugins/forms/MultiviewForms.jsp'> <@input type='hidden' name='page' value='form' /> <@input type='hidden' name='session' value='session' /> <#assign editModeValue = "ReadOnly"> <#assign viewNumberAttValue = "1"> <#if list_filter_values?has_content> <#list list_filter_values as filter_values> <@input type='hidden' name='${filter_values.code}' value='${filter_values.name}' /> <@button type='submit' buttonIcon='list' title='#i18n{portal.util.labelBack}' size='' /> <@boxBody>

#i18n{forms.multiviewForms.view_record_history.information}

<@p>${form.title} <@icon style='hashtag' title='#i18n{forms.multiviewForms.responseDetails.response.number}' /> ${form_response.id} <@p><@icon style='calendar' /> #i18n{forms.multiviewForms.responseDetails.response.dateCreation} : ${form_response.creation} <@p><@icon style='calendar' /> #i18n{forms.multiviewForms.responseDetails.response.dateModification} : ${form_response.update} <#if resource_actions?exists && resource_actions.workflow_state?exists> <@p><@icon style='info-circle' /> #i18n{forms.multiviewForms.responseDetails.response.state} : ${resource_actions.workflow_state.name} <@display_actions resource_actions! /> ${resource_history!} <@scrollTopBtn />