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): if self.request.user.has_module_perms(AppConfig.label):
btn_registrar = ''' btn_registrar = '''
<a href="%s" class="btn btn-primary" <form action="%s">
role="button"> <input type="submit" class="btn btn-primary"
Registrar Votação</a>''' % (url) value="Registrar Votação" />
</form>
''' % (url)
obj.resultado = btn_registrar obj.resultado = btn_registrar
else: else:
url = reverse('sapl.sessao:abrir_votacao', kwargs={ 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); setTimeout(function(){ window.location.reload(true) }, 500);
} }
}); });
$(window).on('beforeunload', function () {
$('tbody').sortable('disable');
$("input[type=submit], input[type=button]").prop("disabled", "disabled");
});
</script> </script>
{% endblock %} {% endblock %}

Loading…
Cancel
Save