{% extends "base.html" %} {% block back-links %}
{% endblock %} {% block big-links %}
{% ifmemberof %} {% endifmemberof %}
{% endblock %} {% block content %}
{% csrf-field %} {% for record in records %} {% endfor %}
Elector Raised Issue Method  
{{ record.elector_id_expanded }} {{ record.raised}} {{ record.issue_id_expanded }} {{ record.method_id_expanded }} View
{% endblock %} {% block extra-script %} var form = document.getElementById('list-followuprequests-Followuprequests'); var ow = document.getElementById('offset'); var lw = document.getElementById('limit'); form.addEventListener('submit', function() { ow.value='0'; }); var prevSelector = document.getElementById('prev-selector'); if (prevSelector != null) { prevSelector.addEventListener('click', function () { if (parseInt(ow.value)===0) { window.location = '{{servlet-context}}/admin'; } else { ow.value=(parseInt(ow.value)-parseInt(lw.value)); console.log('Updated offset to ' + ow.value); form.submit(); } }); } document.getElementById('next-selector').addEventListener('click', function () { ow.value=(parseInt(ow.value)+parseInt(lw.value)); console.log('Updated offset to ' + ow.value); form.submit(); }); {% endblock %}