{% extends "polls_base.html" %} {% from "form_macros.html" import yop_poll_select as select %} {%block addnew%} {{ __("Add New") }} {%endblock addnew%} {% block content%}

{{ wp_nonce_field('yop-poll-templates-add-edit-action', 'yop-poll-templates-add-edit-name', false, false ) | raw }}

{{__( "Example: Test Poll Template")}}

{{ wp_editor( stripslashes( current_template.before_vote_template ), 'yop-poll-before-vote-template-input', array( {'textarea_name' : 'yop_poll_before_vote_template', 'teeny' : 'true', 'media_buttons' :'false' }) )}}

{{wp_editor( stripslashes( current_template.after_vote_template ), 'yop-poll-after-vote-template-input', array( {'textarea_name' : 'yop_poll_after_vote_template', 'teeny' : 'true', 'media_buttons' :'false '}) )}}

{{ wp_editor( stripslashes( current_template.before_start_date_template ), 'yop-poll-template-before-start-date-input', array( { 'textarea_name' : 'yop_poll_template_before_start_date', 'teeny' :true, 'media_buttons' :'false' } ) )}}

{{ wp_editor(stripslashes( current_template.after_end_date_template ), 'yop-poll-template-after-end-date-input', array( {'textarea_name' : 'yop_poll_template_after_end_date', 'teeny' : 'true', 'media_buttons' : 'false' } ) ) }}

{{ wp_editor( stripslashes( current_template.css ), 'yop-poll-template-css-input', array( {'textarea_name': 'yop_poll_template_css', 'teeny' :'true', 'media_buttons' : 'false' }) )}}

{{ wp_editor( stripslashes( current_template.js ), 'yop-poll-template-js-input', array( {'textarea_name': 'yop_poll_template_js', 'teeny' : 'true', 'media_buttons' : 'false' }) )}}

{{__( "Save" )}}

{%if 'edit' == action_type %}

{{__( "Tools")}}

{{template_author_name.user_nicename}}
{%if current_template.status=='default'%}

{{__( "Select Template For Reset")}} :

{%endif%}
{%endif%}

{%endblock content%}