#macro getParentSubject subject breadcrumb> <#if subject?has_content> <#if breadcrumb == ""> <#assign breadcrumbCopy = '' + subject.text + '' + " " /> <#else> <#assign breadcrumbCopy = '' + subject.text + '' + " > " + breadcrumb /> #if> <#if subject.getParent(plugin)?has_content && subject.idParent != 0> <@getParentSubject subject=subject.getParent(plugin) breadcrumb=breadcrumbCopy /> <#else> ${breadcrumbCopy} #if> #if> #macro> <#macro subjectsListSelect items default_value exclude_value depth> <#if items?has_content> <#list items as subject> <#if exclude_value="${subject.id}"> <#else> <#assign child_subjects_list = subject.getChilds(plugin) /> <#if child_subjects_list?has_content> <@subjectsListSelect items=child_subjects_list default_value=default_value exclude_value=exclude_value depth=depth+1 /> #if> #if> #list> #if> #macro> <@row> <@columns sm=3> <@box color='primary' > <@boxHeader title='${faq.name} - #i18n{helpdesk.search_results.labelSearch}' /> <@boxBody> <@tform name='fullTextSearch' action='jsp/admin/plugins/helpdesk/HelpdeskSearch.jsp' > <@input type='hidden' value=faq_id name='faq_id' /> <@input type='hidden' name='page' value='search' /> <@formGroup labelFor='query' labelKey='#i18n{helpdesk.search_results.labelSearch}' rows=2 > <@input name='query' value='${query!}' /> @formGroup> <@formGroup labelFor='date_start' labelKey='#i18n{helpdesk.search_results.date_start}' rows=2 > <@inputGroup> <@input type='daterange' dateRangeEndId='date_end' name='date_start' id='date_start' value='${date_start_query!}' /> <@inputGroupItem><@icon style='calendar' />@inputGroupItem> @inputGroup> @formGroup> <@formGroup labelFor='date_end' labelKey='#i18n{helpdesk.search_results.date_end}' rows=2 > <@inputGroup> <@input name='date_end' id='date_end' value='${date_end_query!}' /> <@inputGroupItem><@icon style='calendar' />@inputGroupItem> @inputGroup> @formGroup> <@formGroup labelFor='form_search_subject_id' labelKey='#i18n{helpdesk.subjects.title.questions}' rows=2 > <@select id='form_search_subject_id' name='form_search_subject_id' > <@option value='' label='' /> <@subjectsListSelect items=helpdesk_subject_list default_value="${filter_subject_id}" exclude_value="" depth=0 /> @select> @formGroup> <@formGroup labelFor='form_search_subject_id' labelKey='#i18n{helpdesk.subjects.title.questions}' rows=2 > <@checkBox name='form_search_sub_subjects' id='form_search_sub_subjects' labelKey='#i18n{helpdesk.subject_list.labelSearchSubSubjects}' orientation='vertical' value=filter_search_sub_subject?c /> @formGroup> <@formGroup labelFor='form_search_subject_id' labelKey='#i18n{helpdesk.search_results.labelNbDocsPerPage} ' rows=2 > <#-- Number of documents per page selector --> <@NbItemsPerPageSelectorCombo nb_items_per_page /> @formGroup> <@formGroup rows=2 > <@button buttonIcon='search' title='#i18n{helpdesk.search_results.buttonSearch}' type='submit' size='sm' /> @formGroup> @tform> @boxBody> @box> @columns> <@columns sm=9> <@box color='primary' > <@boxHeader title='#i18n{helpdesk.question_answer_list.adminTitleRight}' boxTools=true > <@tform action="jsp/admin/plugins/helpdesk/CreateQuestionAnswer.jsp"> <@input type='hidden' value=faq_id name='faq_id' /> <#if subject?has_content><@input type='hidden' value=subject.id name='subject_id' />#if> <@button buttonIcon='plus' title='#i18n{helpdesk.question_answer_list.buttonLabelCreate}' type='submit' size='sm' /> @tform> @boxHeader> <@boxBody> <#if error??> <@alert class='alert-error' color='danger' title='#i18n{helpdesk.search_results.error}' > <@p class="text-muted font-weight-bold ml-3 ms-3 mb-1">${error}@p> @alert> <#else> <#if results_list?size gt 0>