<#include "/admin/plugins/appointment/appointmentform/modify_appointmentform_tabs.html" /> <@appointmentTabs tab="entries" appointmentform=appointmentform> <@row> <@columns class='appointment-list-group' xs=12 md=10> <@tform action='jsp/admin/plugins/appointment/ManageAppointmentFormEntries.jsp' > <@input type='hidden' name='action' value='doChangeOrderEntry' /> <@input type='hidden' name='id_form' value='${appointmentform.idForm}' /> <#if entry_group_list?has_content> <@row> <@columns xs=12 md=8> <@checkBox orientation='switch' name='selectAll' id='selectAll' value='selectAll' labelKey='#i18n{appointment.modifyAppointmentForm.selectAll}' wrapperClass='mb-0 pt-1' /> <@columns xs=12 md=4> <@formGroup formStyle='inline'> <@inputGroup> <@select name='id_entry_group' default_value='' items=entry_group_list size='sm' /> <@button type='submit' title='#i18n{appointment.move.name}' name='add_to_group' value='#i18n{appointment.moveAll.name}' buttonIcon='arrows' size='sm' /> <@manageFeature> <#list entry_list as entry> <#if entry.entryType.group><#assign lastGroup = entry> <@manageFeatureItem class=entry.entryType.group?then('group','')> <@manageFeatureItemColumn auto=true> <#if entry.parent?exists> <@icon style='arrow-bar-right' class='fs-1 me-1' /> <#if entry.entryType.group> <@icon style='${entry.entryType.iconName}' class='fs-1' title=entry.entryType.title /> <#else> <#if entry_group_list?has_content> <@checkBox orientation='switch' name='entry_id_move' id='entry_id_${entry.idEntry}' value='${entry.idEntry!}' wrapperClass='mb-0 pt-1' /> <#if !entry.entryType.group> <@manageFeatureItemColumn auto=true> <@icon style='${entry.entryType.iconName}' class='fs-2' title=entry.entryType.title /> <@manageFeatureItemColumn auto=true> <#if entry.entryType.group> <@h level=3 class='my-0 h2'>${entry.title} <#else> <#if entry.entryType.comment?? && entry.entryType.comment>${entry.comment}<#else>${entry.title} <#if entry.numberConditionalQuestion!=0> <@manageFeatureItemColumn auto=true valign='top'> <@formGroup labelFor='conditional_question_id_${entry.idEntry!}' labelKey='#i18n{appointment.createEntry.manageField.rowConditionalQuestion}' rows=2 > ${entry.numberConditionalQuestion} <@manageFeatureItemColumn align='end'> <@formGroup labelFor='order_id_${entry.idEntry!}' labelKey='#i18n{appointment.createEntry.manageField.rowOrder}' rows=2 class='ms-auto me-1' hideLabel=['all'] formStyle=''> <#if entry.parent?exists> <@inputGroup> <@entryOrderSelection name="order_id_${entry.idEntry!}" default_value=entry.position idParent=entry.parent.idEntry /> <@button type='submit' name='id_entry' value='${entry.idEntry}' title='#i18n{appointment.move.name}' hideTitle=['all'] buttonIcon='check' size='sm' /> <#else> <@inputGroup> <@entryOrderSelection name="order_id_${entry.idEntry!}" default_value=entry.position idParent=0 /> <@button type='submit' name='id_entry' title='#i18n{appointment.move.name}' hideTitle=['all'] value='${entry.idEntry}' buttonIcon='check' size='sm' /> <#if !entry.entryType.myLuteceUser> <@aButton href='jsp/admin/plugins/appointment/ManageAppointmentFormEntries.jsp?view=getModifyEntry&id_entry=${entry.idEntry}' title='#i18n{portal.util.labelModify}' hideTitle=['all'] buttonIcon='edit' size='' /> <#if entry.parent?exists> <@aButton href='jsp/admin/plugins/appointment/ManageAppointmentFormEntries.jsp?action=doMoveOutEntry&id_entry=${entry.idEntry}#list' title='#i18n{appointment.modifyField.manageConditionalQuestion.titleGoOut}' hideTitle=['all'] buttonIcon='indent-decrease' size='' /> <#if !entry.entryType.group && !entry.entryType.myLuteceUser> <@aButton href='jsp/admin/plugins/appointment/ManageAppointmentFormEntries.jsp?action=doCopyEntry&id_entry=${entry.idEntry}#list' title='#i18n{appointment.createEntry.manageField.titleCopy}' hideTitle=['all'] buttonIcon='copy' size='' /> <#if !entry.entryType.group> <#assign field_disabled=getFieldValueByCode( entry, "disabled")> <#if entry.disabled> <@aButton href='jsp/admin/plugins/appointment/ManageAppointmentFormEntries.jsp?action=doChangeDisabled&id_form=${appointmentform.idForm}&id_entry=${entry.idEntry}#list' title='#i18n{appointment.createEntry.manageField.titleEnable}' hideTitle=['all'] color='success' buttonIcon='play' size='' /> <#else> <@aButton href='jsp/admin/plugins/appointment/ManageAppointmentFormEntries.jsp?action=doChangeDisabled&id_form=${appointmentform.idForm}&id_entry=${entry.idEntry}#list' title='#i18n{appointment.createEntry.manageField.titleDisable}' hideTitle=['all'] color='danger' buttonIcon='stop' size='' /> <@aButton href='jsp/admin/plugins/appointment/ManageAppointmentFormEntries.jsp?view=confirmRemoveEntry&id_entry=${entry.idEntry}#list' title='#i18n{appointment.delete.title}' hideTitle=['all'] buttonIcon='trash' color='danger' size='' /> <@columns class='appointment-list-group' id='sticky-container' xs=12 md=2> <@ul class='list-unstyled' id='info-right'> <#list entry_type_list as entry> <@li> <@aButton href='jsp/admin/plugins/appointment/ManageAppointmentFormEntries.jsp?view=getCreateEntry&id_form=${appointmentform.idForm}&id_type=${entry.idType}' title='${entry.title}' buttonIcon='${entry.iconName}' class='justify-content-start w-100 mb-1' size='' /> <#macro entryOrderSelection name default_value idParent > <@select id='${name}' name='${name}' size='sm'> <#if idParent gt 0 && lastGroup??> <#assign start_enum = lastGroup.position + 1 > <#assign nb_entries = lastGroup.position + lastGroup.children?size > <#list start_enum..nb_entries as i> <@option value='${i}' selected=(default_value == i) label='${i}' /> <#else> <#list listOrderFirstLevel as i> <@option value='${i}' selected=(default_value == i) label='${i}' />