From 13c9821ea1d233862da560976a529851b96ba94d Mon Sep 17 00:00:00 2001 From: Josh Stegmaier <104993387+joshuastegmaier@users.noreply.github.com> Date: Wed, 20 Sep 2023 06:50:29 -0400 Subject: [PATCH] Accessibility changes on the account profile page (#2106) --- concordia/static/scss/base.scss | 9 +- concordia/templates/account/profile.html | 207 +++++++++--------- .../templates/fragments/recent-pages.html | 6 +- 3 files changed, 114 insertions(+), 108 deletions(-) diff --git a/concordia/static/scss/base.scss b/concordia/static/scss/base.scss index 3e2786a69..e23b5fc1d 100644 --- a/concordia/static/scss/base.scss +++ b/concordia/static/scss/base.scss @@ -1191,9 +1191,12 @@ input.duet-date__input { border-radius: 0; } -table.table thead.border-y th { - border-bottom: 1px solid #000; - border-top: 1px solid #000; +table.table thead.border-y { + th, + td { + border-bottom: 1px solid #000; + border-top: 1px solid #000; + } } #current-filters { diff --git a/concordia/templates/account/profile.html b/concordia/templates/account/profile.html index 52a476a6d..062d98208 100644 --- a/concordia/templates/account/profile.html +++ b/concordia/templates/account/profile.html @@ -50,116 +50,117 @@

Account Settings

{% csrf_token %}
- -
- {% bootstrap_button "Save Change" button_type="submit" button_class="btn btn-primary rounded-0" %} -
- {% if valid is True %} -
Email changed successfully; Check email to confirm address
- {% else %} -
- Error in email change -
- {% endif %} -
- -
-
- Change Password -
-
- -
-
+ + +
+ {% bootstrap_button "Save Change" button_type="submit" button_class="btn btn-primary rounded-0" %} +
+ {% if valid is True %} +
Email changed successfully; Check email to confirm address
+ {% else %} +
+ Error in email change
+ {% endif %} +
+ +
+
+ Change Password
-
- {% if user_profile_activity %} -
-
-
-

My Contributions

-
-
- {{ user.date_joined|date:"SHORT_DATE_FORMAT" }} +
+
+
+
+
+
+
+ {% if user_profile_activity %} +
+
+
+

My Contributions

-
-
-
{{ user_profile_activity.count|intcomma }}
-

Campaigns

-
-
-
{{ pages_worked_on|intcomma }}
-

Pages Worked On

-
-
-
{{ totalCount|intcomma }}
-

Actions

-
-
-
- - - - - - +
+ {{ user.date_joined|date:"SHORT_DATE_FORMAT" }} +
+
+
+
{{ user_profile_activity.count|intcomma }}
+

Campaigns

+
+
+
{{ pages_worked_on|intcomma }}
+

Pages Worked On

+
+
+
{{ totalCount|intcomma }}
+

Actions

+
+
+
+
Campaign - Saves & Submits -
+ + + + - - - - - - - - - - - - {% for user_campaign in user_profile_activity %} - - - - - - - - {% endfor %} - -
Campaign - Reviews + Saves & Submits Total Actions
- All Campaigns - {{ totalTranscriptions|intcomma }}{{ totalReviews|intcomma }}{{ totalCount|intcomma }}
- - {{ user_campaign.campaign.title }} - - {{ user_campaign.transcribe_count|intcomma }}{{ user_campaign.review_count|intcomma }}{{ user_campaign.total_actions|intcomma }}
-
-
-
-

Service Letter

-
Using By the People to fulfill service requirements? Download a letter verifying your volunteer contributions.
Find more info on service documentation here.
-
- -
-
-
-
-
- {% endif %} -
+ + Reviews + + Total Actions + + + + + + + All Campaigns + + {{ totalTranscriptions|intcomma }} + {{ totalReviews|intcomma }} + {{ totalCount|intcomma }} + + {% for user_campaign in user_profile_activity %} + + + + + {{ user_campaign.campaign.title }} + + + {{ user_campaign.transcribe_count|intcomma }} + {{ user_campaign.review_count|intcomma }} + {{ user_campaign.total_actions|intcomma }} + + {% endfor %} + + +
+
+
+

Service Letter

+
Using By the People to fulfill service requirements? Download a letter verifying your volunteer contributions.
Find more info on service documentation here.
+
+ +
+
+
+ + + {% endif %} + -
-
-
- - +
+
+
+ + {% endblock main_content %} {% block body_scripts %} diff --git a/concordia/templates/fragments/recent-pages.html b/concordia/templates/fragments/recent-pages.html index ecdd9fae3..547093de0 100644 --- a/concordia/templates/fragments/recent-pages.html +++ b/concordia/templates/fragments/recent-pages.html @@ -10,9 +10,11 @@

Recent Pages Worked On

Date: Select Range
- + +
to
- + +