<#assign nbQuestionShowTop = 5> <#assign currentBreadcrumbCopy = ''> <#macro getParentSubject subject faq breadcrumb showTop=false > <#if subject?has_content && faq?has_content> <#local breadcrumbCopy><@cLink href='jsp/site/Portal.jsp?page=${path_label}&faq_id=${faq.id!}#${anchor_subject}${subject.id!}' label=subject.text! /><#if breadcrumb != ''> > ${breadcrumb} <#if subject.getParent(plugin)?has_content && subject.idParent != 0> <@getParentSubject subject=subject.getParent(plugin) faq=faq breadcrumb=breadcrumbCopy /> <#else> <#if currentBreadcrumbCopy != breadcrumbCopy> <@cBlock class='d-flex justify-content-between align-items-center'> <@cInline><@cLink href='jsp/site/Portal.jsp?page=${path_label}&faq_id=${faq.id}' label=faq.name /> > ${breadcrumbCopy} <#if showTop> <@cLink class='btn btn-tertiary btn-mini' href='jsp/site/Portal.jsp?page=${path_label}#top' label='#i18n{helpdesk.question_list_row.top}'><@cIcon class='arrow-up' /> <#assign currentBreadcrumbCopy = breadcrumbCopy > <@cContainer id='top'> <@cRow> <#if faq_list?has_content> <@cCol cols='12 col-md-8'> <#if search_page> <#if helpdesk_question_answer_list?has_content> <@cRow> <@cCol> <@cTitle level=2>#i18n{helpdesk.search_results.labelResultsRange} <@chList id='questionAnswer' class='me-l ps-m'> <#list helpdesk_question_answer_list as questionAnswer> <@chItem id=questionAnswer.idQuestionAnswer?string> <#assign currentSubject = questionAnswer.getSubject(plugin)> <#assign isShown=helpdesk_question_answer_list?size gte nbQuestionShowTop /> <@getParentSubject subject=currentSubject faq=currentSubject.getFaq(plugin) showTop=isShown breadcrumb='' /> <@cText class='font-bold mt-m'>${questionAnswer.question} <@cInline type='blockquote' class='mt-m ps-m blockquote'>${questionAnswer.answer} <#else> <@cRow> <@cCol> <@cAlert class='warning' title='#i18n{helpdesk.message.search_nok}' dismissible=true /> <#if faq_list?has_content> <@cTitle level=2>#i18n{helpdesk.faq_list.portlet_list.title} <@chList class='mt-m'> <#list faq_list as faq> <@chItem><@cLink href='jsp/site/Portal.jsp?page=helpdesk&faq_id=${faq.id}' label=faq.name /> <#else> <@cAlert class='danger' title='#i18n{helpdesk.faq_list.emptyList}' /> <@cCol cols='12 col-md-4'> <@cTitle level=2 class='h4'>#i18n{helpdesk.faq_list.portlet_search.title} <@cForm name='form_search'> <@cInput type='hidden' name='page' value='${path_label!}' /> <@cField label='#i18n{helpdesk.faq_list.portlet_search.labelSearch}' for='form_search_keywords' > <@cInput name='form_search_keywords' value=(filter_searched_keywords!)?html /> <#-- <@cField> <@cInputDateRange name='form_search_date_begin' label='#i18n{helpdesk.faq_list.portlet_search.labelDateBegin}' id='form_search_date' value=(filter_date_begin!)?html helpMsg='' errorMsg='' params='' /> --> <@cFormRow> <@cCol> <@cBtn label='' type='submit'><@cIcon class='search' /><@cInline class='btn-label'>#i18n{helpdesk.faq_list.portlet_search.buttonLabelSearch} <#if search_page> <@cLink label='' href='jsp/site/Portal.jsp?page=helpdesk' class='btn btn-secondary'><@cIcon class='refresh' /> #i18n{portal.util.labelCancel} <#else> <@cCol> <@cAlert class='danger' title='#i18n{helpdesk.faq_list.emptyList}' />