Skip to content

Commit 3979926

Browse files
committed
wrapper--cta-box
1 parent 6f2e5e1 commit 3979926

21 files changed

Lines changed: 52 additions & 82 deletions

hypha/apply/dashboard/templates/dashboard/community_dashboard.html

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,16 @@
99
{% slot header %}{% trans "Dashboard" %}{% endslot %}
1010
{% slot sub_heading %}{% trans "An overview of active and past submissions" %}{% endslot %}
1111

12-
<div class="wrapper wrapper--cta-box">
13-
<h3 class="mb-0 text-xl">{% trans "Submit a new application" %}</h3>
14-
<p class="mt-0 mb-4 text-sm text-fg-muted">{% trans "Apply now for our open rounds" %}</p>
15-
<a class="btn btn-primary" href="{% pageurl APPLY_SITE.root_page %}" class="button">{% trans "Apply" %}</a>
12+
<div class="flex items-center p-4 w-lg bg-base-100 text-base-content rounded-box">
13+
<div class="flex-1">
14+
<h3 class="text-xl font-semibold">{% trans "Submit a new application" %}</h3>
15+
<p class="text-sm">{% trans "Apply now for our open rounds" %}</p>
16+
</div>
17+
<div>
18+
<a class="btn btn-primary btn-outline" href="{% pageurl APPLY_SITE.root_page %}">
19+
{% trans "Apply" %}
20+
</a>
21+
</div>
1622
</div>
1723
{% endadminbar %}
1824
{% endblock %}

hypha/apply/dashboard/templates/dashboard/reviewer_dashboard.html

Lines changed: 17 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,22 @@
1010
{% endadminbar %}
1111
{% endblock %}
1212

13-
1413
{% block content %}
15-
<div class="wrapper wrapper--large wrapper--inner-space-medium">
16-
<div class="wrapper wrapper--bottom-space">
14+
<div class="flex flex-col gap-8 my-4">
15+
<section>
1716
{% include "dashboard/includes/submissions-waiting-for-review.html" with in_review_count=awaiting_reviews.count my_review=awaiting_reviews.table display_more=awaiting_reviews.display_more active_statuses_filter=awaiting_reviews.active_statuses_filter %}
18-
</div>
17+
</section>
1918

2019
{% if my_flagged.count %}
21-
<div id="submissions-flagged" class="wrapper wrapper--bottom-space">
22-
<h3 class="mb-2 text-xl">
20+
<section id="submissions-flagged">
21+
<h2 class="mb-2 card-title">
2322
<a href="{% url "apply:submissions:list" %}?query=flagged:@me">
2423
Your flagged submissions
2524
<span class="badge badge-soft badge-secondary">
2625
{{ my_flagged.count }}
2726
</span>
2827
</a>
29-
</h3>
28+
</h2>
3029

3130
{% include "submissions/partials/submissions-inline.html" with submissions=my_flagged.objects row_layout="table" %}
3231

@@ -35,17 +34,17 @@ <h3 class="mb-2 text-xl">
3534
<a href="{% url "apply:submissions:list" %}?query=flagged:@me">Show All</a>
3635
</div>
3736
{% endif %}
38-
</div>
37+
</section>
3938
{% endif %}
4039

4140
{% if my_reviewed.count %}
42-
<div class="wrapper wrapper--bottom-space">
43-
<h3 class="mb-2 text-xl">
41+
<section>
42+
<h2 class="mb-2 card-title">
4443
<a href="{% url "apply:submissions:list" %}?query=reviewed-by:@me">
4544
{% trans "Your previous reviews" %}
4645
<span class="badge badge-soft badge-secondary">{{ my_reviewed.count }}</span>
4746
</a>
48-
</h3>
47+
</h2>
4948

5049
{% include "submissions/partials/submissions-inline.html" with submissions=my_reviewed.objects row_layout="table" %}
5150

@@ -54,12 +53,12 @@ <h3 class="mb-2 text-xl">
5453
<a href="{% url "apply:submissions:list" %}?query=reviewed-by:@me">{% trans "Show all" %}</a>
5554
</div>
5655
{% endif %}
57-
</div>
56+
</section>
5857
{% endif %}
5958

6059
{% if my_submissions %}
61-
<div class="wrapper wrapper--bottom-space">
62-
<h2 class="mb-2 text-xl">
60+
<section>
61+
<h2 class="mb-2 card-title">
6362
{% trans "Your active submissions" %}
6463
</h2>
6564
{% for submission in my_submissions %}
@@ -82,17 +81,16 @@ <h6 class="heading heading--no-margin heading--submission-meta"><span>{% trans "
8281
{% endif %}
8382
</div>
8483
{% endfor %}
85-
</div>
84+
</section>
8685
{% endif %}
8786

8887
{% if my_inactive_submissions.data %}
89-
<div class="wrapper wrapper--bottom-space">
90-
<h2 class="mb-2 text-xl">
88+
<section>
89+
<h2 class="mb-2 card-title">
9190
{% trans "Submission history" %}
9291
</h2>
9392
{% render_table my_inactive_submissions %}
94-
</div>
93+
</section>
9594
{% endif %}
9695
</div>
97-
9896
{% endblock %}

hypha/apply/funds/templates/funds/applicationsubmission_community_detail.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ <h2 class="card-title">{% trans "Reviews & assignees" %}</h2>
1515
</div>
1616
</div>
1717

18-
<div class="wrapper wrapper--sidebar-buttons">
18+
<div class="card-actions">
1919
{% include 'review/includes/review_button.html' with submission=object class="w-1/2" %}
2020
</div>
2121
</div>

hypha/apply/funds/templates/funds/applicationsubmission_detail.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,15 +62,15 @@
6262
<div class="mt-4">
6363
<div class="wrapper wrapper--sidebar">
6464
{% if request.user|has_edit_perm:object and object.status == 'draft_proposal' and not request.user.is_apply_staff %}
65-
<div class="wrapper--sidebar--inner">
65+
<div class="grow">
6666
<h4>{% trans "Congratulations!" %}</h4>
6767
<h5>{% blocktrans with stage=object.previous.stage %}Your {{ stage }} application has been accepted.{% endblocktrans %}</h5>
6868
<a class="btn btn-primary" href="{% url 'funds:submissions:edit' object.id %}">
6969
{% blocktrans with stage=object.stage %}Start your {{ stage }} application.{% endblocktrans %}
7070
</a>
7171
</div>
7272
{% else %}
73-
<article class="wrapper--sidebar--inner">
73+
<article class="grow">
7474
{% if object.is_archive %}
7575
<div role="alert" class="mb-4 alert alert-warning">
7676
{% heroicon_outline "lock-closed" aria_hidden="true" size=16 stroke_width=2 %}

hypha/apply/funds/templates/funds/applicationsubmission_form.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
{% include "forms/includes/form_errors.html" with form=form %}
1818

19-
<div class="wrapper--sidebar--inner">
19+
<div class="grow">
2020
<form class="form application-form" action="" method="post" enctype="multipart/form-data">
2121
{% csrf_token %}
2222
{% for field in form %}

hypha/apply/funds/templates/funds/includes/rendered_answers.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
{% endif %}
2525

2626
<section class="@container">
27-
<h3 class="pb-2 mb-2 text-xl font-bold border-b">
27+
<h3 class="pb-2 mb-2 border-b card-title">
2828
{% trans "Proposal Information" %}
2929
</h3>
3030

hypha/apply/funds/templates/funds/includes/table_filter_and_search.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
{# Left #}
99
<div>
1010
{% if heading %}
11-
<h2 class="mb-2 text-xl">{{ heading }}</h2>
11+
<h2 class="mb-2 card-title">{{ heading }}</h2>
1212
{% endif %}
1313

1414
{% if invoice_batch_actions %}

hypha/apply/funds/templates/funds/reminder_confirm_delete.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
{% block content %}
1414
<div class="wrapper wrapper--form wrapper--sidebar">
15-
<div class="wrapper--sidebar--inner">
15+
<div class="grow">
1616
<form class="form" action="" method="post">
1717
{% csrf_token %}
1818
<p class="font-semibold">

hypha/apply/projects/reports/templates/reports/report_detail.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
{% block content %}
1919
<div class="wrapper wrapper--sidebar wrapper--outer-space-medium">
20-
<div class="wrapper--sidebar--inner">
20+
<div class="grow">
2121
<div role="alert" class="mb-4 alert alert-info">
2222
{% heroicon_outline 'exclamation-circle' stroke_width=2 size=18 aria_hidden=true %}
2323
<span>

hypha/apply/projects/reports/templates/reports/report_form.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
{% include "forms/includes/form_errors.html" with form=form %}
2121

2222
<div class="wrapper wrapper--form">
23-
<div class="wrapper--sidebar--inner">
23+
<div class="grow">
2424

2525
<div role="alert" class="mb-4 alert alert-info">
2626
{% heroicon_outline 'exclamation-circle' stroke_width=2 size=18 aria_hidden=true %}
@@ -60,7 +60,7 @@
6060
</div>
6161
{% else %}
6262
<div class="wrapper wrapper--form wrapper--sidebar">
63-
<div class="wrapper--sidebar--inner">
63+
<div class="grow">
6464
{% if request.user.is_apply_staff %}
6565
<p>
6666
{% trans "Project Report Form not configured. Please add a project report form in the" %}

0 commit comments

Comments
 (0)