|
|
|
@ -3,9 +3,8 @@ |
|
|
|
{% load crispy_forms_tags %} |
|
|
|
|
|
|
|
{% block actions %} |
|
|
|
|
|
|
|
{{ block.super }} |
|
|
|
<div class="actions btn-group float-right grid-gutter-width-right " role="group"> |
|
|
|
<div class="actions btn-group btn-group-sm" role="group"> |
|
|
|
<a href="{% url 'sapl.protocoloadm:protocolo' %}" class="btn btn-outline-primary">{% trans 'Fazer nova pesquisa' %}</a> |
|
|
|
</div> |
|
|
|
{% endblock %} |
|
|
|
@ -16,7 +15,6 @@ |
|
|
|
|
|
|
|
{% block extra_js %} |
|
|
|
<script language="Javascript"> |
|
|
|
|
|
|
|
function compare(a, b) { |
|
|
|
if (a.text < b.text) |
|
|
|
return -1; |
|
|
|
@ -26,11 +24,12 @@ |
|
|
|
} |
|
|
|
|
|
|
|
$(document).ready(function() { |
|
|
|
|
|
|
|
$("input[name=data_hora_manual]").change(function(event) { |
|
|
|
if (this.value === 'True' && this.checked) |
|
|
|
$("#protocolo_data_hora_manual").removeClass('hidden'); |
|
|
|
$("#protocolo_data_hora_manual").show(); |
|
|
|
else if (this.value === 'False' && this.checked) |
|
|
|
$("#protocolo_data_hora_manual").addClass('hidden'); |
|
|
|
$("#protocolo_data_hora_manual").hide(); |
|
|
|
}); |
|
|
|
$("input[name=data_hora_manual]").trigger('change') |
|
|
|
|
|
|
|
|