mirror of https://github.com/interlegis/sapl.git
Eduardo Edson Batista Cordeiro Alves
9 years ago
4 changed files with 106 additions and 4 deletions
@ -0,0 +1,38 @@ |
|||
{% 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> |
|||
|
|||
{% for parlamentar, check in view.get_parlamentares %} |
|||
<ul class="small-block-grid-2 medium-block-grid-2 large-block-grid-2"> |
|||
<li><input type="checkbox" name="presenca" value="{{ parlamentar.id }}" {% if check %} checked {% endif %}/></li> |
|||
<li><label for="parlamentar">{{ parlamentar }}</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 %} |
Loading…
Reference in new issue