From c6dc030af0c2a10514dc9c0046b82d5e0de3019d Mon Sep 17 00:00:00 2001 From: Fergal Moran Date: Wed, 19 Jun 2013 15:23:54 +0100 Subject: [PATCH] Migrated login modal to new dlg system --- static/js/app/views/header.coffee | 2 +- static/js/app/views/header.js | 2 +- templates/views/dlg/LoginView.html | 31 ++++++++++++++++++++++++++++++ 3 files changed, 33 insertions(+), 2 deletions(-) create mode 100644 templates/views/dlg/LoginView.html diff --git a/static/js/app/views/header.coffee b/static/js/app/views/header.coffee index aad60a7..fa32ff0 100644 --- a/static/js/app/views/header.coffee +++ b/static/js/app/views/header.coffee @@ -21,7 +21,7 @@ define ["underscore", "backbone", "vent", "utils", "text!/tpl/HeaderView"], @listenTo vent, "mix:pause", @trackPaused login: -> - utils.modal "tpl/LoginView" + utils.modal "dlg/LoginView" logout: -> utils.showAlert "Success", "You are now logged out" diff --git a/static/js/app/views/header.js b/static/js/app/views/header.js index d694ae4..eb9223e 100644 --- a/static/js/app/views/header.js +++ b/static/js/app/views/header.js @@ -39,7 +39,7 @@ Code provided under the BSD License: }; HeaderView.prototype.login = function() { - return utils.modal("tpl/LoginView"); + return utils.modal("dlg/LoginView"); }; HeaderView.prototype.logout = function() { diff --git a/templates/views/dlg/LoginView.html b/templates/views/dlg/LoginView.html new file mode 100644 index 0000000..782b821 --- /dev/null +++ b/templates/views/dlg/LoginView.html @@ -0,0 +1,31 @@ +{% extends 'views/dlg/_DialogBase.html' %} + +{% load account %} +{% load socialaccount %} +{% block header %} +

Login to Deep South Sounds

+{% endblock %} +{% block content %} + +
+ + + +
+
+
Please note that using a social account
does not give us access to your private information
+
+{% endblock %} +{% block primarybutton %}Nah...{% endblock %} \ No newline at end of file