|
@ -93,11 +93,19 @@ |
|
|
<fieldset> |
|
|
<fieldset> |
|
|
<legend>2. Selecione as matérias para primeira tramitação:</legend> |
|
|
<legend>2. Selecione as matérias para primeira tramitação:</legend> |
|
|
<table class="table table-striped table-hover"> |
|
|
<table class="table table-striped table-hover"> |
|
|
|
|
|
<div class="controls"> |
|
|
|
|
|
<div class="checkbox"> |
|
|
|
|
|
<label for="id_check_all"> |
|
|
|
|
|
<input type="checkbox" id="id_check_all" onchange="checkAll(event)" /> Marcar/Desmarcar Todos |
|
|
|
|
|
</label> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
<thead> |
|
|
<thead> |
|
|
<tr><th>Matéria</th></tr> |
|
|
<tr><th>Matéria</th></tr> |
|
|
</thead> |
|
|
</thead> |
|
|
<tbody> |
|
|
<tbody> |
|
|
{% for materia in object_list %} |
|
|
{% for materia in object_list %} |
|
|
|
|
|
|
|
|
<tr> |
|
|
<tr> |
|
|
<td> |
|
|
<td> |
|
|
<input type="checkbox" name="materia_id" value="{{materia.id}}" {% if check %} checked {% endif %}/> |
|
|
<input type="checkbox" name="materia_id" value="{{materia.id}}" {% if check %} checked {% endif %}/> |
|
@ -115,3 +123,13 @@ |
|
|
{% endif %} |
|
|
{% endif %} |
|
|
{% endif %} |
|
|
{% endif %} |
|
|
{% endblock detail_content %} |
|
|
{% endblock detail_content %} |
|
|
|
|
|
{% block extra_js %} |
|
|
|
|
|
<script language="JavaScript"> |
|
|
|
|
|
function checkAll(event) { |
|
|
|
|
|
$('[name=materia_id]').each(function() { |
|
|
|
|
|
$(this).prop('checked', event.target.checked ? 'checked': null); |
|
|
|
|
|
$(this).trigger('click'); |
|
|
|
|
|
}); |
|
|
|
|
|
} |
|
|
|
|
|
</script> |
|
|
|
|
|
{% endblock %} |
|
|