Changed name of variables

parent 950fca2c
......@@ -2,25 +2,26 @@
<html>
<body>
<h1>Audit Result</h1>
{% if transcript.ableToGraduate %}
<p>{{transcript.studentName}} is able to graduate with a degree in {{transcript.degree}}.</p>
{% if response.can_grad %}
<p>{{response.name}} is able to graduate with a degree in {{response.major}}.</p>
{% else %}
<p>{{transcript.studentName}} is not able to graduate.<br>To graduate, {{transcript.studentName}} needs to take <br></p>
<p>{{response.name}} is not able to graduate.<br>To graduate, {{response.name}} needs to take <br></p>
<ul>
{% for class in transcript.missingClasses %}
{% for class in response.missing_classes %}
<li>{{class}}</li>
{% endfor %}
{# ex: need 6 hours of americanHistory requirement #}
{% for missingHour in transcript.needsHours %}
<li>{{missingHour.number}} hours of {{missingHour.type}}</li>
{% for type,number in response.missing_hours %}
<li>{{number}} hours of {{type}}</li>
{# 6 hours of americanHistory #}
{% endfor %}
{% if transcript.electiveHours != 0 %}
<li>{{transcript.electiveHours}} hours of elective credits}</li>
{% if response.missing_electives != 0 %}
<li>{{response.missing_electives}} hours of elective credits</li>
{% endif %}
</ul>
{% endif %}
</body>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment