<#include "/admin/plugins/appointment/appointmentform/modify_appointmentform_tabs.html" /> <#assign entryIconList = ['dot-circle','check-square','comment','calendar','list-alt','file-alt','file-alt','phone','indent','database','map','sign-in-alt','user','image','file','phone'] /> <@row> <@columns> <@appointmentTabs tab="entries" appointmentform=appointmentform> <@row> <@columns md=9> <@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> <@formGroup formStyle='inline'> <@inputGroup> <@select name='id_entry_group' default_value='' items=entry_group_list size='sm' /> <@inputGroupItem> <@button type='submit' title='#i18n{appointment.move.name}' name='add_to_group' value='#i18n{appointment.moveAll.name}' buttonIcon='arrows' size='sm' />
<@table> <@checkBox labelFor='selectAll' name='selectAll' id='selectAll' value='selectAll' title='#i18n{appointment.modifyAppointmentForm.selectAll}' mandatory=false /> #i18n{appointment.labelTitle} #i18n{appointment.type.name} <@icon style='question-circle' title='#i18n{appointment.createEntry.manageField.rowConditionalQuestion}' /> #i18n{appointment.createEntry.manageField.rowOrder} #i18n{appointment.actions.label}  <#list entry_list as entry> <#if entry.entryType.group> <#assign lastGroup = entry> <#if entry.entryType.group> <@icon style='indent' /> <#else> <@checkBox labelFor='entry_id_move' name='entry_id_move' id='entry_id_${entry.idEntry}' value='${entry.idEntry!}' title='#i18n{appointment.modifyAppointmentForm.select}' mandatory=false /> <#if entry.entryType.group>

${entry.title}

<#elseif entry.parent?exists> <@icon style='caret-right' /> <#if entry.entryType.comment> ${entry.comment} <#else> ${entry.title} <#elseif entry.entryType.myLuteceUser> <@icon style='caret-right' /> ${entry.title} <#else> <#if entry.entryType.comment> ${entry.comment} <#else> ${entry.title} <#if !entry.entryType.group> <@tag> <#list entryIconList as entryIcon> <#if entry.entryType.idType == 100+entryIcon?index+1> <@icon style='${entryIcon}' />  ${entry.entryType.title} <#if entry.numberConditionalQuestion!=0>${entry.numberConditionalQuestion} <#if entry.parent?exists> <@formGroup rows=2> <@inputGroup> <@comboOrders name="order_id_${entry.idEntry!}" default_value=entry.position idParent=entry.parent.idEntry /> <@inputGroupItem> <@button type='submit' name='id_entry' value='${entry.idEntry}' title='#i18n{appointment.move.name}' hideTitle=['all'] buttonIcon='check' size='sm' /> <#else> <@inputGroup> <@comboOrders name="order_id_${entry.idEntry!}" default_value=entry.position idParent=0 /> <@inputGroupItem> <@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}' buttonIcon='edit' size='sm' /> <#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='outdent' size='sm' /> <#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='sm' /> <@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='sm' /> <@columns md=3> <@listGroup> <@listGroupItem>#i18n{appointment.modifyAppointmentForm.labelInsertEntry} <#list entry_type_list as item> <@listGroupItem> <@link href='jsp/admin/plugins/appointment/ManageAppointmentFormEntries.jsp?view=getCreateEntry&id_form=${appointmentform.idForm}&id_type=${item.code}'> <#list entryIconList as entryIcon> <#if item.code?number == 100+entryIcon?index+1> <@icon style='${entryIcon}' />  ${item.name} <#macro comboOrders name default_value idParent > <@select id='${name}' name='${name}' size='sm'> <#if idParent > 0 && lastGroup??> <#assign start_enum = lastGroup.position + 1 > <#assign nb_entries = lastGroup.position + lastGroup.children?size > <#list start_enum..nb_entries as i> <#if default_value == i> <#else> <#else> <#list listOrderFirstLevel as i> <#if default_value == i> <#else>