{% extends "polls_base.html" %} {% block content %} {% 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 %}
{{ wp_nonce_field( 'yop-poll-add-edit-action', 'yop-poll-add-edit-name', false, false ) | raw }} {% if ( 'edit' == action_type ) %} {{ __( "Shortcode" ) }}: {% endif %}


{{ __("Save") }}

 

{{ __( "Questions" ) }}:

{% for question in current_poll.questions %} {% include 'polls_question_template.html' %} {% else %} {% set question = new_obj( 'question', '', { 'id': uniqid('q_') , 'poll_order' : 1} ) %} {% include 'polls_question_template.html' %} {% endfor %}
{{ input( __("Add New Question") , 'yop-poll-edit-add-new-question', '', 'button', '', 'button-primary', "yop_poll_add_new_question( \'\', this )" ) }}


{{ __("Poll Templates") }}

{{ __("Page Template") }}:

    {% if count( templates ) > 0 %} {% set i = 0 %} {% for template in templates %}
  • {{template.name|e}}
  • {% set i = i+1 %} {% endfor %} {% endif %}

{{ __("Widget Template") }}:

    {% if count( templates ) > 0 %} {% set i = 0 %} {% for template in templates %}
  • {{template.name|e}}
  • {% set i = i+1 %} {% endfor %} {% endif %}


{{ __("Poll Options") }}

{% if current_poll.is_pro == true %} {% endif %}

{{ __( "Results Options" ) }}


{% endblock content %}