SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit 6b523d8d authored by George Katsikas's avatar George Katsikas :goat:
Browse files

remove manage invitations from nominations

add invitation status to nomination details summary
parent f972f6be
No related branches found
No related tags found
1 merge request!58[Fellowship Nominations] Rework the fellowship nomination system and UI
......@@ -44,10 +44,19 @@
</div>
<div class="row mb-2 justify-content-between">
<small class="col text-muted text-nowrap">Publications</small>
<div class="col-auto">{{ nomination.profile.publications.all.count }}</div>
<small class="col text-muted text-nowrap">Total rounds</small>
<div class="col-auto">{{ nomination.voting_rounds.all.count }}</div>
{% if nomination.invitation %}
<small class="col-auto text-muted text-nowrap">Invitation status</small>
<div class="col">
<span class="badge bg-{{ nomination.invitation.get_response_color }}">{{ nomination.invitation.get_response_display }}</span>
</div>
{% else %}
<small class="col text-muted text-nowrap">Publications</small>
<div class="col-auto">{{ nomination.profile.publications.all.count }}</div>
<small class="col text-muted text-nowrap">Total rounds</small>
<div class="col-auto">{{ nomination.voting_rounds.all.count }}</div>
{% endif %}
</div>
</div>
</div>
......
......@@ -76,19 +76,4 @@
<div id="search-nominations-results" class="mt-2"></div>
{% if "edadmin" in user_roles %}
<details id="invitations-details" class="border border-success border-2 mt-4">
<summary class="bg-success bg-opacity-10 p-2 d-block list-triangle">
<div class="fs-5">Manage invitations</div>
</summary>
<div class="p-2 mt-2">
<div id="invitations_tablist"
hx-get="{% url 'colleges:_hx_nominations_invitations' %}?response=notyetinvited"
hx-trigger="toggle from:#invitations-details"
hx-target="#invitations_tablist"></div>
</div>
</details>
{% endif %}
{% endblock content %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment