Added css and js links to error and results pages

parent 9c6ba65b
<!DOCTYPE html>
<html>
<body>
<script src="{{ url_for('static', filename='GAS.js') }}"></script>
<link rel="stylesheet" type="text/css" href="{{ url_for('static',filename='GAS.css') }}">
<div class="error">
<h1>An error has occured during your audit!</h1>
<p>
{% for line in error_message %}
{{line}}<br>
{% endfor %}
</p>
</div>
<button type="button" onclick="goBack()">Click here to go back</button>
<head>
<title> Graduation Audit System </title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<link rel="stylesheet" href={{ url_for('static', filename='GAS.css') }}>
<link rel="shortcut icon" href={{ url_for('static', filename='favicon.ico') }} type="image/x-icon">
<link rel="icon" href={{ url_for('static', filename='favicon.ico') }} type="image/x-icon">
<script src={{ url_for('static', filename='GAS.js') }}></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head>
</body>
<body>
<h1>An error has occured during your audit!</h1>
<p>
{% for line in error_message %}
{{line}}<br>
{% endfor %}
</p>
<button type="button" onclick="goBack()">Click here to go back</button>
</body>
</html>
<!DOCTYPE html>
<html>
<body>
<link rel="stylesheet" type="text/css" href="{{url_for('static',filename='GAS.css') }}">
<div class="site">
<script src="{{ url_for('static', filename='GAS.js') }}"></script>
<div class="result">
<h1>Audit Result</h1>
{% if response.can_grad %}
<p>{{response.transcript.name}} is able to graduate with a degree in {{response.transcript.major}}.</p>
{% else %}
<p>{{response.transcript.name}} is not able to graduate.<br>To graduate, {{response.transcript.name}} needs to take <br></p>
<ul>
{% for class in response.missing_classes %}
<li>{{class}}</li>
{% endfor %}
{# ex: need 6 hours of americanHistory requirement #}
{% for type,number in response.missing_hours %}
<li>{{number}} hours of {{type}}</li>
{# 6 hours of americanHistory #}
{% endfor %}
{% if response.missing_electives != 0 %}
<li>{{response.missing_electives}} hours of elective credits</li>
{% endif %}
</ul>
{% endif %}
<button onclick="goBack()">Click here to go back</button>
</div>
</div>
</body>
<head>
<title> Graduation Audit System </title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<link rel="stylesheet" href={{ url_for('static', filename='GAS.css') }}>
<link rel="shortcut icon" href={{ url_for('static', filename='favicon.ico') }} type="image/x-icon">
<link rel="icon" href={{ url_for('static', filename='favicon.ico') }} type="image/x-icon">
<script src={{ url_for('static', filename='GAS.js') }}></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head>
<body>
<div class="result">
<h1>Audit Result</h1>
{% if response.can_grad %}
<p>{{response.transcript.name}} is able to graduate with a degree in {{response.transcript.major}}.</p>
{% else %}
<p>{{response.transcript.name}} is not able to graduate.<br>To graduate, {{response.transcript.name}} needs to take <br></p>
<ul>
{% for class in response.missing_classes %}
<li>{{class}}</li>
{% endfor %}
{# ex: need 6 hours of americanHistory requirement #}
{% for type,number in response.missing_hours %}
<li>{{number}} hours of {{type}}</li>
{# 6 hours of americanHistory #}
{% endfor %}
{% if response.missing_electives != 0 %}
<li>{{response.missing_electives}} hours of elective credits</li>
{% endif %}
</ul>
{% endif %}
<button onclick="goBack()">Click here to go back</button>
</div>
</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