{{ _('Your account was sucessfully closed!') }}
+{{ _('We\'re sorry to see you go.') }}
+diff --git a/kitsune/sumo/static/js/ui.js b/kitsune/sumo/static/js/ui.js
index f464e7e1633..a02a0cc8e5d 100644
--- a/kitsune/sumo/static/js/ui.js
+++ b/kitsune/sumo/static/js/ui.js
@@ -1,5 +1,5 @@
/*jshint*/
-/*global Modernizr*/
+/*global gettext, Modernizr*/
;(function($) {
"use strict";
@@ -94,6 +94,10 @@
$('body').on('click', foldingSelectors + ' header', function() {
$(this).closest(foldingSelectors).toggleClass('collapsed');
});
+
+ $('form[data-confirm]').on('submit', function() {
+ return confirm($(this).data('confirm-text'));
+ });
});
$(window).load(function() {
diff --git a/kitsune/users/models.py b/kitsune/users/models.py
index b6cb3883b62..2018c9a49fb 100644
--- a/kitsune/users/models.py
+++ b/kitsune/users/models.py
@@ -92,6 +92,18 @@ def __unicode__(self):
def get_absolute_url(self):
return reverse('users.profile', args=[self.user_id])
+ def clear(self):
+ """Clears out the users profile"""
+ self.name = ''
+ self.public_email = False
+ self.avatar = None
+ self.bio = ''
+ self.website = ''
+ self.twitter = ''
+ self.facebook = ''
+ self.irc_handle = ''
+ self.city = ''
+
class Setting(ModelBase):
"""User specific value per setting"""
diff --git a/kitsune/users/templates/users/close_account.html b/kitsune/users/templates/users/close_account.html
new file mode 100644
index 00000000000..5e20717cc12
--- /dev/null
+++ b/kitsune/users/templates/users/close_account.html
@@ -0,0 +1,11 @@
+{% extends 'base.html' %}
+
+{% set title = 'Your account was closed' %}
+{% set crumbs = [(None, title)] %}
+
+{% block content %}
+ {{ _('We\'re sorry to see you go.') }}{{ _('Your account was sucessfully closed!') }}
+