SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit d1c4300a authored by Jean-Sébastien Caux's avatar Jean-Sébastien Caux
Browse files

Basic voting results displayed (for Admin) in PotFel detail page

parent dbbf4796
No related branches found
No related tags found
No related merge requests found
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
</div> </div>
{% if perms.scipost.can_manage_college_composition %} {% if perms.scipost.can_manage_college_composition %}
<h3>Admin actions</h3>
<div class="row"> <div class="row">
<div class="col-md-6"> <div class="col-md-6">
<ul> <ul>
...@@ -44,14 +45,55 @@ ...@@ -44,14 +45,55 @@
</div> </div>
{% endif %} {% endif %}
{% if perms.scipost.can_manage_college_composition %}
<div class="row">
<div class="col-12">
<h3>Voting results</h3>
</div>
</div>
<div class="row">
<div class="col-1"></div>
<div class="col-3">
<h4>Agreed:</h4>
<ul>
{% for fellow in potfel.in_agreement.all %}
<li>{{ fellow }}</li>
{% empty %}
<li>No Fellow has agreed</li>
{% endfor %}
</ul>
</div>
<div class="col-3">
<h4>Abstained:</h4>
<ul>
{% for fellow in potfel.in_abstain.all %}
<li>{{ fellow }}</li>
{% empty %}
<li>No Fellow has abstained</li>
{% endfor %}
</ul>
</div>
<div class="col-3">
<h4>Agreed:</h4>
<ul>
{% for fellow in potfel.in_disagreement.all %}
<li>{{ fellow }}</li>
{% empty %}
<li>No Fellow has disagreed</li>
{% endfor %}
</ul>
</div>
</div>
{% endif %}
<div class="row"> <div class="row">
{% if perms.scipost.can_manage_college_composition %} {% if perms.scipost.can_manage_college_composition %}
<div class="col-md-6"> <div class="col-md-6">
<h3>Add an event for this Potential Fellowship</h3> <h3>Add an event for this Potential Fellowship</h3>
<form class="d-block mt-2 mb-3" action="{% url 'colleges:potential_fellowship_event_create' pk=potfel.id %}" method="post"> <form class="d-block mt-2 mb-3" action="{% url 'colleges:potential_fellowship_event_create' pk=potfel.id %}" method="post">
{% csrf_token %} {% csrf_token %}
{{ pfevent_form|bootstrap }} {{ pfevent_form|bootstrap }}
<input type="submit" name="submit" value="Submit" class="btn btn-outline-secondary"> <input type="submit" name="submit" value="Submit" class="btn btn-outline-secondary">
</form> </form>
</div> </div>
{% endif %} {% endif %}
......
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