{title}{tr}Admin FAQ:{/tr} {$faq_info.title}{/title}
{button href="tiki-list_faqs.php" class="btn btn-info" _text="{tr}List FAQs{/tr}"} {button href="tiki-view_faq.php?faqId=$faqId" class="btn btn-info" _text="{tr}View FAQ{/tr}"} {button href="tiki-list_faqs.php?faqId=$faqId" class="btn btn-primary" _text="{tr}Edit this FAQ{/tr}"} {button href="tiki-faq_questions.php?faqId=$faqId" class="btn btn-primary" _text="{tr}New Question{/tr}"}

{if $questionId}{tr}Edit FAQ question{/tr}{else}{tr}Add FAQ question{/tr}{/if}


{toolbars area_id="faqans"}
{* This is the area for choosing questions from the db... it really should support choosing options from the answers, but only show if there are existing questions *} {if $allq}

{tr}Use a question from another FAQ{/tr}


{/if}
{* next big chunk *}

{tr}FAQ questions{/tr}

{if $channels or ($find ne '')} {include file='find.tpl'} {/if}
{* table-responsive class cuts off css drop-down menus *} {section name=user loop=$channels} {sectionelse} {norecords _colspan=3} {/section}
{tr}ID{/tr} {tr}Question{/tr} {tr}Action{/tr}
{$channels[user].questionId} {$channels[user].question|escape} {actions} {strip} {icon name='edit' _menu_text='y' _menu_icon='y' alt="{tr}Edit{/tr}"} {icon name='remove' _menu_text='y' _menu_icon='y' alt="{tr}Remove{/tr}"} {/strip} {/actions}
{pagination_links cant=$cant_pages step=$prefs.maxRecords offset=$offset}{/pagination_links} {if count($suggested) > 0}

{tr}Suggested questions{/tr}

{* table-responsive class cuts off css drop-down menus *} {section name=ix loop=$suggested} {/section}
{tr}Question{/tr} {tr}Answer{/tr}
{$suggested[ix].question|escape} {$suggested[ix].answer|escape} {actions} {strip} {icon name='ok' _menu_text='y' _menu_icon='y' alt="{tr}Approve{/tr}"} {icon name='remove' _menu_text='y' _menu_icon='y' alt="{tr}Remove{/tr}"} {/strip} {/actions}
{else}

{tr}No suggested questions{/tr}

{/if}