From b7641548d22183599c6587d3907bc031396ddd42 Mon Sep 17 00:00:00 2001 From: Ailson da Cruz Date: Fri, 16 Sep 2016 02:52:36 -0300 Subject: [PATCH] Fixing template error #52 --- users/templates/list_users.html | 2 +- users/templates/users/create.html | 7 ++++++- users/templates/users/update.html | 117 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++---------------------------------------------- 3 files changed, 78 insertions(+), 48 deletions(-) diff --git a/users/templates/list_users.html b/users/templates/list_users.html index 29c1d0a..fc15825 100644 --- a/users/templates/list_users.html +++ b/users/templates/list_users.html @@ -48,7 +48,7 @@

{% trans 'Email' %}: {{ acc.email }}

{% trans 'Contact' %}: {{ acc.phone }}

- {% trans 'Edit' %} + {% trans 'Edit' %} {% trans 'Delete' %}
diff --git a/users/templates/users/create.html b/users/templates/users/create.html index cf82964..914d378 100644 --- a/users/templates/users/create.html +++ b/users/templates/users/create.html @@ -71,7 +71,12 @@ {% endif %} {% endfor %} - +
+ +
+
+ {% trans 'Cancel' %} +
diff --git a/users/templates/users/update.html b/users/templates/users/update.html index 662a6f5..2bd5aed 100644 --- a/users/templates/users/update.html +++ b/users/templates/users/update.html @@ -1,60 +1,85 @@ -{% extends 'app/base.html' %} +{% extends 'list_users.html' %} {% load static i18n %} {% load widget_tweaks %} +{% load django_bootstrap_breadcrumbs %} + {% block breadcrumbs %} - -{% endblock %} -{% block sidebar %} -
- - {% trans 'System Users' %} - - - {% trans 'New Account' %} - - - {% trans 'Send Mail' %} - -
+ {{ block.super }} + {% breadcrumb 'Update User' 'users:update' %} + {% endblock %} + {% block content %} - + {% if messages %} + {% for message in messages %} + + {% endfor %} + {% endif %} -
- {% csrf_token %} - {% for field in form %} -
- - {% render_field field class='form-control input-sm' %} - {{ field.help_text }} - {% if field.errors.length > 0 %} - +

{% endblock %} -- libgit2 0.21.2