Skip to content
Snippets Groups Projects
Commit 57607729 authored by Odin Johan Vatne's avatar Odin Johan Vatne
Browse files

Add buffer to project priority

parent 50d62603
No related branches found
No related tags found
No related merge requests found
...@@ -2,6 +2,10 @@ ...@@ -2,6 +2,10 @@
padding-inline-start: 1em; padding-inline-start: 1em;
} }
.priorityLi.overflow {
list-style-type: none;
}
#student-applications-list { #student-applications-list {
padding-inline-start: 0; padding-inline-start: 0;
} }
......
...@@ -10,12 +10,16 @@ ...@@ -10,12 +10,16 @@
{% block content %} {% block content %}
{% load html_components %} {% load html_components %}
{% load custom_filters %} {% load custom_filters %}
{% if applications %} {% if applications or closedApplications %}
<form action="/applications/update_priorities/" method="post"> <form action="/applications/update_priorities/" method="post">
{% csrf_token %} {% csrf_token %}
<ol id="student-priority-list"> <ol id="student-priority-list">
{% for i in 5|times %} {% for i in 8|times %}
<li> {% if i <= 5 %}
<li class="priorityLi">
{% else %}
<li class="priorityLi overflow">
{% endif %}
<select class="prioritySelect" name="priority{{i}}" oninput="checkForConflicts(this)"> <select class="prioritySelect" name="priority{{i}}" oninput="checkForConflicts(this)">
<option value="">--</option> <option value="">--</option>
{% for application in applications %} {% for application in applications %}
...@@ -50,7 +54,7 @@ ...@@ -50,7 +54,7 @@
{% endfor %} {% endfor %}
{% endif %} {% endif %}
{% if closedApplications %} {% if closedApplications %}
<h2>Declined Applications</h2> <h2>Closed Applications</h2>
{% for application in closedApplications %} {% for application in closedApplications %}
{% application_student application comments|for_application:application False %} {% application_student application comments|for_application:application False %}
{% endfor %} {% endfor %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment