From 110be7664bdb121d46f4e717015407c15eb5b584 Mon Sep 17 00:00:00 2001 From: victor <2585414795@qq.com> Date: Sun, 17 Feb 2019 14:06:41 +0800 Subject: [PATCH] create auth package and update template files --- .idea/workspace.xml | 156 +++++++++++-------- app/__init__.py | 2 + app/__pycache__/__init__.cpython-35.pyc | Bin 864 -> 951 bytes app/auth/__init__.py | 6 + app/auth/__pycache__/__init__.cpython-35.pyc | Bin 0 -> 264 bytes app/auth/__pycache__/views.cpython-35.pyc | Bin 0 -> 934 bytes app/auth/views.py | 22 +++ app/templates/auth/login.html | 9 ++ app/templates/base.html | 3 + app/templates/macro/wtf.html | 16 +- 10 files changed, 139 insertions(+), 75 deletions(-) create mode 100644 app/auth/__pycache__/__init__.cpython-35.pyc create mode 100644 app/auth/__pycache__/views.cpython-35.pyc diff --git a/.idea/workspace.xml b/.idea/workspace.xml index cd8444b..cb24001 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -2,15 +2,12 @@ - - - - - - - - - + + + + + + @@ -91,17 +96,19 @@ @@ -133,33 +140,27 @@ - - - - - - - + - - + + - + diff --git a/app/templates/macro/wtf.html b/app/templates/macro/wtf.html index 162a1e9..a6539b7 100644 --- a/app/templates/macro/wtf.html +++ b/app/templates/macro/wtf.html @@ -8,11 +8,11 @@ {% endmacro %} -{#{% macro loginForm(form) %}#} -{#
#} -{# {{ form.hidden_tag() }}#} -{# {{ form.email() }}#} -{# {{ form.password() }}#} -{# {{ form.submit() }}#} -{#
#} -{#{% endmacro %}#} \ No newline at end of file +{% macro loginForm(form) %} +
+ {{ form.hidden_tag() }} + {{ form.email(class='form-control', placeholder='Your registered email') }} + {{ form.password(class='form-control', placeholder='Password') }} + {{ form.submit(class='btn btn-primary btn-block') }} +
+{% endmacro %} \ No newline at end of file