From 31836b59799f3b6fc380b17279c137b4434108a6 Mon Sep 17 00:00:00 2001 From: Ailson da Cruz Date: Sat, 10 Sep 2016 22:59:14 -0300 Subject: [PATCH] Adding breadcrumbs to edit profile template and fix error #25 #7 --- users/templates/users/edit_profile.html | 27 ++++++++++++++++++++------- 1 file changed, 20 insertions(+), 7 deletions(-) diff --git a/users/templates/users/edit_profile.html b/users/templates/users/edit_profile.html index c6b81ba..3124ff8 100644 --- a/users/templates/users/edit_profile.html +++ b/users/templates/users/edit_profile.html @@ -1,13 +1,14 @@ -{% extends 'app/base.html' %} +{% extends 'users/profile.html' %} {% load static i18n %} {% load widget_tweaks %} +{% load django_bootstrap_breadcrumbs %} {% block breadcrumbs %} - + + {{ block.super }} + {% breadcrumb 'Edit' 'users:update_profile' %} + {% endblock %} {% block sidebar %} @@ -36,9 +37,21 @@
{% csrf_token %} {% for field in form %} -
+
- {% render_field field class='form-control input-sm' %} + {% if field.auto_id == 'id_image' %} + {% render_field field class='form-control input-sm' %} +
+ + + + +
+ {% else %} + {% render_field field class='form-control input-sm' %} + {% endif %} {{ field.help_text }} {% if field.errors.length > 0 %}