{'Saved'|gettext}

{if $survey->hasVotes()} {"Users have already voted in this survey or have saved drafts so you can't edit questions."|gettext}
{'You can delete questions after unpublishing the survey.'|gettext}
{'If you want to edit questions you need to reset the whole survey which will delete all answers and render the survey new.'|gettext} {else} {"This is an ongoing survey so you can't add nor edit questions."|gettext}
{'If you want to edit questions you need to unpublish the survey first.'|gettext} {/if}

{'Questions'|gettext}

    {foreach from=$pages item=page key=key}
  • {$page.surveypage_title}
  • {/foreach}
  • data.survey_published || $survey->hasVotes()}style="display:none;"{/if}> + {'New section'|gettext}
{foreach from=$questions key=key item=page name=main} {if $smarty.foreach.main.iteration == 1} {assign var=activePage value=$page.surveypage_id} {/if}
data.survey_published || $survey->hasVotes()}style="display:none;"{/if} class="mdl-survey-management__page-delete"> {'Delete page'|gettext}

{'Question types:'|gettext}

  • {'Dropdown'|gettext}
  • {'Radio buttons'|gettext}
  • {'Checkboxes'|gettext}
  • {'Textbox'|gettext}

{'To add a new question select a question type above and drag to the space below'|gettext}

{foreach from=$page.questions item=question}

data.survey_published || $survey->hasVotes()}style="display:none;"{/if} draggable="true" class="mdl-icon -dark" data-type="question-title"> {'Type:'|gettext} {{$question.surveyquestion_type|gettext}}

  • data.survey_published || $survey->hasVotes()}disabled{/if} class="question-title langFieldUnprocessed mdl-form__input" type="text" value="{$question.surveyquestion_title}">
  • {if $question.surveyquestion_type|trim|strtolower eq 'checkboxes'}
  • {/if}
{if $survey->data.survey_published} {/if}
{/foreach}
data.survey_published || $survey->hasVotes()}style="display:none;"{/if}>

{'Drag and drop question type here'|gettext}

{/foreach}