From 2e4b09fecd5f4c500848e342d9e3188428dfe008 Mon Sep 17 00:00:00 2001 From: Anna Sidwell Date: Mon, 4 Mar 2019 23:17:12 +1100 Subject: [PATCH] Start reworking user page --- assets/css/ojuso.css | 2 ++ ojusomap/templates/auth/user_detail.html | 15 +++++++------- ojusomap/templates/auth/user_form.html | 26 ++++++++++++++++-------- ojusomap/templates/base.html | 6 ++---- 4 files changed, 29 insertions(+), 20 deletions(-) diff --git a/assets/css/ojuso.css b/assets/css/ojuso.css index 345f519..efe1acc 100644 --- a/assets/css/ojuso.css +++ b/assets/css/ojuso.css @@ -28,6 +28,8 @@ h1 { .ojuso-yellow { color: #f9db3c; } .ojuso-blue { color: #008ad5; } +.mx-1 { margin-left: 10px; } + /* * LAYOUT diff --git a/ojusomap/templates/auth/user_detail.html b/ojusomap/templates/auth/user_detail.html index 892fd9f..17823cc 100644 --- a/ojusomap/templates/auth/user_detail.html +++ b/ojusomap/templates/auth/user_detail.html @@ -1,4 +1,5 @@ {% extends "base.html" %} +{% load avatar_tags %} {% load static %} {% load i18n %} @@ -10,10 +11,12 @@
-

{{ object.username }}

- {% if object.name %} -

{{ object.name }}

+ + + {% if object.first_name and object.last_name %} +

{{ object.first_name }} {{ object.last_name }} ({{ object.username }})

{% endif %} +
@@ -22,13 +25,11 @@
- {% endif %} diff --git a/ojusomap/templates/auth/user_form.html b/ojusomap/templates/auth/user_form.html index 51f2d6d..389978f 100644 --- a/ojusomap/templates/auth/user_form.html +++ b/ojusomap/templates/auth/user_form.html @@ -4,14 +4,22 @@ {% block title %}{{ user.username }}{% endblock %} {% block content %} -

{{ user.username }}

-
- {% csrf_token %} - {{ form|crispy }} -
-
- -
+
+
+
+ +

{{ user.username }}

+ + {% csrf_token %} + {{ form|crispy }} +
+
+ +
+
+ +
- +
+
{% endblock %} \ No newline at end of file diff --git a/ojusomap/templates/base.html b/ojusomap/templates/base.html index 302db3f..4bb329d 100644 --- a/ojusomap/templates/base.html +++ b/ojusomap/templates/base.html @@ -75,10 +75,8 @@ {{user}}