From 0d65f5318a49db3a8942c48019a0352f113f106d Mon Sep 17 00:00:00 2001 From: Alexis Lahouze Date: Sun, 27 Mar 2016 23:06:00 +0200 Subject: [PATCH] Externalize login template. --- accountant/frontend/static/js/app.js | 16 +--------------- .../frontend/static/views/login.tmpl.html | 17 +++++++++++++++++ 2 files changed, 18 insertions(+), 15 deletions(-) create mode 100644 accountant/frontend/static/views/login.tmpl.html diff --git a/accountant/frontend/static/js/app.js b/accountant/frontend/static/js/app.js index 1a2f2f8..628d9f2 100644 --- a/accountant/frontend/static/js/app.js +++ b/accountant/frontend/static/js/app.js @@ -109,21 +109,7 @@ angular.module('accountant', [ $ngBootbox.customDialog({ title: 'Authentification requise', - message: '
' + - '
' + - ' ' + - '
' + - ' ' + - '
' + - '
' + - '
' + - ' ' + - '
' + - ' ' + - '
' + - '
' + - ' ' + - '
', + templateUrl: 'views/login.tmpl.html', buttons: { login: { label: 'Login', diff --git a/accountant/frontend/static/views/login.tmpl.html b/accountant/frontend/static/views/login.tmpl.html new file mode 100644 index 0000000..a381d06 --- /dev/null +++ b/accountant/frontend/static/views/login.tmpl.html @@ -0,0 +1,17 @@ + +
+
+ +
+ +
+
+
+ +
+ +
+
+
+