Commit 950fca2c authored by Arman Sobhi's avatar Arman Sobhi

Added new template

parent e11b0f00
......@@ -2,21 +2,26 @@
<html>
<body>
<h1>Audit Result</h1>
{% if ableToGraduate %}
<p id=gradEligibilty>{{studentName}} is able to graduate with a degree in {{degree}}.</p>
{% if transcript.ableToGraduate %}
<p>{{transcript.studentName}} is able to graduate with a degree in {{transcript.degree}}.</p>
{% else %}
<p id=gradEligibilty>{{studentName}} is not able to graduate.</p>
<p>To graduate, {{studentName}} needs to take <br>
<p>{{transcript.studentName}} is not able to graduate.<br>To graduate, {{transcript.studentName}} needs to take <br></p>
<ul>
{% for class in requiredClasses %}
{% for class in transcript.missingClasses %}
<li>{{class}}</li>
{% endfor %}
{# ex: need 6 hours of americanHistory requirement #}
{% for missingHour in transcript.needsHours %}
<li>{{missingHour.number}} hours of {{missingHour.type}}</li>
{# 6 hours of americanHistory #}
{% endfor %}
{% if transcript.electiveHours != 0 %}
<li>{{transcript.electiveHours}} hours of elective credits}</li>
</ul>
{% endif %}
{# Variables Needed #}
{# ableToGraduate: boolean variable for whether or not a student can graduate #}
{# studentName: name of student as a string #}
{# requiredClasses: array of strings of classes needed to take #}
</body>
</html>
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