Browse Source

Fix #1690 fix #1691 (#1703)

pull/1704/head
VictorFabreF 7 years ago
committed by Edward
parent
commit
7e5cc521e2
  1. 8
      sapl/sessao/views.py
  2. 5
      sapl/templates/sessao/expedientemateria_list.html

8
sapl/sessao/views.py

@ -432,9 +432,11 @@ class ExpedienteMateriaCrud(MasterDetailCrud):
if self.request.user.has_module_perms(AppConfig.label):
btn_registrar = '''
<a href="%s" class="btn btn-primary"
role="button">
Registrar Votação</a>''' % (url)
<form action="%s">
<input type="submit" class="btn btn-primary"
value="Registrar Votação" />
</form>
''' % (url)
obj.resultado = btn_registrar
else:
url = reverse('sapl.sessao:abrir_votacao', kwargs={

5
sapl/templates/sessao/expedientemateria_list.html

@ -45,6 +45,11 @@
setTimeout(function(){ window.location.reload(true) }, 500);
}
});
$(window).on('beforeunload', function () {
$('tbody').sortable('disable');
$("input[type=submit], input[type=button]").prop("disabled", "disabled");
});
</script>
{% endblock %}

Loading…
Cancel
Save