Skip to content

Commit d97939d

Browse files
committed
partner dashboard
1 parent 4ce71ee commit d97939d

1 file changed

Lines changed: 45 additions & 35 deletions

File tree

hypha/apply/dashboard/templates/dashboard/partner_dashboard.html

Lines changed: 45 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -12,52 +12,62 @@
1212
{% endblock %}
1313

1414
{% block content %}
15-
<div class="wrapper wrapper--large wrapper--inner-space-medium">
15+
<div class="flex flex-col gap-8 my-8">
1616

17-
<div class="wrapper wrapper--bottom-space">
18-
<h2 class="card-title">
19-
{% trans "You are the partner of these submissions" %} <span class="py-0.5 px-2.5 text-sm font-medium text-blue-800 bg-blue-100 rounded-sm dark:text-blue-300 dark:bg-blue-900 me-2">{{ partner_submissions_count }}</span>
17+
<section>
18+
<h2 class="mb-2 card-title">
19+
{% trans "You are the partner of these submissions" %} <span class="badge badge-info badge-outline badge-sm">{{ partner_submissions_count }}</span>
2020
</h2>
2121

2222
{% if partner_submissions.data %}
23-
{% render_table partner_submissions %}
23+
<div class="overflow-x-auto border border-base-200 rounded-box">
24+
{% render_table partner_submissions %}
25+
</div>
2426
{% else %}
2527
{% trans "No submissions" %}
2628
{% endif %}
27-
</div>
29+
</section>
2830

29-
<div class="wrapper wrapper--bottom-space">
30-
<h2 class="card-title">{% trans "Your active submissions" %}</h2>
31-
{% for submission in my_submissions %}
31+
<section>
32+
<h2 class="mb-2 card-title">{% trans "Your active submissions" %}</h2>
33+
<div class="overflow-x-auto border border-base-200 rounded-box">
3234
<div class="list-row">
33-
<div class="wrapper wrapper--status-bar-inner">
34-
<div>
35-
<h5 class="m-0 heading"><a class="underline" href="{% url 'funds:submissions:detail' submission.id %}">{{ submission.title_text_display }}</a></h5>
36-
<h6 class="m-0 heading heading--submission-meta"><span>{% trans "Submitted" %}:</span> {{ submission.submit_time.date }} {% trans "by" %} {{ submission.user.get_full_name }}</h6>
35+
{% for submission in my_submissions %}
36+
<div class="wrapper wrapper--status-bar-inner">
37+
<div>
38+
<h5 class="m-0 heading"><a class="underline" href="{% url 'funds:submissions:detail' submission.id %}">{{ submission.title_text_display }}</a></h5>
39+
<h6 class="m-0 heading heading--submission-meta"><span>{% trans "Submitted" %}:</span> {{ submission.submit_time.date }} {% trans "by" %} {{ submission.user.get_full_name }}</h6>
40+
</div>
41+
{% status_bar submission.workflow submission.phase request.user css_class="status-bar--small" %}
3742
</div>
38-
{% status_bar submission.workflow submission.phase request.user css_class="status-bar--small" %}
39-
</div>
40-
{% if request.user|has_edit_perm:submission %}
41-
<a class="btn btn-primary" href="{% url 'funds:submissions:edit' submission.id %}">
42-
{% if submission.status == 'draft_proposal' %}
43-
{% trans "Start your" %} {{ submission.stage }} {% trans "application" %}
44-
{% else %}
45-
{% trans "Edit" %}
46-
{% endif %}
47-
</a>
48-
{% endif %}
43+
{% if request.user|has_edit_perm:submission %}
44+
<a class="btn btn-primary" href="{% url 'funds:submissions:edit' submission.id %}">
45+
{% if submission.status == 'draft_proposal' %}
46+
{% trans "Start your" %} {{ submission.stage }} {% trans "application" %}
47+
{% else %}
48+
{% trans "Edit" %}
49+
{% endif %}
50+
</a>
51+
{% endif %}
52+
</div>
53+
{% empty %}
54+
<p class="p-4 text-center text-fg-muted">
55+
{% trans "No active submissions" %}
56+
</p>
57+
{% endfor %}
4958
</div>
50-
{% empty %}
51-
{% trans "No active submissions" %}
52-
{% endfor %}
53-
</div>
59+
</section>
5460

55-
{% if my_inactive_submissions.data %}
56-
<div class="wrapper wrapper--bottom-space">
57-
<h2 class="card-title">{% trans "Submission history" %}</h2>
58-
{% render_table my_inactive_submissions %}
59-
</div>
60-
{% endif %}
61-
</div>
61+
{% if my_inactive_submissions.data %}
62+
<section>
63+
<h2 class="mb-2 card-title">
64+
{% trans "Submission history" %}
65+
</h2>
66+
<div class="overflow-x-auto border border-base-200 rounded-box">
67+
{% render_table my_inactive_submissions %}
68+
</div>
69+
</section>
70+
{% endif %}
71+
</div>
6272

6373
{% endblock %}

0 commit comments

Comments
 (0)