diff --git a/bag_transfer/static/css/styles.css b/bag_transfer/static/css/styles.css index e63e2a4f..ddeb822d 100644 --- a/bag_transfer/static/css/styles.css +++ b/bag_transfer/static/css/styles.css @@ -3,10 +3,10 @@ } main .container { - margin: 0 15px; + margin: 0 15px 30px; @media screen and (min-width: 580px) { - margin: 0 30px; + margin: 0 30px 30px; } } @@ -71,6 +71,19 @@ h1 { padding: 18px; } +.card-list { + grid-gap: 30px; + + @media screen and (min-width: 1024px) { + grid-template-columns: repeat(2, 1fr); + } +} + +.user__actions { + display: flex; + margin-top: auto; +} + /** * Styles for clickable table rows **/ @@ -146,7 +159,7 @@ h1 { display: none; } -table div.badge { +div.badge { width: fit-content; } diff --git a/bag_transfer/templates/transfers/detail.html b/bag_transfer/templates/transfers/detail.html index 376e278b..e922660e 100644 --- a/bag_transfer/templates/transfers/detail.html +++ b/bag_transfer/templates/transfers/detail.html @@ -5,7 +5,7 @@ {% block title_actions %} {% if request.user.is_staff %} - + Appraisal Queue @@ -14,7 +14,7 @@ {% block content %} -
+
{{ object.get_process_status_display }}
diff --git a/bag_transfer/templates/users/detail.html b/bag_transfer/templates/users/detail.html index e7c09fee..7cd658d8 100644 --- a/bag_transfer/templates/users/detail.html +++ b/bag_transfer/templates/users/detail.html @@ -5,76 +5,58 @@ {% block h1_title %}{{page_title}}{% endblock %} {% block content %} -
-
- -
-
- -

- {% if object.first_name %}{{object.first_name}} {{object.last_name}} {{ object.username }} - {% else %} - {{ object.username }} - {% endif %} -

- - {% if object.organization %} -

- {{ object.organization.name }} -

- {% endif %} - - -
    -
  • - Last login {{ object.last_login }} -
  • -
- - {% if request.user.is_manager or request.user.is_superuser %} - Edit User - {% if object.cognito_status == 'FORCE_CHANGE_PASSWORD' %} - - {% endif %} - {% endif %} - {% if request.user.pk == object.pk %} - Change Password - {% endif %} - -
+
+
+

+ {% if object.first_name %}{{object.first_name}} {{object.last_name}} ({{ object.username }}) + {% else %}{{ object.username }} + {% endif %} +

+ + {% if object.organization %} + {{ object.organization.name }} + {% endif %} +

Last login: {{ object.last_login }}

+
+ {% if request.user.is_manager or request.user.is_superuser %} + Edit User + {% endif %} + {% if object.cognito_status == 'FORCE_CHANGE_PASSWORD' %} + + {% endif %} + {% if request.user.pk == object.pk %} + Change Password + {% endif %}
- -
-
-

Details

+
+
+

Details

+
+
+
Active?
+
{% if object.is_active %}yes{% else %}no{% endif %}
-
- Active? -

{% if object.is_active %}yes{% else %}no{% endif %}

- -
- - Org Admin? -

{% if object.is_org_admin %}yes{% else %}no{% endif %}

- -
- - Email -

{{ object.email }}

- -
- - Groups -

- {% for group in object.groups.all %} - {{ group.name }} - {% endfor %} -

+
+
Org Admin?
+
{% if object.is_org_admin %}yes{% else %}no{% endif %}
-
+
+
Email
+
{{ object.email }}
+
+
+
Groups
+ {% if object.groups.exists %} + {% for group in object.groups.all %} +
{{ group.name }}
+ {% endfor %} + {% else %} +
N/A
+ {% endif %} +
+
- {% endblock %} {% block extra_js %} diff --git a/bag_transfer/templates/users/list.html b/bag_transfer/templates/users/list.html index d3d46c78..4ce54d9e 100644 --- a/bag_transfer/templates/users/list.html +++ b/bag_transfer/templates/users/list.html @@ -34,9 +34,15 @@ {{u.first_name}} {{u.last_name}} {{ u.username }} {{ u.organization }} - {% for group in u.groups.all %} -
{{ group.name }}
- {% endfor %} + + {% if u.groups.exists %} + {% for group in u.groups.all %} +
{{ group.name }}
+ {% endfor %} + {% else %} + N/A + {% endif %} + {{ u.last_login }} {% if u.is_org_admin %}Yes{% else %}No{% endif %} {% if u.is_active %}Yes{% else %}No{% endif %}