diff --git a/hypha/apply/dashboard/templates/dashboard/applicant_dashboard.html b/hypha/apply/dashboard/templates/dashboard/applicant_dashboard.html index 12072a4d96..3b58a3b02f 100644 --- a/hypha/apply/dashboard/templates/dashboard/applicant_dashboard.html +++ b/hypha/apply/dashboard/templates/dashboard/applicant_dashboard.html @@ -1,67 +1,82 @@ {% extends "base-apply.html" %} {% load render_table from django_tables2 %} -{% load i18n static wagtailcore_tags workflow_tags statusbar_tags %} +{% load i18n static wagtailcore_tags workflow_tags statusbar_tags heroicons %} {% block title %}{% trans "Dashboard" %}{% endblock %} {% block content %} -
-
-
-

{% trans "Dashboard" %}

-
{% trans "An overview of active and past submissions and projects" %}
-
+ {% adminbar %} + {% slot header %}{% trans "Dashboard" %}{% endslot %} + {% slot sub_heading %}{% trans "An overview of active and past submissions and projects" %}{% endslot %} +
-

{% trans "Submit a new application" %}

-
{% trans "Apply now for our open rounds" %}
+

{% trans "Submit a new application" %}

+

{% trans "Apply now for our open rounds" %}

{% trans "Apply" %}
-
-
+ {% endadminbar %} -
-

{% trans "Your active submissions" %}

+
+

+ {% trans "Your active submissions" %} +

+
{% for submission in my_active_submissions %}
-
-
{{ submission.title }}
-
{% trans "Submitted" %}: {{ submission.submit_time.date }} {% trans "by" %} {{ submission.user.get_full_name }}
+ {% status_bar submission.workflow submission.phase request.user css_class="status-bar--small" %}
- {% if request.user|has_edit_perm:submission %} - - {% if submission.status == 'draft_proposal' %} - {% trans "Start your" %} {{ submission.stage }} {% trans "application" %} - {% else %} - {% trans "Edit" %} - {% endif %} - - {% endif %}
{% empty %} {% trans "No active submissions" %} {% endfor %} +
{% if active_projects.count %} -
-

{% trans "Your active projects" %}

+
+

{% trans "Your active projects" %}

{% render_table active_projects.table %}
{% endif %} {% if historical_submissions.count %} -
-

{% trans "Submission history" %}

+
+

{% trans "Submission history" %}

{% render_table historical_submissions.table %}
{% endif %} {% if historical_projects.count %} -
-

{% trans "Project history" %}

+
+

{% trans "Project history" %}

{% render_table historical_projects.table %}
{% endif %} diff --git a/hypha/apply/dashboard/templates/dashboard/community_dashboard.html b/hypha/apply/dashboard/templates/dashboard/community_dashboard.html index 56296aca20..9d6f915a16 100644 --- a/hypha/apply/dashboard/templates/dashboard/community_dashboard.html +++ b/hypha/apply/dashboard/templates/dashboard/community_dashboard.html @@ -1,6 +1,6 @@ {% extends "base-apply.html" %} {% load render_table from django_tables2 %} -{% load i18n static statusbar_tags workflow_tags wagtailcore_tags %} +{% load i18n static statusbar_tags workflow_tags wagtailcore_tags heroicons %} {% block title %}{% trans "Dashboard" %}{% endblock %} @@ -11,65 +11,85 @@ {% slot sub_heading %}{% trans "An overview of active and past submissions" %}{% endslot %}
-

{% trans "Submit a new application" %}

-
{% trans "Apply now for our open rounds" %}
+

{% trans "Submit a new application" %}

+

{% trans "Apply now for our open rounds" %}

{% trans "Apply" %}
{% endadminbar %} -
+
-
-

- {% trans "Community review submissions" %} {{ my_community_review_count }} -

+
+

+ {% trans "Community review submissions" %} {{ my_community_review_count }} +

+ + {% if my_community_review.data %} + {% render_table my_community_review %} + {% else %} + {% trans "No submissions" %} + {% endif %} +
- {% if my_community_review.data %} - {% render_table my_community_review %} - {% else %} - {% trans "No submissions" %} + {% if my_reviewed.data %} +
+

+ {% trans "Your previous reviews" %} +

+ {% render_table my_reviewed %} +
{% endif %} -
- {% if my_reviewed.data %}
-

{% trans "Your previous reviews" %}

- {% render_table my_reviewed %} -
- {% endif %} +

+ {% trans "Your active submissions" %} +

+ {% for submission in my_submissions %} +
+
+ -
-

{% trans "Your active submissions" %}

- {% for submission in my_submissions %} -
-
-
-
{{ submission.title }}
-
{% trans "Submitted" %}: {{ submission.submit_time.date }} {% trans "by" %} {{ submission.user.get_full_name }}
+ {% status_bar submission.workflow submission.phase request.user css_class="status-bar--small" %}
- {% status_bar submission.workflow submission.phase request.user css_class="status-bar--small" %}
- {% if request.user|has_edit_perm:submission %} - - {% if submission.status == 'draft_proposal' %} - {% trans "Start your" %} {{ submission.stage }} {% trans "application" %} - {% else %} - {% trans "Edit" %} - {% endif %} - - {% endif %} + {% empty %} + {% trans "No active submissions" %} + {% endfor %} +
+ + {% if my_inactive_submissions.data %} +
+

+ {% trans "Submission history" %} +

+ {% render_table my_inactive_submissions %}
- {% empty %} - {% trans "No active submissions" %} - {% endfor %} + {% endif %}
- {% if my_inactive_submissions.data %} -
-

{% trans "Submission history" %}

- {% render_table my_inactive_submissions %} -
- {% endif %} -
- {% endblock %} diff --git a/hypha/apply/dashboard/templates/dashboard/contracting_dashboard.html b/hypha/apply/dashboard/templates/dashboard/contracting_dashboard.html index 8cf04750f0..2439a27e51 100644 --- a/hypha/apply/dashboard/templates/dashboard/contracting_dashboard.html +++ b/hypha/apply/dashboard/templates/dashboard/contracting_dashboard.html @@ -5,17 +5,14 @@ {% block title %}{% trans "Dashboard" %}{% endblock %} {% block content %} -
-
- {% block page_header %} -

{% trans "Dashboard" %}

- {% endblock %} + {% adminbar %} + {% slot header %}{% trans "Dashboard" %}{% endslot %} + {% trans "Apply admin" %} -
-
+ {% endadminbar %}
{% if paf_waiting_for_approval.count %} diff --git a/hypha/apply/dashboard/templates/dashboard/finance_dashboard.html b/hypha/apply/dashboard/templates/dashboard/finance_dashboard.html index 6e3c4ee54c..f46efa0278 100644 --- a/hypha/apply/dashboard/templates/dashboard/finance_dashboard.html +++ b/hypha/apply/dashboard/templates/dashboard/finance_dashboard.html @@ -5,17 +5,15 @@ {% block title %}{% trans "Dashboard" %}{% endblock %} {% block content %} -
-
- {% block page_header %} -

{% trans "Dashboard" %}

- {% endblock %} - - {% trans "Apply admin" %} - - -
-
+ + {% adminbar %} + {% slot header %}{% trans "Dashboard" %}{% endslot %} + + {% trans "Apply admin" %} + + + {% endadminbar %} +
{% trans 'Invoices' %} + {% trans "No Active Invoices" %} +
{% endif %}
@@ -65,7 +65,9 @@

{% trans 'Invoices' %} + {% trans "No Invoices for Approval " %} +

{% endif %}
@@ -74,7 +76,9 @@

{% trans 'Invoices' %} + {% trans "No Invoices for Conversion " %} +

{% endif %}
diff --git a/hypha/apply/dashboard/templates/dashboard/includes/flagged.html b/hypha/apply/dashboard/templates/dashboard/includes/flagged.html index 41d3484f97..0badca3a3a 100644 --- a/hypha/apply/dashboard/templates/dashboard/includes/flagged.html +++ b/hypha/apply/dashboard/templates/dashboard/includes/flagged.html @@ -1,9 +1,9 @@ {% load render_table from django_tables2 %} {% load i18n %} -

+

{% trans "Your Flagged Submissions" %} -

+ {% if my_flagged.data %} {% render_table my_flagged %} diff --git a/hypha/apply/dashboard/templates/dashboard/includes/paf_waiting_for_approval.html b/hypha/apply/dashboard/templates/dashboard/includes/paf_waiting_for_approval.html index 4acdb62252..3464bc2401 100644 --- a/hypha/apply/dashboard/templates/dashboard/includes/paf_waiting_for_approval.html +++ b/hypha/apply/dashboard/templates/dashboard/includes/paf_waiting_for_approval.html @@ -3,7 +3,9 @@
{% if paf_waiting_for_approval.approved_by_you.count %} {% render_table paf_waiting_for_approval.approved_by_you.table %} {% else %} - {% trans "No PAF is approved by you yet " %} +
+ {% trans "No PAF is approved by you yet " %} +
{% endif %}
diff --git a/hypha/apply/dashboard/templates/dashboard/includes/projects_in_contracting.html b/hypha/apply/dashboard/templates/dashboard/includes/projects_in_contracting.html index e0a8c14e9f..968d78503b 100644 --- a/hypha/apply/dashboard/templates/dashboard/includes/projects_in_contracting.html +++ b/hypha/apply/dashboard/templates/dashboard/includes/projects_in_contracting.html @@ -3,7 +3,9 @@
{% if projects_in_contracting.waiting_for_contract_approval.count %} {% render_table projects_in_contracting.waiting_for_contract_approval.table %} {% else %} - {% trans "No project is waiting for contract approval " %} +
+ {% trans "No project is waiting for contract approval " %} +
{% endif %}
diff --git a/hypha/apply/dashboard/templates/dashboard/includes/submissions-waiting-for-review.html b/hypha/apply/dashboard/templates/dashboard/includes/submissions-waiting-for-review.html index 416a634090..e7162005a5 100644 --- a/hypha/apply/dashboard/templates/dashboard/includes/submissions-waiting-for-review.html +++ b/hypha/apply/dashboard/templates/dashboard/includes/submissions-waiting-for-review.html @@ -1,9 +1,9 @@ {% load render_table from django_tables2 %} {% load i18n %} -

- {% trans "Submissions waiting for your review" %} {{ in_review_count }} -

+

+ {% trans "Submissions waiting for your review" %} {{ in_review_count }} +

{% if my_review.data %} {% render_table my_review %} diff --git a/hypha/apply/dashboard/templates/dashboard/reviewer_dashboard.html b/hypha/apply/dashboard/templates/dashboard/reviewer_dashboard.html index 8ee8ef3493..f977fa5998 100644 --- a/hypha/apply/dashboard/templates/dashboard/reviewer_dashboard.html +++ b/hypha/apply/dashboard/templates/dashboard/reviewer_dashboard.html @@ -9,13 +9,10 @@ {% block title %}{% trans "Dashboard" %}{% endblock %} {% block content %} -
-
- {% block page_header %} -

{% trans "Dashboard" %}

- {% endblock %} -
-
+ + {% adminbar %} + {% slot header %}{% trans "Dashboard" %}{% endslot %} + {% endadminbar %}
@@ -46,7 +43,9 @@

{% trans "Dashboard" {% if my_submissions %}
-

{% trans "Your active submissions" %}

+

+ {% trans "Your active submissions" %} +

{% for submission in my_submissions %}
@@ -72,14 +71,18 @@
{% trans " {% if paf_waiting_for_assignment.count %}
-

{% trans "PAF waiting for assignee" %}

+

+ {% trans "PAF waiting for assignee" %} +

{% render_table paf_waiting_for_assignment.table %}
{% endif %} {% if my_inactive_submissions.data %}
-

{% trans "Submission history" %}

+

+ {% trans "Submission history" %} +

{% render_table my_inactive_submissions %}
{% endif %} diff --git a/hypha/apply/determinations/templates/determinations/base_determination_form.html b/hypha/apply/determinations/templates/determinations/base_determination_form.html index 009d873c86..9e1430e680 100644 --- a/hypha/apply/determinations/templates/determinations/base_determination_form.html +++ b/hypha/apply/determinations/templates/determinations/base_determination_form.html @@ -2,63 +2,56 @@ {% load i18n static bleach_tags %} {% block title %}{% if object %}{% trans "Edit a Determination" %} {% if object.is_draft %}{% trans "draft" %}{% endif %}{% else %}{% trans "Create a Determination" %}{% endif %}{% endblock %} {% block content %} + {% block header %} -
+ {% adminbar %} + {% slot header %}{% if object %}{% trans "Update Determination draft" %}{% else %}{% trans "Create Determination" %}{% endif %}{% endslot %} + {% slot sub_heading %}{% trans "For" %} {{ submission.title }}{% endslot %} + {% endadminbar %} {% endblock %} {% block form %} -{% include "forms/includes/form_errors.html" with form=form %} - -
- {% block determination_information %} - {% endblock %} - -
- {{ form.media }} - {% csrf_token %} - - {% for hidden in form.hidden_fields %} - {{ hidden }} - {% endfor %} - - {% for field in form.visible_fields %} - {# to be replaced with better logic when/if we use stream form #} - {% ifchanged field.field.group %} - {% for key, value in form.titles.items %} - {% if key == field.field.group %} -

{{ value }}

- {% endif %} - {% endfor %} - {% endifchanged %} - - {% if field.field %} - {% include "forms/includes/field.html" %} - {% else %} - {{ field.block }} - {% endif %} +
+ {% include "forms/includes/form_errors.html" with form=form %} + {% block determination_information %} + {% endblock %} + + {{ form.media }} + {% csrf_token %} + {% for hidden in form.hidden_fields %} + {{ hidden }} + {% endfor %} + {% for field in form.visible_fields %} + {# to be replaced with better logic when/if we use stream form #} + {% ifchanged field.field.group %} + {% for key, value in form.titles.items %} + {% if key == field.field.group %} +

{{ value }}

+ {% endif %} + {% endfor %} + {% endifchanged %} + {% if field.field %} + {% include "forms/includes/field.html" %} + {% else %} + {{ field.block }} + {% endif %} + {% endfor %} + {% block form_buttons %} +
+ {% if form.draft_button_name %} + + {% endif %} + +
+ {% endblock %} + + {% for type, message in message_templates.items %} + {% endfor %} - - {% block form_buttons %} -
- {% if form.draft_button_name %} - - {% endif %} - -
{% endblock %} - - {% for type, message in message_templates.items %} - - {% endfor %} -
-{% endblock %} + {% endblock %} {% block extra_js %} diff --git a/hypha/apply/determinations/templates/determinations/determination_detail.html b/hypha/apply/determinations/templates/determinations/determination_detail.html index a9478ccd33..68f9e11322 100644 --- a/hypha/apply/determinations/templates/determinations/determination_detail.html +++ b/hypha/apply/determinations/templates/determinations/determination_detail.html @@ -1,5 +1,5 @@ {% extends "base-apply.html" %} -{% load i18n bleach_tags %} +{% load i18n bleach_tags heroicons %} {% block title %}{% trans "Determination for" %} {{ determination.submission.title }}{% endblock %} @@ -12,22 +12,21 @@ {% endslot %} {% slot header %} {% trans "Determination" %} {% if determination.is_draft %}[{% trans "DRAFT" %}] {% endif %}{% endslot %} - {% slot sub_heading %}{% trans "For" %} {{ determination.submission.title }}{% endslot %} {% endadminbar %} -
-
-
{% trans "Determination" %}: {{ determination.get_outcome_display }}
-
+
+ +
+ {% trans "Determination" %}: {{ determination.get_outcome_display }} +
{% if request.user.is_apply_staff %} - + + + {% trans "Edit" %}{% heroicon_mini "pencil-square" size=18 class="inline ml-1 align-text-bottom" aria_hidden=true %} + + {% endif %}
diff --git a/hypha/apply/funds/templates/funds/application_base.html b/hypha/apply/funds/templates/funds/application_base.html index f6d890aaeb..a2329e74e7 100644 --- a/hypha/apply/funds/templates/funds/application_base.html +++ b/hypha/apply/funds/templates/funds/application_base.html @@ -12,7 +12,7 @@ {% trans "Next deadline" %}: {{ page.end_date }}

{% endif %} -

{{ page.title }}

+

{{ page.title }}

{% if form.errors or form.non_field_errors %}
{% heroicon_solid "exclamation-triangle" aria_hidden="true" class="inline mr-2 fill-red-500" %} diff --git a/hypha/apply/funds/templates/funds/applicationrevision_list.html b/hypha/apply/funds/templates/funds/applicationrevision_list.html index 86b5c6405f..3ce639ee8a 100644 --- a/hypha/apply/funds/templates/funds/applicationrevision_list.html +++ b/hypha/apply/funds/templates/funds/applicationrevision_list.html @@ -3,12 +3,10 @@ {% block title %}{% blocktrans with title=submission.title %}Revisions for {{ title }}{% endblocktrans %}{% endblock %} {% block content %} -
-
-

{% trans "Revisions" %}

-
{% trans "For" %} {{ submission.title }}
-
-
+ {% adminbar %} + {% slot header %}{% trans "Revisions" %}{% endslot %} + {% slot sub_heading %}{% trans "For" %} {{ submission.title }}{% endslot %} + {% endadminbar %}
    diff --git a/hypha/apply/funds/templates/funds/includes/table_filter_and_search.html b/hypha/apply/funds/templates/funds/includes/table_filter_and_search.html index c78ce3f6e8..ad72271e58 100644 --- a/hypha/apply/funds/templates/funds/includes/table_filter_and_search.html +++ b/hypha/apply/funds/templates/funds/includes/table_filter_and_search.html @@ -6,7 +6,9 @@ {# Left #}
    {% if heading %} -

    {{ heading }} +

    + + {{ heading }} {% if show_try_new_submissions_link %} {{ heading }} {% trans "Try newer version" %}) {% endif %} -

    +
{% endif %} diff --git a/hypha/apply/funds/templates/funds/reminder_confirm_delete.html b/hypha/apply/funds/templates/funds/reminder_confirm_delete.html index 8f6e5f8776..88334d3945 100644 --- a/hypha/apply/funds/templates/funds/reminder_confirm_delete.html +++ b/hypha/apply/funds/templates/funds/reminder_confirm_delete.html @@ -4,20 +4,19 @@ {% block title %}{% trans "Deleting" %}: {{ object }}{% endblock %} {% block content %} -
-
-

{% trans "Deleting" %}: {{ object }}

-
-
-
-
-
- {% csrf_token %} -

Are you sure you want to delete "{{ object }}"?{% endblocktrans %}

- -
+ {% adminbar %} + {% slot header %}{% trans "Deleting" %}: {{ object }}{% endslot %} + {% endadminbar %} + +
+
+
+ {% csrf_token %} +

Are you sure you want to delete "{{ object }}"?{% endblocktrans %}

+ +
+
-
{% endblock %} diff --git a/hypha/apply/funds/templates/funds/revisions_compare.html b/hypha/apply/funds/templates/funds/revisions_compare.html index eaf55100d6..fbae8efe38 100644 --- a/hypha/apply/funds/templates/funds/revisions_compare.html +++ b/hypha/apply/funds/templates/funds/revisions_compare.html @@ -2,15 +2,22 @@ {% load i18n %} {% block title %}{% trans "Compare" %}: {{ object.title }}{% endblock %} {% block content %} -
-
-

{% trans "Comparing revisions" %}

-
{% trans "For" %} {{ object.title }}
-
{% trans "Back to revisions" %}
-
-
-
- {% include "funds/includes/revision_diff_table.html" %} -
+ {% adminbar %} + {% slot back_link %} + + {% trans "View revisions" %} + + {% endslot %} + + {% slot header %}{% trans "Comparing revisions" %}{% endslot %} + {% slot sub_heading %} + {% trans "For" %} {{ object.title }} + {% endslot %} + + {% endadminbar %} + +
+ {% include "funds/includes/revision_diff_table.html" %} +
{% endblock %} diff --git a/hypha/apply/stream_forms/templates/stream_forms/heading_field.html b/hypha/apply/stream_forms/templates/stream_forms/heading_field.html index cdbafe29ff..0c8b1e07e2 100644 --- a/hypha/apply/stream_forms/templates/stream_forms/heading_field.html +++ b/hypha/apply/stream_forms/templates/stream_forms/heading_field.html @@ -1,14 +1,14 @@ -
+
<{{ self.size }} tabindex="-1" class="p-2 mb-2 bg-light-blue text-white"> - {{ value.heading_text }} - - + {{ value.heading_text }} + +
diff --git a/hypha/apply/users/templates/users/account.html b/hypha/apply/users/templates/users/account.html index ac4152f930..5bd5c6cae8 100644 --- a/hypha/apply/users/templates/users/account.html +++ b/hypha/apply/users/templates/users/account.html @@ -16,7 +16,7 @@
-

{% trans "Profile" %}

+

{% trans "Profile" %}

{% csrf_token %} {% for field in form %} @@ -30,15 +30,15 @@

{% trans "Profile" %}

{% if show_change_password and user.has_usable_password and not backends.associated %}
-

{% trans "Account Security" %}

-

{% trans "Password" %}

+

{% trans "Account Security" %}

+

{% trans "Password" %}

{% trans "Update password" %}

-

{% trans "Two-Factor Authentication (2FA)" %}

+

{% trans "Two-Factor Authentication (2FA)" %}

{% if default_device %} {% else %}

{% trans "Enable 2FA" %}

@@ -50,7 +50,7 @@

{% trans "Two-Factor Authentication (2FA)" %}

{% if swappable_form %}
{% if swappable_form %} -

{% trans "Become" %}:

+

{% trans "Become" %}:

{{ swappable_form.media }} {% csrf_token %} diff --git a/hypha/apply/users/templates/users/login.html b/hypha/apply/users/templates/users/login.html index f1119fff4e..ab5154f588 100644 --- a/hypha/apply/users/templates/users/login.html +++ b/hypha/apply/users/templates/users/login.html @@ -5,106 +5,111 @@ {% block body_class %}bg-white{% endblock %} {% block content %} -
- -
-
- {% if wizard.steps.current == 'token' %} - {% if device.method == 'call' %} -

{% blocktrans trimmed %}We are calling your phone right now, please enter the - digits you hear.{% endblocktrans %}

- {% elif device.method == 'sms' %} -

{% blocktrans trimmed %}We sent you a text message, please enter the tokens we - sent.{% endblocktrans %}

- {% else %} -

Two Factor Verification

-

{% blocktrans trimmed %}Please enter the 6-digit verification code generated by your Authenticator App.{% endblocktrans %}

- {% endif %} - {% elif wizard.steps.current == 'backup' %} -

{% blocktrans trimmed %}Please enter one of the backup codes to login to your account. - Those codes were generated for you during 2FA setup to print or keep safe in a password manager.{% endblocktrans %}

- {% endif %} - - - {% csrf_token %} - {{ wizard.management_form }} - - {% if wizard.steps.current == 'auth' %} - -

Log in to {{ ORG_SHORT_NAME }}

- {% for field in form %} - {% include "forms/includes/field.html" %} - {% endfor %} - {% if settings.users.AuthSettings.extra_text %} - {{ settings.users.AuthSettings.extra_text|richtext}} +
+ +
+
+ {% if wizard.steps.current == 'token' %} + {% if device.method == 'call' %} +

{% blocktrans trimmed %}We are calling your phone right now, please enter the + digits you hear.{% endblocktrans %}

+ {% elif device.method == 'sms' %} +

{% blocktrans trimmed %}We sent you a text message, please enter the tokens we + sent.{% endblocktrans %}

+ {% else %} +

Two Factor Verification

+

{% blocktrans trimmed %}Please enter the 6-digit verification code generated by your Authenticator App.{% endblocktrans %}

{% endif %} + {% elif wizard.steps.current == 'backup' %} +

{% blocktrans trimmed %}Please enter one of the backup codes to login to your account. + Those codes were generated for you during 2FA setup to print or keep safe in a password manager.{% endblocktrans %}

+ {% endif %} -
- -
+ + {% csrf_token %} + {{ wizard.management_form }} - {% if GOOGLE_OAUTH2 %} -
-
- or -
-
+ {% if wizard.steps.current == 'auth' %} - - {% endif %} +

Log in to {{ ORG_SHORT_NAME }}

+ {% for field in form %} +
+ {% include "forms/includes/field.html" %} +
+ {% endfor %} + {% if settings.users.AuthSettings.extra_text %} + {{ settings.users.AuthSettings.extra_text|richtext}} + {% endif %} + +
+ +
+ + {% if GOOGLE_OAUTH2 %} +
+
+ or +
+
- - {% else %} - {{ wizard.form }} + +
+ {% if ENABLE_REGISTRATION_WITHOUT_APPLICATION %} + {% trans "Create account" %} + {% endif %} + {% trans "Forgot your password?" %} +
+ {% else %} + +
+ {{ wizard.form }} +
{# hidden submit button to enable [enter] key #} -
+
- {% if other_devices %} -

{% trans "Or, alternatively, use one of your backup phones:" %}

-

- {% for other in other_devices %} - - {% endfor %}

- {% endif %} + {{ other.generate_challenge_button_title }} + + {% endfor %}

+ {% endif %} -
- {% include "two_factor/_wizard_actions.html" %} -
+
+ {% include "two_factor/_wizard_actions.html" %} +
- {% if backup_tokens %} -

{% trans "As a last resort, you can use a backup codes:" %} - -

+ {% if backup_tokens %} +

{% trans "As a last resort, you can use a backup codes:" %} + +

+ {% endif %} {% endif %} - {% endif %} - -
-
-
+ +
+
+
- + var labelOtpToken = document.querySelector("label[for=id_token-otp_token]"); + if(labelOtpToken){ + labelOtpToken.textContent = "{% trans 'Verification Code' %}: "; + } + var labelBackupOTPToken = document.querySelector("label[for=id_backup-otp_token]"); + if(labelBackupOTPToken){ + labelBackupOTPToken.textContent = "{% trans 'Backup Code' %}: "; + } + {% endblock %} diff --git a/hypha/apply/users/templates/users/register.html b/hypha/apply/users/templates/users/register.html index 154874726e..b05b79fb3a 100644 --- a/hypha/apply/users/templates/users/register.html +++ b/hypha/apply/users/templates/users/register.html @@ -5,41 +5,41 @@ {% block body_class %}bg-white{% endblock %} {% block content %} -
-
-
-
- {% csrf_token %} - {% if redirect_url %} - - {% endif %} -

Create your account

- - {% if form.non_field_errors %} -
{{ form.non_field_errors.as_text }}
- {% endif %} +
+
+
+ + {% csrf_token %} + {% if redirect_url %} + + {% endif %} +

Create your account

- {% for field in form %} - {%if field.id_for_label != 'id_is_superuser' and field.label != 'Groups' %} - {% include "forms/includes/field.html" %} - {%endif%} - {% endfor %} -
- -
- -

- {% trans "Already have an account?" %} {% trans "Log in" %} -

-
-
+ {% if form.non_field_errors %} +
{{ form.non_field_errors.as_text }}
+ {% endif %} - {% if settings.users.AuthSettings.register_extra_text %} -
-
- {{ settings.users.AuthSettings.register_extra_text|richtext}} + {% for field in form %} + {%if field.id_for_label != 'id_is_superuser' and field.label != 'Groups' %} + {% include "forms/includes/field.html" %} + {%endif%} + {% endfor %} +
+ +
+ +

+ {% trans "Already have an account?" %} {% trans "Log in" %} +

- {% endif %} -
+ + {% if settings.users.AuthSettings.register_extra_text %} +
+
+ {{ settings.users.AuthSettings.register_extra_text|richtext}} +
+
+ {% endif %} +
{% endblock %} diff --git a/hypha/static_src/src/sass/apply/components/_form.scss b/hypha/static_src/src/sass/apply/components/_form.scss index 215a9084e5..8983aecbad 100644 --- a/hypha/static_src/src/sass/apply/components/_form.scss +++ b/hypha/static_src/src/sass/apply/components/_form.scss @@ -1,6 +1,6 @@ // stylelint-disable selector-max-compound-selectors -@use 'sass:math'; +@use "sass:math"; .form { $root: &; @@ -11,7 +11,7 @@ label { display: block; - margin-bottom: .5em; + margin-bottom: 0.5em; font-weight: $weight--bold; } } @@ -34,7 +34,8 @@ &__group { position: relative; - margin-top: 1.5rem; + margin-top: 0.5rem; + margin-bottom: 1.5rem; &:nth-of-type(1) { margin-top: 0; @@ -80,12 +81,12 @@ &__item { display: flex; align-items: center; - gap: .5em; + gap: 0.5em; } } } - input[type='date']:last-child { + input[type="date"]:last-child { max-width: 385px; } } @@ -104,7 +105,8 @@ @include button($color--light-blue, $color--darkest-blue); max-width: 290px; text-align: center; - background: url('./../../images/upload.svg') $color--light-blue no-repeat 20px center; + background: url("./../../images/upload.svg") $color--light-blue + no-repeat 20px center; border: 0; .no-js & { @@ -116,7 +118,8 @@ } &:hover { - background: url('./../../images/upload.svg') $color--dark-blue no-repeat 20px center; + background: url("./../../images/upload.svg") $color--dark-blue + no-repeat 20px center; .no-js & { background: none; @@ -133,7 +136,7 @@ &__file-list { ul { - margin: .5rem 0; + margin: 0.5rem 0; } } @@ -154,7 +157,7 @@ &.is-active { font-weight: $weight--normal; - background-color: transparentize($color--primary, .9); + background-color: transparentize($color--primary, 0.9); border-color: $color--mid-grey; } @@ -279,7 +282,7 @@ &__help { margin: 0; color: var(--color-fg-muted); - font-size: .875rem; + font-size: 0.875rem; line-height: 1.25rem; .profile & { @@ -288,7 +291,7 @@ } &__help-link { - font-size: .875rem; + font-size: 0.875rem; line-height: 1.25rem; a { @@ -308,7 +311,7 @@ &__item { position: relative; - padding-top: .5rem; + padding-top: 0.5rem; } &__select { @@ -332,7 +335,7 @@ } } - select[multiple='multiple'] { + select[multiple="multiple"] { display: block; } @@ -348,14 +351,14 @@ } select, - input[type='url'], - input[type='text']:not(.input--secondary), - input[type='date'], - input[type='time'], - input[type='email'], - input[type='number'], - input[type='password'], - input[type='datetime-local'] { + input[type="url"], + input[type="text"]:not(.input--secondary), + input[type="date"], + input[type="time"], + input[type="email"], + input[type="number"], + input[type="password"], + input[type="datetime-local"] { width: 100%; max-width: 385px; @@ -368,14 +371,14 @@ &__error { select, textarea, - input[type='url'], - input[type='text'], - input[type='date'], - input[type='time'], - input[type='email'], - input[type='number'], - input[type='password'], - input[type='datetime-local'] { + input[type="url"], + input[type="text"], + input[type="date"], + input[type="time"], + input[type="email"], + input[type="number"], + input[type="password"], + input[type="datetime-local"] { border: 2px solid $color--error; } } @@ -402,21 +405,21 @@ border-color: transparent $color--error transparent transparent; border-style: solid; border-width: 5px 10px 5px 0; - content: ''; + content: ""; } } } // make date & time input siblings inline - input[type='date'] { + input[type="date"] { max-width: calc(385px - 100px); } - input[type='date'] + input[type='time'] { + input[type="date"] + input[type="time"] { width: 100px; } - input[type='file'] { + input[type="file"] { @extend %off-screen; .no-js & { @@ -428,7 +431,7 @@ &__textarea { display: block; width: 100%; - padding: .4em; + padding: 0.4em; border: 1px solid $color--mid-grey; line-height: math.div($base-line-height, $base-font-size); } @@ -443,12 +446,12 @@ &__comments { display: grid; - grid-template-areas: 'message' 'visibility' 'actions'; + grid-template-areas: "message" "visibility" "actions"; grid-template-rows: auto auto auto; grid-template-columns: 1fr; @include media-query(tablet-landscape) { - grid-template-areas: 'message visibility' 'actions actions'; + grid-template-areas: "message visibility" "actions actions"; grid-template-rows: auto auto; grid-template-columns: 2fr 1fr; column-gap: 2rem; @@ -460,7 +463,8 @@ } } - .id_message { // stylelint-disable-line selector-class-pattern + // stylelint-disable-next-line selector-class-pattern + .id_message { grid-area: message; > label { @@ -468,7 +472,8 @@ } } - .id_visibility_0 { // stylelint-disable-line selector-class-pattern + // stylelint-disable-next-line selector-class-pattern + .id_visibility_0 { grid-area: visibility; } @@ -479,34 +484,35 @@ } } - // Radio + Checkbox - [type='radio'], - [type='checkbox'] { + [type="radio"], + [type="checkbox"] { & + label { - padding-inline-start: .25rem; + padding-inline-start: 0.25rem; cursor: pointer; } } .errorlist { padding: 5px; - margin-bottom: .2em; + margin-bottom: 0.2em; background: $color--light-pink; border: 1px solid $color--tomato; } .address { - padding: .4em; - border: 1px solid #cfcfcf8f; // stylelint-disable-line color-no-hex + padding: 0.4em; + border: 1px solid #cfcfcf8f; // stylelint-disable-line color-no-hex max-width: 410px; - .form__group { // stylelint-disable-line selector-class-pattern - margin-top: .5rem; + // stylelint-disable-next-line selector-class-pattern + .form__group { + margin-top: 0.5rem; } - .form__question { // stylelint-disable-line selector-class-pattern - margin-bottom: .25rem; + // stylelint-disable-next-line selector-class-pattern + .form__question { + margin-bottom: 0.25rem; font-size: 1rem; line-height: 1.25rem; @@ -539,5 +545,7 @@ } @keyframes flash { - 50% { background-color: $color--mustard; } + 50% { + background-color: $color--mustard; + } } diff --git a/hypha/static_src/src/sass/apply/components/_grid.scss b/hypha/static_src/src/sass/apply/components/_grid.scss index 3290c15483..0585a714d0 100644 --- a/hypha/static_src/src/sass/apply/components/_grid.scss +++ b/hypha/static_src/src/sass/apply/components/_grid.scss @@ -27,7 +27,7 @@ @supports (display: grid) { .grid { display: grid; - margin: 30px 0; + margin-bottom: 1rem; grid-gap: 10px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); @@ -39,7 +39,7 @@ &--two { grid-template-columns: 100%; - grid-gap: .25rem; + grid-gap: 0.25rem; @include media-query(tablet-portrait) { grid-template-columns: 1fr 1fr; diff --git a/hypha/static_src/src/sass/apply/components/_wrapper.scss b/hypha/static_src/src/sass/apply/components/_wrapper.scss index 6d8e20abda..0079adf623 100644 --- a/hypha/static_src/src/sass/apply/components/_wrapper.scss +++ b/hypha/static_src/src/sass/apply/components/_wrapper.scss @@ -3,17 +3,20 @@ &--small { max-width: $wrapper--small; - margin: 0 auto; + margin-left: auto; + margin-right: auto; } &--medium { max-width: $wrapper--medium; - margin: 0 auto; + margin-left: auto; + margin-right: auto; } &--large { max-width: $site-width; - margin: 0 auto; + margin-left: auto; + margin-right: auto; } &--main { @@ -236,7 +239,7 @@ } &--status-bar-outer { - padding: 20px; + padding: 20px 0; background-color: $color--white; border-bottom: 3px solid $color--light-grey; } diff --git a/hypha/templates/django/forms/widgets/multiple_input.html b/hypha/templates/django/forms/widgets/multiple_input.html index 362fed2940..765e63d6d9 100644 --- a/hypha/templates/django/forms/widgets/multiple_input.html +++ b/hypha/templates/django/forms/widgets/multiple_input.html @@ -1,5 +1,8 @@ {% with id=widget.attrs.id %} - +
    {% for group, options, index in widget.optgroups %} {% if group %}
  • {{ group }} @@ -12,4 +15,4 @@
  • {% endif %} {% endfor %} -
{% endwith %} + {% endwith %}