faq_list.html

 1   <#macro getParentSubject subject faq breadcrumb>
 2   <#if subject?has_content && faq?has_content>
 3   <#if breadcrumb == "">
 4   <#assign breadcrumbCopy = "<a href=\"jsp/site/Portal.jsp?page=${path_label}&faq_id=${faq.id}#${anchor_subject}${subject.id}\">${subject.text}</a>" />
 5   <#else>
 6   <#assign breadcrumbCopy = "<a href=\"jsp/site/Portal.jsp?page=${path_label}&faq_id=${faq.id}#${anchor_subject}${subject.id}\">${subject.text}</a>" + " &gt; " + breadcrumb />
 7   </#if>
 8   <#if subject.getParent(plugin)?has_content && subject.idParent != 0>
 9   <@getParentSubject subject=subject.getParent(plugin) faq=faq breadcrumb=breadcrumbCopy />
 10   <#else>
 11   <a class="top" href="jsp/site/Portal.jsp?page=${path_label}#top">#i18n{helpdesk.question_list_row.top}</a>
 12   <a href="jsp/site/Portal.jsp?page=${path_label}&faq_id=${faq.id}">${faq.name}</a> &gt; ${breadcrumbCopy}
 13   </#if>
 14   </#if>
 15   </#macro>
 16   
 17   <#if faq_list?has_content>
 18   <div class="row">
 19       <div class="col-12">
 20           <fieldset>
 21               <legend>#i18n{helpdesk.faq_list.portlet_search.title}</legend>
 22               <form class="form-search mb-5" name="form_search" method="post">
 23                   <a name="top"></a>
 24                   <div class="row mb-3">
 25                       <label class="form-label col-xs-12 col-md-3" for="form_search_keywords">#i18n{helpdesk.faq_list.portlet_search.labelSearch} : </label>
 26                       <div class="col-xs-12 col-md-9">
 27                           <input type="text" class="form-control" id="form_search_keywords" name="form_search_keywords" value="${(filter_searched_keywords!)?html}">
 28                       </div>
 29                   </div>
 30                   <div class="row mb-3">
 31                       <label class="form-label col-xs-12 col-md-3" for="form_search_date_begin">#i18n{helpdesk.faq_list.portlet_search.labelDateBegin}</label>
 32   					<div class="col-xs-12 col-md-9">
 33   						<input type="date" class="form-control" id="form_search_date_begin" name="form_search_date_begin" value="${(filter_date_begin!)?html}" />
 34   					</div>
 35   				</div>
 36   				<div class="row mb-3">
 37   					<label class="form-label col-xs-12 col-md-3" for="form_search_date_end">#i18n{helpdesk.faq_list.portlet_search.labelDateEnd}</label>
 38   					<div class="col-xs-12 col-md-9">
 39   						<input type="date" class="form-control" id="form_search_date_end" name="form_search_date_end" value="${(filter_date_end!)?html}" />
 40   					</div>
 41   				</div>
 42   				<div class="row mb-3">
 43   					<div class="col-xs-12 col-md-3 offset-md-3">
 44   						<input type="hidden" name="page" value="${path_label}">
 45   						<button type="submit" title="#i18n{helpdesk.faq_list.portlet_search.buttonLabelSearch}" class="btn btn-primary btn-sm">
 46   							<span class="ti ti-search"></span>
 47   							#i18n{helpdesk.faq_list.portlet_search.buttonLabelSearch}
 48   						</button>
 49   					</div>
 50   				</div>
 51               </form>
 52               <#if search_page>
 53               <#if helpdesk_question_answer_list?has_content>
 54               <ul id="questionAnswer">
 55                   <#list helpdesk_question_answer_list as questionAnswer>
 56                   <li class="mb-5">
 57                       <#assign currentSubject = questionAnswer.getSubject(plugin) />
 58                       <p><@getParentSubject subject=currentSubject faq=currentSubject.getFaq(plugin) breadcrumb="" /></p>
 59                       <br />
 60                       <a name="${questionAnswer.idQuestionAnswer}"></a>
 61                       <p><strong>${questionAnswer.question}</strong></p>
 62                       <p>${questionAnswer.answer}</p>
 63                   </li>
 64                   </#list>
 65               </ul>
 66               <#else>
 67               <div class="alert alert-warning">#i18n{helpdesk.message.search_nok}</div>
 68               </#if>
 69               </#if>
 70           </fieldset>
 71       </div>
 72   </div>
 73   </#if>
 74   <div class="row">
 75       <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
 76           <fieldset>
 77               <legend>#i18n{helpdesk.faq_list.portlet_list.title}</legend>
 78               <a name="top"></a>
 79               <#if faq_list?has_content>	
 80               <ul>
 81                   <#list faq_list as faq>
 82                   <li><a href="jsp/site/Portal.jsp?page=helpdesk&faq_id=${faq.id}">${faq.name}</a></li>
 83                   </#list>
 84               </ul>
 85               <#else>
 86               <div class="alert alert-warning">#i18n{helpdesk.faq_list.emptyList}</div>
 87               </#if>
 88   		</fieldset>
 89       </div>
 90   </div>