mirror of https://github.com/interlegis/sapl.git
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.
31 lines
925 B
31 lines
925 B
{% extends "protocoloadm/protocoloadm_detail.html" %}
|
|
{% load i18n %}
|
|
{% load crispy_forms_tags %}
|
|
|
|
|
|
{% block actions %}
|
|
|
|
{{ block.super }}
|
|
<div class="actions btn-group btn-group-sm mt-2" role="group">
|
|
<a href="{% url 'sapl.protocoloadm:protocolo' %}" class="btn btn-outline-primary">{% trans 'Fazer nova pesquisa' %}</a>
|
|
</div>
|
|
{% endblock %}
|
|
|
|
{% block detail_content %}
|
|
{% crispy form %}
|
|
{% endblock detail_content %}
|
|
|
|
{% block extra_js %}
|
|
<script language="Javascript">
|
|
$(document).ready(function() {
|
|
|
|
$("input[name=data_hora_manual]").change(function(event) {
|
|
if (this.value === 'True' && this.checked)
|
|
$("#protocolo_data_hora_manual").show();
|
|
else if (this.value === 'False' && this.checked)
|
|
$("#protocolo_data_hora_manual").hide();
|
|
});
|
|
$("input[name=data_hora_manual]").trigger('change')
|
|
});
|
|
</script>
|
|
{% endblock %}
|
|
|