diff --git a/amadeus/templates/base.html b/amadeus/templates/base.html index fd24c7f..13a20d9 100644 --- a/amadeus/templates/base.html +++ b/amadeus/templates/base.html @@ -44,7 +44,8 @@ - + + @@ -151,7 +152,7 @@
  • {% trans 'Profile' %}
  • {% trans 'Edit Profile' %}
  • {% trans 'Change Password' %}
  • -
  • {% trans 'Delete Account' %}
  • +
  • {% trans 'Delete Account' %}
  • {% trans 'Logout' %}
  • @@ -306,6 +307,9 @@ }); +
    + +
    diff --git a/users/templates/users/delete.html b/users/templates/users/delete.html index f0d2b60..065a15f 100644 --- a/users/templates/users/delete.html +++ b/users/templates/users/delete.html @@ -1,36 +1,23 @@ -{% extends 'users/list.html' %} +{% load static i18n permission_tags %} -{% load static i18n %} -{% load widget_tweaks %} -{% load django_bootstrap_breadcrumbs %} - -{% block breadcrumbs %} - {{ block.super }} - {% trans 'Delete User' as bread %} - {% breadcrumb bread 'users:delete' %} -{% endblock %} - -{% block content %} -
    -
    -
    -
    - {% csrf_token %} -

    {% trans 'Are you sure you want delete the user' %}: {{ acc }}?

    -

    {% trans 'All data will be lost and havent how recover it.' %}

    -
    -
    -
    - -
    - -
    -
    -
    -
    -
    + + diff --git a/users/templates/users/delete_account.html b/users/templates/users/delete_account.html index 65cc9d3..0df5bb9 100644 --- a/users/templates/users/delete_account.html +++ b/users/templates/users/delete_account.html @@ -1,36 +1,23 @@ -{% extends 'users/profile.html' %} +{% load static i18n permission_tags %} -{% load static i18n %} -{% load widget_tweaks %} -{% load django_bootstrap_breadcrumbs %} - -{% block breadcrumbs %} - {{ block.super }} - {% trans 'Remove Account' as bread %} - {% breadcrumb bread 'users:remove_acc' %} -{% endblock %} - -{% block content %} -
    -
    -
    -
    - {% csrf_token %} -

    {% trans 'Are you sure you want delete your account?' %}

    -

    {% trans 'All data will be lost and havent how recover it.' %}

    -
    -
    -
    - -
    - -
    -
    -
    -
    -
    + + diff --git a/users/templates/users/list.html b/users/templates/users/list.html index e2a2b52..28cab42 100644 --- a/users/templates/users/list.html +++ b/users/templates/users/list.html @@ -54,7 +54,7 @@

    {% trans 'Name' %}: {{ acc }}

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

    -

    {% trans 'Description' %}: +

    {% trans 'Description' %}: {% autoescape off %} {{ acc.description|default:_("Not Informed")|striptags|truncatechars:300 }} {% endautoescape %} @@ -63,7 +63,7 @@

    @@ -77,4 +77,7 @@
    {% endif %} + {% endblock %} diff --git a/users/views.py b/users/views.py index ae6c866..20146c5 100644 --- a/users/views.py +++ b/users/views.py @@ -247,6 +247,7 @@ class DeleteView(braces_mixins.LoginRequiredMixin, LogMixin, generic.DeleteView) def get_context_data(self, **kwargs): context = super(DeleteView, self).get_context_data(**kwargs) context['title'] = _('Delete Account') + context['email'] = self.kwargs.get('email', None) return context -- libgit2 0.21.2