{title url="tiki-admin_survey_questions.php?surveyId=$surveyId"}{tr}Edit survey questions:{/tr} {$survey_info.name}{/title}
{button href="tiki-admin_survey_questions.php?surveyId=$surveyId" class="btn btn-primary" _icon_name='create' _text="{tr}Add a New Question{/tr}"} {button href="tiki-list_surveys.php" class="btn btn-primary" _icon_name='list' _text="{tr}List Surveys{/tr}"} {button href="tiki-survey_stats.php" class="btn btn-primary" _icon_name='chart' _text="{tr}Survey Stats{/tr}"} {button href="tiki-survey_stats_survey.php?surveyId=$surveyId" class="btn btn-primary" _icon_name='chart' _text="{tr}This survey stats{/tr}"} {button href="tiki-admin_surveys.php?surveyId=$surveyId" class="btn btn-primary" _icon_name='edit' _text="{tr}Edit this Survey{/tr}"} {button href="tiki-admin_surveys.php" class="btn btn-primary" _icon_name='cog' _text="{tr}Admin Surveys{/tr}"}
{if !empty($questionId)}{$tablabel='Edit Survey Question'|tr_if}{else}{$tablabel='Add a New Question to this survey'|tr_if}{/if} {tabset name='tabs_adminsurveyquestions'} {tab name="{tr}Questions{/tr}"} {include file='find.tpl' types='0'} {button _text="{tr}Save{/tr}" _style="display:none;" _class="save_list" _ajax="n" _auto_args="save_list"}
{cycle print=false values="odd,even"} {section name=user loop=$channels} {sectionelse} {norecords _colspan=6} {/section}
{self_link _sort_arg='sort_mode' _sort_field='questionId'}{tr}ID{/tr}{/self_link} {self_link _sort_arg='sort_mode' _sort_field='position'}{tr}Position{/tr}{/self_link} {self_link _sort_arg='sort_mode' _sort_field='question'}{tr}Question{/tr}{/self_link} {self_link _sort_arg='sort_mode' _sort_field='type'}{tr}Type{/tr}{/self_link} {self_link _sort_arg='sort_mode' _sort_field='options'}{tr}Options{/tr}{/self_link}
{$channels[user].questionId} {$channels[user].position} {self_link questionId=$channels[user].questionId}{$channels[user].question|escape|nl2br}{/self_link} {$types[$channels[user].type]} {$channels[user].options} {actions} {strip} {self_link _icon_name='edit' _menu_text='y' _menu_icon='y' questionId=$channels[user].questionId} {tr}Edit{/tr} {/self_link} {self_link _icon_name='remove' _menu_text='y' _menu_icon='y' remove=$channels[user].questionId} {tr}Delete{/tr} {/self_link} {/strip} {/actions}
{pagination_links cant=$cant_pages step=$prefs.maxRecords offset=$offset}{/pagination_links} {button _text="{tr}Save{/tr}" _style="display:none;" _class="save_list" _ajax="n" _auto_args="save_list"} {/tab} {tab name=$tablabel}

{remarksbox type="tip" title="{tr}Tip{/tr}"}

{$types.c}: {tr}Single choice using radio buttons.{/tr}
{tr}Example: "one, two, many, lots".{/tr}
{tr}(Use "\," to include a comma.{/tr})

{$types.m}: {tr}Multiple choice using checkboxes.{/tr}
{tr}Example: "one, two, many, lots".{/tr}
{tr}(Use "\," to include a comma.{/tr})

{$types.r}: {tr}For a rate, you can give the maximum value.{/tr}

{$types.g}: {tr}Multiple choices of thumbnail from a file gallery, options contains Gallery ID.{/tr}
{tr}Example: 4{/tr}

{$types.x}: {tr}Options are: rows,columns,toolbars.{/tr}
{tr}Example: 10,60,n (toolbar can be "y", "n" or "c" for comments toolbar){/tr}

{$types.t}: {tr}For the 'short text' type, options are: columns.{/tr}
{tr}Example: 60{/tr}

{$types.h}: {tr}A heading to go between questions. Options are newpage,tag{/tr}
{tr}Example: y,h4{/tr}

{/remarksbox} {jq} $("select[name=type]").change(function () { $(".type_option").hide(); $(".type_option.type_" + $(this).val()).show(); }).change(); {/jq}
{/tab} {/tabset}