Sistema de Apoio ao Processo Legislativo
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
1.0 KiB

{% extends "sessao/sessaoplenaria_detail.html" %}
{% load i18n %}
{% block detail_content %}
<form method="POST">
{% csrf_token %}
<ul class="small-block-grid-2 medium-block-grid-2 large-block-grid-2">
<li>Presença</li>
<li>Parlamentar</li>
</ul>
<ul class="small-block-grid-1 medium-block-grid-1 large-block-grid-1">
<li><input type="checkbox" onClick="checkAll(this)" /> Marcar/Desmarcar Todos</li>
</ul>
{{formset}}
{% for fieldname in view.get_parlamentares %}
<ul class="small-block-grid-2 medium-block-grid-2 large-block-grid-2">
<li><input type="checkbox" name="presenca"/></li>
<li><label for="parlamentar">{{ fieldname }}</label></li>
</ul>
{% endfor %}
<br />
<input type="submit" value="Salvar" />
</form>
{% endblock detail_content %}
{% block foot_js %}
<script language="JavaScript">
function checkAll(source) {
checkboxes = document.getElementsByName('presenca');
for(var i=0, n=checkboxes.length;i<n;i++) {
checkboxes[i].checked = source.checked;
}
}
</script>
{% endblock %}