# -*- coding:utf-8 -*-
from mako import runtime, filters, cache
UNDEFINED = runtime.UNDEFINED
STOP_RENDERING = runtime.STOP_RENDERING
__M_dict_builtin = dict
__M_locals_builtin = locals
_magic_number = 10
_modified_time = 1553974850.4120882
_enable_loop = True
_template_filename = '/Users/tannerwelton/Documents/OneDrive - BYU Office 365/Projects/student_elect/student_elect/dashboard/templates/edit.html'
_template_uri = 'edit.html'
_source_encoding = 'utf-8'
import django_mako_plus
import django.utils.html
_exports = ['title', 'pageTitle', 'page_content']


def _mako_get_namespace(context, name):
    try:
        return context.namespaces[(__name__, name)]
    except KeyError:
        _mako_generate_namespaces(context)
        return context.namespaces[(__name__, name)]
def _mako_generate_namespaces(context):
    pass
def _mako_inherit(template, context):
    _mako_generate_namespaces(context)
    return runtime._inherit_from(context, 'app_base.htm', _template_uri)
def render_body(context,**pageargs):
    __M_caller = context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)
        def page_content():
            return render_page_content(context._locals(__M_locals))
        def pageTitle():
            return render_pageTitle(context._locals(__M_locals))
        poll = context.get('poll', UNDEFINED)
        def title():
            return render_title(context._locals(__M_locals))
        candidateform = context.get('candidateform', UNDEFINED)
        self = context.get('self', UNDEFINED)
        settingsform = context.get('settingsform', UNDEFINED)
        __M_writer = context.writer()
        __M_writer('\n\n')
        if 'parent' not in context._data or not hasattr(context._data['parent'], 'title'):
            context['self'].title(**pageargs)
        

        __M_writer('\n')
        if 'parent' not in context._data or not hasattr(context._data['parent'], 'pageTitle'):
            context['self'].pageTitle(**pageargs)
        

        __M_writer('\n\n')
        if 'parent' not in context._data or not hasattr(context._data['parent'], 'page_content'):
            context['self'].page_content(**pageargs)
        

        __M_writer('\n')
        return ''
    finally:
        context.caller_stack._pop_frame()


def render_title(context,**pageargs):
    __M_caller = context.caller_stack._push_frame()
    try:
        def title():
            return render_title(context)
        __M_writer = context.writer()
        __M_writer('Edit Poll')
        return ''
    finally:
        context.caller_stack._pop_frame()


def render_pageTitle(context,**pageargs):
    __M_caller = context.caller_stack._push_frame()
    try:
        def pageTitle():
            return render_pageTitle(context)
        __M_writer = context.writer()
        __M_writer('Edit Poll')
        return ''
    finally:
        context.caller_stack._pop_frame()


def render_page_content(context,**pageargs):
    __M_caller = context.caller_stack._push_frame()
    try:
        def page_content():
            return render_page_content(context)
        poll = context.get('poll', UNDEFINED)
        candidateform = context.get('candidateform', UNDEFINED)
        self = context.get('self', UNDEFINED)
        settingsform = context.get('settingsform', UNDEFINED)
        __M_writer = context.writer()
        __M_writer('\n\n<div class="container-fluid">\n\n  <div class="row">\n    <div class="col-12">\n\n      <div class="card mt-0 mb-0">\n        <div class="card-body">\n')
        if poll.status == 'A':
            __M_writer('          <button type="button" class="btn btn-sm btn-warning" id="pollStatus"><i class="material-icons">pause</i> Pause Poll</button>\n')
        else:
            __M_writer('          <button type="button" class="btn btn-sm btn-success" id="pollStatus"><i class="material-icons">play_arrow</i> Start Poll</button>\n')
        __M_writer('          <button type="button" class="btn btn-sm btn-info" id="pollRound"><i class="material-icons">skip_next</i> Next Round</button>\n          <button type="button" class="btn btn-sm btn-gray btn-just-icon" data-toggle="modal" data-target="#settingsModal"><i class="material-icons">settings</i></button>\n          <button type="button" class="btn btn-sm btn-danger" id="pollEnd" style="float:right;"><i class="material-icons">stop</i> End Poll</button>\n    \n        </div>\n      </div>\n\n      \n    </div>\n  </div>\n\n  <div class="row">\n    <div class="col-12">\n      <h3 class="pl-3">Candidates: \n          <button type="button" class="btn btn-sm btn-primary btn-round btn-just-icon" data-toggle="modal" data-target="#candidateModal"><i class="material-icons">add</i></button>\n      </h3>\n      <div id="candidate-container">Loading Candidates...</div>\n      \n    </div>\n\n\n  </div>\n\n  <form method="POST" action="/dashboard/edit.updatesettings/')
        __M_writer(django_mako_plus.ExpressionPostProcessor(self)( poll.id ))
        __M_writer('" id="settingsform" enctype="multipart/form-data">\n    <div class="modal fade" id="settingsModal"> \n      <div class="modal-dialog" role="document">\n        <div class="modal-content">\n          <div class="modal-header">\n            <h5 class="modal-title" id="exampleModalLabel">Settings</h5>\n            <button type="button" class="close" data-dismiss="modal" aria-label="Close">\n              <span aria-hidden="true">&times;</span>\n            </button>\n          </div>\n          <div class="row justify-content-center">\n            <div class="col-xl-8 col-lg-10 col-md-12">\n                <div class="modal-body">\n                    ')
        __M_writer(django_mako_plus.ExpressionPostProcessor(self)( settingsform ))
        __M_writer('\n                </div>\n            </div>\n          </div>\n            \n          <div class="modal-footer">\n            <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>\n            <button type="submit" class="btn btn-primary" id="settingsSubmit">Update Settings</button>\n          </div>\n        </div>\n      </div>\n    </div>\n  </form>\n\n  <form method="POST" action="/dashboard/edit.addcandidate/')
        __M_writer(django_mako_plus.ExpressionPostProcessor(self)( poll.id ))
        __M_writer('" id="candidateform" enctype="multipart/form-data">\n    <div class="modal fade" id="candidateModal"> \n      <div class="modal-dialog" role="document">\n        <div class="modal-content">\n          <div class="modal-header">\n            <h5 class="modal-title" id="exampleModalLabel">Add Candidate</h5>\n            <button type="button" class="close" data-dismiss="modal" aria-label="Close">\n              <span aria-hidden="true">&times;</span>\n            </button>\n          </div>\n          <div class="row justify-content-center">\n            <div class="col-xl-8 col-lg-10 col-md-12">\n                <div class="modal-body">\n              \n                    ')
        __M_writer(django_mako_plus.ExpressionPostProcessor(self)( candidateform ))
        __M_writer('\n                </div>\n            </div>\n          </div>\n            \n          <div class="modal-footer">\n            <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>\n            <button type="submit" class="btn btn-primary" id="candidateSubmit">Add Candidate</button>\n          </div>\n        </div>\n      </div>\n    </div>\n  </form>\n</div>\n')
        return ''
    finally:
        context.caller_stack._pop_frame()


"""
__M_BEGIN_METADATA
{"filename": "/Users/tannerwelton/Documents/OneDrive - BYU Office 365/Projects/student_elect/student_elect/dashboard/templates/edit.html", "uri": "edit.html", "source_encoding": "utf-8", "line_map": {"29": 0, "44": 1, "49": 3, "54": 4, "59": 98, "65": 3, "71": 3, "77": 4, "83": 4, "89": 6, "99": 6, "100": 15, "101": 16, "102": 17, "103": 18, "104": 20, "105": 43, "106": 43, "107": 56, "108": 56, "109": 70, "110": 70, "111": 84, "112": 84, "118": 112}}
__M_END_METADATA
"""

c85a8e5ef1c3d6af62ef6e016abc14f44137b6a9
<mask token>


def _mako_generate_namespaces(context):
    pass


<mask token>


def render_body(context, **pageargs):
    __M_caller = context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)

        def page_content():
            return render_page_content(context._locals(__M_locals))

        def pageTitle():
            return render_pageTitle(context._locals(__M_locals))
        poll = context.get('poll', UNDEFINED)

        def title():
            return render_title(context._locals(__M_locals))
        candidateform = context.get('candidateform', UNDEFINED)
        self = context.get('self', UNDEFINED)
        settingsform = context.get('settingsform', UNDEFINED)
        __M_writer = context.writer()
        __M_writer('\n\n')
        if 'parent' not in context._data or not hasattr(context._data[
            'parent'], 'title'):
            context['self'].title(**pageargs)
        __M_writer('\n')
        if 'parent' not in context._data or not hasattr(context._data[
            'parent'], 'pageTitle'):
            context['self'].pageTitle(**pageargs)
        __M_writer('\n\n')
        if 'parent' not in context._data or not hasattr(context._data[
            'parent'], 'page_content'):
            context['self'].page_content(**pageargs)
        __M_writer('\n')
        return ''
    finally:
        context.caller_stack._pop_frame()


<mask token>


def render_pageTitle(context, **pageargs):
    __M_caller = context.caller_stack._push_frame()
    try:

        def pageTitle():
            return render_pageTitle(context)
        __M_writer = context.writer()
        __M_writer('Edit Poll')
        return ''
    finally:
        context.caller_stack._pop_frame()


def render_page_content(context, **pageargs):
    __M_caller = context.caller_stack._push_frame()
    try:

        def page_content():
            return render_page_content(context)
        poll = context.get('poll', UNDEFINED)
        candidateform = context.get('candidateform', UNDEFINED)
        self = context.get('self', UNDEFINED)
        settingsform = context.get('settingsform', UNDEFINED)
        __M_writer = context.writer()
        __M_writer(
            """

<div class="container-fluid">

  <div class="row">
    <div class="col-12">

      <div class="card mt-0 mb-0">
        <div class="card-body">
"""
            )
        if poll.status == 'A':
            __M_writer(
                """          <button type="button" class="btn btn-sm btn-warning" id="pollStatus"><i class="material-icons">pause</i> Pause Poll</button>
"""
                )
        else:
            __M_writer(
                """          <button type="button" class="btn btn-sm btn-success" id="pollStatus"><i class="material-icons">play_arrow</i> Start Poll</button>
"""
                )
        __M_writer(
            """          <button type="button" class="btn btn-sm btn-info" id="pollRound"><i class="material-icons">skip_next</i> Next Round</button>
          <button type="button" class="btn btn-sm btn-gray btn-just-icon" data-toggle="modal" data-target="#settingsModal"><i class="material-icons">settings</i></button>
          <button type="button" class="btn btn-sm btn-danger" id="pollEnd" style="float:right;"><i class="material-icons">stop</i> End Poll</button>
    
        </div>
      </div>

      
    </div>
  </div>

  <div class="row">
    <div class="col-12">
      <h3 class="pl-3">Candidates: 
          <button type="button" class="btn btn-sm btn-primary btn-round btn-just-icon" data-toggle="modal" data-target="#candidateModal"><i class="material-icons">add</i></button>
      </h3>
      <div id="candidate-container">Loading Candidates...</div>
      
    </div>


  </div>

  <form method="POST" action="/dashboard/edit.updatesettings/"""
            )
        __M_writer(django_mako_plus.ExpressionPostProcessor(self)(poll.id))
        __M_writer(
            """" id="settingsform" enctype="multipart/form-data">
    <div class="modal fade" id="settingsModal"> 
      <div class="modal-dialog" role="document">
        <div class="modal-content">
          <div class="modal-header">
            <h5 class="modal-title" id="exampleModalLabel">Settings</h5>
            <button type="button" class="close" data-dismiss="modal" aria-label="Close">
              <span aria-hidden="true">&times;</span>
            </button>
          </div>
          <div class="row justify-content-center">
            <div class="col-xl-8 col-lg-10 col-md-12">
                <div class="modal-body">
                    """
            )
        __M_writer(django_mako_plus.ExpressionPostProcessor(self)(settingsform)
            )
        __M_writer(
            """
                </div>
            </div>
          </div>
            
          <div class="modal-footer">
            <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
            <button type="submit" class="btn btn-primary" id="settingsSubmit">Update Settings</button>
          </div>
        </div>
      </div>
    </div>
  </form>

  <form method="POST" action="/dashboard/edit.addcandidate/"""
            )
        __M_writer(django_mako_plus.ExpressionPostProcessor(self)(poll.id))
        __M_writer(
            """" id="candidateform" enctype="multipart/form-data">
    <div class="modal fade" id="candidateModal"> 
      <div class="modal-dialog" role="document">
        <div class="modal-content">
          <div class="modal-header">
            <h5 class="modal-title" id="exampleModalLabel">Add Candidate</h5>
            <button type="button" class="close" data-dismiss="modal" aria-label="Close">
              <span aria-hidden="true">&times;</span>
            </button>
          </div>
          <div class="row justify-content-center">
            <div class="col-xl-8 col-lg-10 col-md-12">
                <div class="modal-body">
              
                    """
            )
        __M_writer(django_mako_plus.ExpressionPostProcessor(self)(
            candidateform))
        __M_writer(
            """
                </div>
            </div>
          </div>
            
          <div class="modal-footer">
            <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
            <button type="submit" class="btn btn-primary" id="candidateSubmit">Add Candidate</button>
          </div>
        </div>
      </div>
    </div>
  </form>
</div>
"""
            )
        return ''
    finally:
        context.caller_stack._pop_frame()


<mask token>

<mask token>


def _mako_generate_namespaces(context):
    pass


<mask token>


def render_body(context, **pageargs):
    __M_caller = context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)

        def page_content():
            return render_page_content(context._locals(__M_locals))

        def pageTitle():
            return render_pageTitle(context._locals(__M_locals))
        poll = context.get('poll', UNDEFINED)

        def title():
            return render_title(context._locals(__M_locals))
        candidateform = context.get('candidateform', UNDEFINED)
        self = context.get('self', UNDEFINED)
        settingsform = context.get('settingsform', UNDEFINED)
        __M_writer = context.writer()
        __M_writer('\n\n')
        if 'parent' not in context._data or not hasattr(context._data[
            'parent'], 'title'):
            context['self'].title(**pageargs)
        __M_writer('\n')
        if 'parent' not in context._data or not hasattr(context._data[
            'parent'], 'pageTitle'):
            context['self'].pageTitle(**pageargs)
        __M_writer('\n\n')
        if 'parent' not in context._data or not hasattr(context._data[
            'parent'], 'page_content'):
            context['self'].page_content(**pageargs)
        __M_writer('\n')
        return ''
    finally:
        context.caller_stack._pop_frame()


def render_title(context, **pageargs):
    __M_caller = context.caller_stack._push_frame()
    try:

        def title():
            return render_title(context)
        __M_writer = context.writer()
        __M_writer('Edit Poll')
        return ''
    finally:
        context.caller_stack._pop_frame()


def render_pageTitle(context, **pageargs):
    __M_caller = context.caller_stack._push_frame()
    try:

        def pageTitle():
            return render_pageTitle(context)
        __M_writer = context.writer()
        __M_writer('Edit Poll')
        return ''
    finally:
        context.caller_stack._pop_frame()


def render_page_content(context, **pageargs):
    __M_caller = context.caller_stack._push_frame()
    try:

        def page_content():
            return render_page_content(context)
        poll = context.get('poll', UNDEFINED)
        candidateform = context.get('candidateform', UNDEFINED)
        self = context.get('self', UNDEFINED)
        settingsform = context.get('settingsform', UNDEFINED)
        __M_writer = context.writer()
        __M_writer(
            """

<div class="container-fluid">

  <div class="row">
    <div class="col-12">

      <div class="card mt-0 mb-0">
        <div class="card-body">
"""
            )
        if poll.status == 'A':
            __M_writer(
                """          <button type="button" class="btn btn-sm btn-warning" id="pollStatus"><i class="material-icons">pause</i> Pause Poll</button>
"""
                )
        else:
            __M_writer(
                """          <button type="button" class="btn btn-sm btn-success" id="pollStatus"><i class="material-icons">play_arrow</i> Start Poll</button>
"""
                )
        __M_writer(
            """          <button type="button" class="btn btn-sm btn-info" id="pollRound"><i class="material-icons">skip_next</i> Next Round</button>
          <button type="button" class="btn btn-sm btn-gray btn-just-icon" data-toggle="modal" data-target="#settingsModal"><i class="material-icons">settings</i></button>
          <button type="button" class="btn btn-sm btn-danger" id="pollEnd" style="float:right;"><i class="material-icons">stop</i> End Poll</button>
    
        </div>
      </div>

      
    </div>
  </div>

  <div class="row">
    <div class="col-12">
      <h3 class="pl-3">Candidates: 
          <button type="button" class="btn btn-sm btn-primary btn-round btn-just-icon" data-toggle="modal" data-target="#candidateModal"><i class="material-icons">add</i></button>
      </h3>
      <div id="candidate-container">Loading Candidates...</div>
      
    </div>


  </div>

  <form method="POST" action="/dashboard/edit.updatesettings/"""
            )
        __M_writer(django_mako_plus.ExpressionPostProcessor(self)(poll.id))
        __M_writer(
            """" id="settingsform" enctype="multipart/form-data">
    <div class="modal fade" id="settingsModal"> 
      <div class="modal-dialog" role="document">
        <div class="modal-content">
          <div class="modal-header">
            <h5 class="modal-title" id="exampleModalLabel">Settings</h5>
            <button type="button" class="close" data-dismiss="modal" aria-label="Close">
              <span aria-hidden="true">&times;</span>
            </button>
          </div>
          <div class="row justify-content-center">
            <div class="col-xl-8 col-lg-10 col-md-12">
                <div class="modal-body">
                    """
            )
        __M_writer(django_mako_plus.ExpressionPostProcessor(self)(settingsform)
            )
        __M_writer(
            """
                </div>
            </div>
          </div>
            
          <div class="modal-footer">
            <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
            <button type="submit" class="btn btn-primary" id="settingsSubmit">Update Settings</button>
          </div>
        </div>
      </div>
    </div>
  </form>

  <form method="POST" action="/dashboard/edit.addcandidate/"""
            )
        __M_writer(django_mako_plus.ExpressionPostProcessor(self)(poll.id))
        __M_writer(
            """" id="candidateform" enctype="multipart/form-data">
    <div class="modal fade" id="candidateModal"> 
      <div class="modal-dialog" role="document">
        <div class="modal-content">
          <div class="modal-header">
            <h5 class="modal-title" id="exampleModalLabel">Add Candidate</h5>
            <button type="button" class="close" data-dismiss="modal" aria-label="Close">
              <span aria-hidden="true">&times;</span>
            </button>
          </div>
          <div class="row justify-content-center">
            <div class="col-xl-8 col-lg-10 col-md-12">
                <div class="modal-body">
              
                    """
            )
        __M_writer(django_mako_plus.ExpressionPostProcessor(self)(
            candidateform))
        __M_writer(
            """
                </div>
            </div>
          </div>
            
          <div class="modal-footer">
            <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
            <button type="submit" class="btn btn-primary" id="candidateSubmit">Add Candidate</button>
          </div>
        </div>
      </div>
    </div>
  </form>
</div>
"""
            )
        return ''
    finally:
        context.caller_stack._pop_frame()


<mask token>

<mask token>
UNDEFINED = runtime.UNDEFINED
STOP_RENDERING = runtime.STOP_RENDERING
__M_dict_builtin = dict
__M_locals_builtin = locals
_magic_number = 10
_modified_time = 1553974850.4120882
_enable_loop = True
_template_filename = (
    '/Users/tannerwelton/Documents/OneDrive - BYU Office 365/Projects/student_elect/student_elect/dashboard/templates/edit.html'
    )
_template_uri = 'edit.html'
_source_encoding = 'utf-8'
<mask token>
_exports = ['title', 'pageTitle', 'page_content']


def _mako_get_namespace(context, name):
    try:
        return context.namespaces[__name__, name]
    except KeyError:
        _mako_generate_namespaces(context)
        return context.namespaces[__name__, name]


def _mako_generate_namespaces(context):
    pass


def _mako_inherit(template, context):
    _mako_generate_namespaces(context)
    return runtime._inherit_from(context, 'app_base.htm', _template_uri)


def render_body(context, **pageargs):
    __M_caller = context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)

        def page_content():
            return render_page_content(context._locals(__M_locals))

        def pageTitle():
            return render_pageTitle(context._locals(__M_locals))
        poll = context.get('poll', UNDEFINED)

        def title():
            return render_title(context._locals(__M_locals))
        candidateform = context.get('candidateform', UNDEFINED)
        self = context.get('self', UNDEFINED)
        settingsform = context.get('settingsform', UNDEFINED)
        __M_writer = context.writer()
        __M_writer('\n\n')
        if 'parent' not in context._data or not hasattr(context._data[
            'parent'], 'title'):
            context['self'].title(**pageargs)
        __M_writer('\n')
        if 'parent' not in context._data or not hasattr(context._data[
            'parent'], 'pageTitle'):
            context['self'].pageTitle(**pageargs)
        __M_writer('\n\n')
        if 'parent' not in context._data or not hasattr(context._data[
            'parent'], 'page_content'):
            context['self'].page_content(**pageargs)
        __M_writer('\n')
        return ''
    finally:
        context.caller_stack._pop_frame()


def render_title(context, **pageargs):
    __M_caller = context.caller_stack._push_frame()
    try:

        def title():
            return render_title(context)
        __M_writer = context.writer()
        __M_writer('Edit Poll')
        return ''
    finally:
        context.caller_stack._pop_frame()


def render_pageTitle(context, **pageargs):
    __M_caller = context.caller_stack._push_frame()
    try:

        def pageTitle():
            return render_pageTitle(context)
        __M_writer = context.writer()
        __M_writer('Edit Poll')
        return ''
    finally:
        context.caller_stack._pop_frame()


def render_page_content(context, **pageargs):
    __M_caller = context.caller_stack._push_frame()
    try:

        def page_content():
            return render_page_content(context)
        poll = context.get('poll', UNDEFINED)
        candidateform = context.get('candidateform', UNDEFINED)
        self = context.get('self', UNDEFINED)
        settingsform = context.get('settingsform', UNDEFINED)
        __M_writer = context.writer()
        __M_writer(
            """

<div class="container-fluid">

  <div class="row">
    <div class="col-12">

      <div class="card mt-0 mb-0">
        <div class="card-body">
"""
            )
        if poll.status == 'A':
            __M_writer(
                """          <button type="button" class="btn btn-sm btn-warning" id="pollStatus"><i class="material-icons">pause</i> Pause Poll</button>
"""
                )
        else:
            __M_writer(
                """          <button type="button" class="btn btn-sm btn-success" id="pollStatus"><i class="material-icons">play_arrow</i> Start Poll</button>
"""
                )
        __M_writer(
            """          <button type="button" class="btn btn-sm btn-info" id="pollRound"><i class="material-icons">skip_next</i> Next Round</button>
          <button type="button" class="btn btn-sm btn-gray btn-just-icon" data-toggle="modal" data-target="#settingsModal"><i class="material-icons">settings</i></button>
          <button type="button" class="btn btn-sm btn-danger" id="pollEnd" style="float:right;"><i class="material-icons">stop</i> End Poll</button>
    
        </div>
      </div>

      
    </div>
  </div>

  <div class="row">
    <div class="col-12">
      <h3 class="pl-3">Candidates: 
          <button type="button" class="btn btn-sm btn-primary btn-round btn-just-icon" data-toggle="modal" data-target="#candidateModal"><i class="material-icons">add</i></button>
      </h3>
      <div id="candidate-container">Loading Candidates...</div>
      
    </div>


  </div>

  <form method="POST" action="/dashboard/edit.updatesettings/"""
            )
        __M_writer(django_mako_plus.ExpressionPostProcessor(self)(poll.id))
        __M_writer(
            """" id="settingsform" enctype="multipart/form-data">
    <div class="modal fade" id="settingsModal"> 
      <div class="modal-dialog" role="document">
        <div class="modal-content">
          <div class="modal-header">
            <h5 class="modal-title" id="exampleModalLabel">Settings</h5>
            <button type="button" class="close" data-dismiss="modal" aria-label="Close">
              <span aria-hidden="true">&times;</span>
            </button>
          </div>
          <div class="row justify-content-center">
            <div class="col-xl-8 col-lg-10 col-md-12">
                <div class="modal-body">
                    """
            )
        __M_writer(django_mako_plus.ExpressionPostProcessor(self)(settingsform)
            )
        __M_writer(
            """
                </div>
            </div>
          </div>
            
          <div class="modal-footer">
            <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
            <button type="submit" class="btn btn-primary" id="settingsSubmit">Update Settings</button>
          </div>
        </div>
      </div>
    </div>
  </form>

  <form method="POST" action="/dashboard/edit.addcandidate/"""
            )
        __M_writer(django_mako_plus.ExpressionPostProcessor(self)(poll.id))
        __M_writer(
            """" id="candidateform" enctype="multipart/form-data">
    <div class="modal fade" id="candidateModal"> 
      <div class="modal-dialog" role="document">
        <div class="modal-content">
          <div class="modal-header">
            <h5 class="modal-title" id="exampleModalLabel">Add Candidate</h5>
            <button type="button" class="close" data-dismiss="modal" aria-label="Close">
              <span aria-hidden="true">&times;</span>
            </button>
          </div>
          <div class="row justify-content-center">
            <div class="col-xl-8 col-lg-10 col-md-12">
                <div class="modal-body">
              
                    """
            )
        __M_writer(django_mako_plus.ExpressionPostProcessor(self)(
            candidateform))
        __M_writer(
            """
                </div>
            </div>
          </div>
            
          <div class="modal-footer">
            <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
            <button type="submit" class="btn btn-primary" id="candidateSubmit">Add Candidate</button>
          </div>
        </div>
      </div>
    </div>
  </form>
</div>
"""
            )
        return ''
    finally:
        context.caller_stack._pop_frame()


<mask token>

from mako import runtime, filters, cache
UNDEFINED = runtime.UNDEFINED
STOP_RENDERING = runtime.STOP_RENDERING
__M_dict_builtin = dict
__M_locals_builtin = locals
_magic_number = 10
_modified_time = 1553974850.4120882
_enable_loop = True
_template_filename = (
    '/Users/tannerwelton/Documents/OneDrive - BYU Office 365/Projects/student_elect/student_elect/dashboard/templates/edit.html'
    )
_template_uri = 'edit.html'
_source_encoding = 'utf-8'
import django_mako_plus
import django.utils.html
_exports = ['title', 'pageTitle', 'page_content']


def _mako_get_namespace(context, name):
    try:
        return context.namespaces[__name__, name]
    except KeyError:
        _mako_generate_namespaces(context)
        return context.namespaces[__name__, name]


def _mako_generate_namespaces(context):
    pass


def _mako_inherit(template, context):
    _mako_generate_namespaces(context)
    return runtime._inherit_from(context, 'app_base.htm', _template_uri)


def render_body(context, **pageargs):
    __M_caller = context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)

        def page_content():
            return render_page_content(context._locals(__M_locals))

        def pageTitle():
            return render_pageTitle(context._locals(__M_locals))
        poll = context.get('poll', UNDEFINED)

        def title():
            return render_title(context._locals(__M_locals))
        candidateform = context.get('candidateform', UNDEFINED)
        self = context.get('self', UNDEFINED)
        settingsform = context.get('settingsform', UNDEFINED)
        __M_writer = context.writer()
        __M_writer('\n\n')
        if 'parent' not in context._data or not hasattr(context._data[
            'parent'], 'title'):
            context['self'].title(**pageargs)
        __M_writer('\n')
        if 'parent' not in context._data or not hasattr(context._data[
            'parent'], 'pageTitle'):
            context['self'].pageTitle(**pageargs)
        __M_writer('\n\n')
        if 'parent' not in context._data or not hasattr(context._data[
            'parent'], 'page_content'):
            context['self'].page_content(**pageargs)
        __M_writer('\n')
        return ''
    finally:
        context.caller_stack._pop_frame()


def render_title(context, **pageargs):
    __M_caller = context.caller_stack._push_frame()
    try:

        def title():
            return render_title(context)
        __M_writer = context.writer()
        __M_writer('Edit Poll')
        return ''
    finally:
        context.caller_stack._pop_frame()


def render_pageTitle(context, **pageargs):
    __M_caller = context.caller_stack._push_frame()
    try:

        def pageTitle():
            return render_pageTitle(context)
        __M_writer = context.writer()
        __M_writer('Edit Poll')
        return ''
    finally:
        context.caller_stack._pop_frame()


def render_page_content(context, **pageargs):
    __M_caller = context.caller_stack._push_frame()
    try:

        def page_content():
            return render_page_content(context)
        poll = context.get('poll', UNDEFINED)
        candidateform = context.get('candidateform', UNDEFINED)
        self = context.get('self', UNDEFINED)
        settingsform = context.get('settingsform', UNDEFINED)
        __M_writer = context.writer()
        __M_writer(
            """

<div class="container-fluid">

  <div class="row">
    <div class="col-12">

      <div class="card mt-0 mb-0">
        <div class="card-body">
"""
            )
        if poll.status == 'A':
            __M_writer(
                """          <button type="button" class="btn btn-sm btn-warning" id="pollStatus"><i class="material-icons">pause</i> Pause Poll</button>
"""
                )
        else:
            __M_writer(
                """          <button type="button" class="btn btn-sm btn-success" id="pollStatus"><i class="material-icons">play_arrow</i> Start Poll</button>
"""
                )
        __M_writer(
            """          <button type="button" class="btn btn-sm btn-info" id="pollRound"><i class="material-icons">skip_next</i> Next Round</button>
          <button type="button" class="btn btn-sm btn-gray btn-just-icon" data-toggle="modal" data-target="#settingsModal"><i class="material-icons">settings</i></button>
          <button type="button" class="btn btn-sm btn-danger" id="pollEnd" style="float:right;"><i class="material-icons">stop</i> End Poll</button>
    
        </div>
      </div>

      
    </div>
  </div>

  <div class="row">
    <div class="col-12">
      <h3 class="pl-3">Candidates: 
          <button type="button" class="btn btn-sm btn-primary btn-round btn-just-icon" data-toggle="modal" data-target="#candidateModal"><i class="material-icons">add</i></button>
      </h3>
      <div id="candidate-container">Loading Candidates...</div>
      
    </div>


  </div>

  <form method="POST" action="/dashboard/edit.updatesettings/"""
            )
        __M_writer(django_mako_plus.ExpressionPostProcessor(self)(poll.id))
        __M_writer(
            """" id="settingsform" enctype="multipart/form-data">
    <div class="modal fade" id="settingsModal"> 
      <div class="modal-dialog" role="document">
        <div class="modal-content">
          <div class="modal-header">
            <h5 class="modal-title" id="exampleModalLabel">Settings</h5>
            <button type="button" class="close" data-dismiss="modal" aria-label="Close">
              <span aria-hidden="true">&times;</span>
            </button>
          </div>
          <div class="row justify-content-center">
            <div class="col-xl-8 col-lg-10 col-md-12">
                <div class="modal-body">
                    """
            )
        __M_writer(django_mako_plus.ExpressionPostProcessor(self)(settingsform)
            )
        __M_writer(
            """
                </div>
            </div>
          </div>
            
          <div class="modal-footer">
            <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
            <button type="submit" class="btn btn-primary" id="settingsSubmit">Update Settings</button>
          </div>
        </div>
      </div>
    </div>
  </form>

  <form method="POST" action="/dashboard/edit.addcandidate/"""
            )
        __M_writer(django_mako_plus.ExpressionPostProcessor(self)(poll.id))
        __M_writer(
            """" id="candidateform" enctype="multipart/form-data">
    <div class="modal fade" id="candidateModal"> 
      <div class="modal-dialog" role="document">
        <div class="modal-content">
          <div class="modal-header">
            <h5 class="modal-title" id="exampleModalLabel">Add Candidate</h5>
            <button type="button" class="close" data-dismiss="modal" aria-label="Close">
              <span aria-hidden="true">&times;</span>
            </button>
          </div>
          <div class="row justify-content-center">
            <div class="col-xl-8 col-lg-10 col-md-12">
                <div class="modal-body">
              
                    """
            )
        __M_writer(django_mako_plus.ExpressionPostProcessor(self)(
            candidateform))
        __M_writer(
            """
                </div>
            </div>
          </div>
            
          <div class="modal-footer">
            <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
            <button type="submit" class="btn btn-primary" id="candidateSubmit">Add Candidate</button>
          </div>
        </div>
      </div>
    </div>
  </form>
</div>
"""
            )
        return ''
    finally:
        context.caller_stack._pop_frame()


<mask token>

# -*- coding:utf-8 -*-
from mako import runtime, filters, cache
UNDEFINED = runtime.UNDEFINED
STOP_RENDERING = runtime.STOP_RENDERING
__M_dict_builtin = dict
__M_locals_builtin = locals
_magic_number = 10
_modified_time = 1553974850.4120882
_enable_loop = True
_template_filename = '/Users/tannerwelton/Documents/OneDrive - BYU Office 365/Projects/student_elect/student_elect/dashboard/templates/edit.html'
_template_uri = 'edit.html'
_source_encoding = 'utf-8'
import django_mako_plus
import django.utils.html
_exports = ['title', 'pageTitle', 'page_content']


def _mako_get_namespace(context, name):
    try:
        return context.namespaces[(__name__, name)]
    except KeyError:
        _mako_generate_namespaces(context)
        return context.namespaces[(__name__, name)]
def _mako_generate_namespaces(context):
    pass
def _mako_inherit(template, context):
    _mako_generate_namespaces(context)
    return runtime._inherit_from(context, 'app_base.htm', _template_uri)
def render_body(context,**pageargs):
    __M_caller = context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)
        def page_content():
            return render_page_content(context._locals(__M_locals))
        def pageTitle():
            return render_pageTitle(context._locals(__M_locals))
        poll = context.get('poll', UNDEFINED)
        def title():
            return render_title(context._locals(__M_locals))
        candidateform = context.get('candidateform', UNDEFINED)
        self = context.get('self', UNDEFINED)
        settingsform = context.get('settingsform', UNDEFINED)
        __M_writer = context.writer()
        __M_writer('\n\n')
        if 'parent' not in context._data or not hasattr(context._data['parent'], 'title'):
            context['self'].title(**pageargs)
        

        __M_writer('\n')
        if 'parent' not in context._data or not hasattr(context._data['parent'], 'pageTitle'):
            context['self'].pageTitle(**pageargs)
        

        __M_writer('\n\n')
        if 'parent' not in context._data or not hasattr(context._data['parent'], 'page_content'):
            context['self'].page_content(**pageargs)
        

        __M_writer('\n')
        return ''
    finally:
        context.caller_stack._pop_frame()


def render_title(context,**pageargs):
    __M_caller = context.caller_stack._push_frame()
    try:
        def title():
            return render_title(context)
        __M_writer = context.writer()
        __M_writer('Edit Poll')
        return ''
    finally:
        context.caller_stack._pop_frame()


def render_pageTitle(context,**pageargs):
    __M_caller = context.caller_stack._push_frame()
    try:
        def pageTitle():
            return render_pageTitle(context)
        __M_writer = context.writer()
        __M_writer('Edit Poll')
        return ''
    finally:
        context.caller_stack._pop_frame()


def render_page_content(context,**pageargs):
    __M_caller = context.caller_stack._push_frame()
    try:
        def page_content():
            return render_page_content(context)
        poll = context.get('poll', UNDEFINED)
        candidateform = context.get('candidateform', UNDEFINED)
        self = context.get('self', UNDEFINED)
        settingsform = context.get('settingsform', UNDEFINED)
        __M_writer = context.writer()
        __M_writer('\n\n<div class="container-fluid">\n\n  <div class="row">\n    <div class="col-12">\n\n      <div class="card mt-0 mb-0">\n        <div class="card-body">\n')
        if poll.status == 'A':
            __M_writer('          <button type="button" class="btn btn-sm btn-warning" id="pollStatus"><i class="material-icons">pause</i> Pause Poll</button>\n')
        else:
            __M_writer('          <button type="button" class="btn btn-sm btn-success" id="pollStatus"><i class="material-icons">play_arrow</i> Start Poll</button>\n')
        __M_writer('          <button type="button" class="btn btn-sm btn-info" id="pollRound"><i class="material-icons">skip_next</i> Next Round</button>\n          <button type="button" class="btn btn-sm btn-gray btn-just-icon" data-toggle="modal" data-target="#settingsModal"><i class="material-icons">settings</i></button>\n          <button type="button" class="btn btn-sm btn-danger" id="pollEnd" style="float:right;"><i class="material-icons">stop</i> End Poll</button>\n    \n        </div>\n      </div>\n\n      \n    </div>\n  </div>\n\n  <div class="row">\n    <div class="col-12">\n      <h3 class="pl-3">Candidates: \n          <button type="button" class="btn btn-sm btn-primary btn-round btn-just-icon" data-toggle="modal" data-target="#candidateModal"><i class="material-icons">add</i></button>\n      </h3>\n      <div id="candidate-container">Loading Candidates...</div>\n      \n    </div>\n\n\n  </div>\n\n  <form method="POST" action="/dashboard/edit.updatesettings/')
        __M_writer(django_mako_plus.ExpressionPostProcessor(self)( poll.id ))
        __M_writer('" id="settingsform" enctype="multipart/form-data">\n    <div class="modal fade" id="settingsModal"> \n      <div class="modal-dialog" role="document">\n        <div class="modal-content">\n          <div class="modal-header">\n            <h5 class="modal-title" id="exampleModalLabel">Settings</h5>\n            <button type="button" class="close" data-dismiss="modal" aria-label="Close">\n              <span aria-hidden="true">&times;</span>\n            </button>\n          </div>\n          <div class="row justify-content-center">\n            <div class="col-xl-8 col-lg-10 col-md-12">\n                <div class="modal-body">\n                    ')
        __M_writer(django_mako_plus.ExpressionPostProcessor(self)( settingsform ))
        __M_writer('\n                </div>\n            </div>\n          </div>\n            \n          <div class="modal-footer">\n            <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>\n            <button type="submit" class="btn btn-primary" id="settingsSubmit">Update Settings</button>\n          </div>\n        </div>\n      </div>\n    </div>\n  </form>\n\n  <form method="POST" action="/dashboard/edit.addcandidate/')
        __M_writer(django_mako_plus.ExpressionPostProcessor(self)( poll.id ))
        __M_writer('" id="candidateform" enctype="multipart/form-data">\n    <div class="modal fade" id="candidateModal"> \n      <div class="modal-dialog" role="document">\n        <div class="modal-content">\n          <div class="modal-header">\n            <h5 class="modal-title" id="exampleModalLabel">Add Candidate</h5>\n            <button type="button" class="close" data-dismiss="modal" aria-label="Close">\n              <span aria-hidden="true">&times;</span>\n            </button>\n          </div>\n          <div class="row justify-content-center">\n            <div class="col-xl-8 col-lg-10 col-md-12">\n                <div class="modal-body">\n              \n                    ')
        __M_writer(django_mako_plus.ExpressionPostProcessor(self)( candidateform ))
        __M_writer('\n                </div>\n            </div>\n          </div>\n            \n          <div class="modal-footer">\n            <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>\n            <button type="submit" class="btn btn-primary" id="candidateSubmit">Add Candidate</button>\n          </div>\n        </div>\n      </div>\n    </div>\n  </form>\n</div>\n')
        return ''
    finally:
        context.caller_stack._pop_frame()


"""
__M_BEGIN_METADATA
{"filename": "/Users/tannerwelton/Documents/OneDrive - BYU Office 365/Projects/student_elect/student_elect/dashboard/templates/edit.html", "uri": "edit.html", "source_encoding": "utf-8", "line_map": {"29": 0, "44": 1, "49": 3, "54": 4, "59": 98, "65": 3, "71": 3, "77": 4, "83": 4, "89": 6, "99": 6, "100": 15, "101": 16, "102": 17, "103": 18, "104": 20, "105": 43, "106": 43, "107": 56, "108": 56, "109": 70, "110": 70, "111": 84, "112": 84, "118": 112}}
__M_END_METADATA
"""
