{% 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", "yop-poll-vertical-question", 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", "yop-poll-orizontal-question", 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]','text','','yop-poll-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]') }}
|