<#-- -- 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> ${action.name} ${action.name} <#else> <@alert color='warning'> <@icon style='exclamation-triangle' /> #i18n{forms.multiviewForms.view_record_history.history_empty} <@row id='form-response-details'> <@columns sm=9> <@messages errors=errors /> <@box id='form-detail-header'> <#include "includes/include_view_form_response_header.html"> <@boxBody> <#if list_multiview_step_display?has_content> <#list list_multiview_step_display as multiview_step_display> ${multiview_step_display} <@columns sm=3 id='sticky-container'> <@box> <@boxBody id='info-right'>

#i18n{forms.multiviewForms.view_record_history.information}

${form.title} <@icon style='hashtag' title='#i18n{forms.multiviewForms.responseDetails.response.number}' /> ${form_response.id}

<@icon style='calendar' /> #i18n{forms.multiviewForms.responseDetails.response.dateCreation} : ${form_response.creation}

<@icon style='calendar' /> #i18n{forms.multiviewForms.responseDetails.response.dateModification} : ${form_response.update}

<#if resource_actions?exists && resource_actions.workflow_state?exists>

<@icon style='info-circle' /> #i18n{forms.multiviewForms.responseDetails.response.state} : ${resource_actions.workflow_state.name} <@display_actions resource_actions! /> ${resource_history!} <@scrollTopBtn />