diff --git a/sapl/painel/views.py b/sapl/painel/views.py index dbcf03444..99bc06961 100644 --- a/sapl/painel/views.py +++ b/sapl/painel/views.py @@ -44,7 +44,7 @@ def ordena_cronometro(request): c = Cronometro.objects.get(id=o) c.ordenacao = index + 1 c.save() - return JsonResponse({'r':ordem}) + return JsonResponse({'type':'success','msg':'Ordem mudada com sucesso.'}) class PainelConfigCrud(CrudAux): model = PainelConfig diff --git a/sapl/templates/painel/lista_cronometros.html b/sapl/templates/painel/lista_cronometros.html index c3cb70dce..11e97d9fd 100644 --- a/sapl/templates/painel/lista_cronometros.html +++ b/sapl/templates/painel/lista_cronometros.html @@ -3,6 +3,7 @@ {% load i18n common_tags crispy_forms_tags%} {% block container_table_list %} + {% if not rows %}
{{ NO_ENTRIES_MSG }}
{% else %} @@ -13,27 +14,16 @@