{{ __("Question") }} {{ question.poll_order }} {% if question.question %} - {{ substr( question.question, 0, 30 ) }}... {% endif %}

{{ __("Question Text") }}:


{{ __("Answers") }}:

{% for answer in question.answers %} {% include 'polls_answer_media_template.html' %} {% else %} {% set answer = new_obj( 'answer', '', { 'id' : uniqid('a_'), 'question_order' : 1 } ) %} {% include 'polls_answer_media_template.html' %} {% endfor %}


{{ __( 'Question Options' ) }}:

{% from "form_macros.html" import yop_poll_general_options_label as label %} {% from "form_macros.html" import yop_poll_input_field as input %} {% from "form_macros.html" import yop_poll_select as select %}
{{ __('Allow other answers') }}: {{ label( 'Yes', 'yop-poll-question-'~question.ID~'-allow-other-answers-yes', 'yop_poll_question[question_'~question.ID~'][options][allow_other_answers]', "yes", "radio", "", question.allow_other_answers, "yes", 'yop_poll_show_div( \'.yop-poll-question-'~question.ID~'-other-answers-label-div\' )' ) }} {{ label( 'No', 'yop-poll-question-'~question.ID~'-allow-other-answers-no', 'yop_poll_question[question_'~question.ID~'][options][allow_other_answers]', "no", "radio", "", question.allow_other_answers, "no" , 'yop_poll_hide_div( \'.yop-poll-question-'~question.ID~'-other-answers-label-div\' )') }}
{{ __('Other answer label') }}: {{ input( question.other_answers_label, 'yop-poll-other-answers-label', 'yop_poll_question[question_'~question.ID~'][options][other_answers_label]' ) }} {{ input( question.other_answers_id, '' , 'yop_poll_question[question_'~question.ID~'][options][other_answers_id]', 'hidden' ) }}
{{ __( 'Add the values submitted in "Other" as answers ' ) }}:
{{ __('all the values submitted in this field by your users will be automatically added as an available "Answer"') }}
{{ label( 'Yes', 'yop-poll-question-'~question.ID~'-add-other-answers-to-default-answers-yes', 'yop_poll_question[question_'~question.ID~'][options][add_other_answers_to_default_answers]', "yes", "radio", "", question.add_other_answers_to_default_answers, "yes" ) }} {{ label( 'No', 'yop-poll-question-'~question.ID~'-add-other-answers-to-default-answers-no', 'yop_poll_question[question_'~question.ID~'][options][add_other_answers_to_default_answers]', "no", "radio", "", question.add_other_answers_to_default_answers, "no" ) }}
{{__( 'Display Other Answers Values' ) }}: {{ label( 'Yes', 'yop-poll-question-'~question.ID~'-display-other-answers-values-yes', 'yop_poll_question[question_'~question.ID~'][options][display_other_answers_values]', "yes", "radio", "", question.display_other_answers_values, "yes" ) }} {{ label( 'No', 'yop-poll-question-'~question.ID~'-display-other-answers-values-no', 'yop_poll_question[question_'~question.ID~'][options][display_other_answers_values]', "no", "radio", "", question.display_other_answers_values, "no" ) }}
{{__( 'Allow Multiple Answers' ) }}: {{ label( 'Yes', 'yop-poll-question-'~question.ID~'-allow-multiple-answers-yes', 'yop_poll_question[question_'~question.ID~'][options][allow_multiple_answers]', "yes", "radio", "", question.allow_multiple_answers, "yes", 'yop_poll_show_div( \'.yop-poll-question-'~question.ID~'-allow-multiple-answers-div\' )' ) }} {{ label( 'No', 'yop-poll-question-'~question.ID~'-allow-multiple-answers-no', 'yop_poll_question[question_'~question.ID~'][options][allow_multiple_answers]', "no", "radio", "", question.allow_multiple_answers, "no" , 'yop_poll_hide_div( \'.yop-poll-question-'~question.ID~'-allow-multiple-answers-div\' )' ) }}
{{__( 'Maximum Number of allowed answers' ) }}: {{ input( question.allow_multiple_answers_number, 'yop-poll-question-'~question.ID~'-allow-multiple-answers-number', 'yop_poll_question[question_'~question.ID~'][options][allow_multiple_answers_number]' )}}
{{__( 'Minimum Number of allowed answers' ) }}: {{ input( question.allow_multiple_answers_min_number, 'yop-poll-question-'~question.ID~'-allow-multiple-answers-min-number', 'yop_poll_question[question_'~question.ID~'][options][allow_multiple_answers_min_number]' )}}
{{ __('Display Answers') }}: {{ label( 'Vertical', 'yop-poll-question-'~question.ID~'-display-answers-vertical', 'yop_poll_question[question_'~question.ID~'][options][display_answers]', "vertical", "radio", "", question.display_answers, "vertical", 'yop_poll_hide_div( \'.yop-poll-question-'~question.ID~'-display-answers-tabulated-div\' )' ) }} {{ label( 'Horizontal', 'yop-poll-question-'~question.ID~'-display-answers-orizontal', 'yop_poll_question[question_'~question.ID~'][options][display_answers]', "orizontal", "radio", "", question.display_answers, "orizontal", 'yop_poll_hide_div( \'.yop-poll-question-'~question.ID~'-display-answers-tabulated-div\' )' ) }} {{ label( 'Tabulated', 'yop-poll-question-'~question.ID~'-display-answers-tabulated', 'yop_poll_question[question_'~question.ID~'][options][display_answers]', "tabulated", "radio", "", question.display_answers, "tabulated", 'yop_poll_show_div( \'.yop-poll-question-'~question.ID~'-display-answers-tabulated-div\' )' ) }}
{{ __('Columns') }}: {{ input( question.display_answers_tabulated_cols, 'yop-poll-question-'~question.ID~'-display-answers-tabulated-cols', 'yop_poll_question[question_'~question.ID~'][options][display_answers_tabulated_cols]' )}}
{{ __('Display Results') }}: {{ label( 'Vertical', 'yop-poll-question-'~question.ID~'-display-results-vertical', 'yop_poll_question[question_'~question.ID~'][options][display_results]', "vertical", "radio", "", question.display_results, "vertical", 'yop_poll_hide_div( \'.yop-poll-question-'~question.ID~'-display-results-tabulated-div\' )' ) }} {{ label( 'Horizontal', 'yop-poll-question-'~question.ID~'-display-results-orizontal', 'yop_poll_question[question_'~question.ID~'][options][display_results]', "orizontal", "radio", "", question.display_results, "orizontal", 'yop_poll_hide_div( \'.yop-poll-question-'~question.ID~'-display-results-tabulated-div\' )' ) }} {{ label( 'Tabulated', 'yop-poll-question-'~question.ID~'-display-results-tabulated', 'yop_poll_question[question_'~question.ID~'][options][display_results]', "tabulated", "radio", "", question.display_results, "tabulated", 'yop_poll_show_div( \'.yop-poll-question-'~question.ID~'-display-results-tabulated-div\' )' ) }}
{{ __( 'Columns' ) }}: {{ input( question.display_results_tabulated_cols, 'yop-poll-question-'~question.ID~'-display-results-tabulated-cols', 'yop_poll_question[question_'~question.ID~'][options][display_results_tabulated_cols]') }}

{{__( 'Custom Text Fields' ) }}:

{% set i = 0 %} {% for custom_field in question.custom_fields %} {% set i = i+1 %} {% endfor %}