update doesnt work properly for quiz but eveyrthing else works
This commit is contained in:
+1
-2
@@ -11,8 +11,7 @@
|
||||
<li><a href="{{ url_for('about') }}">About</a></li>
|
||||
{% if session.user_id %}
|
||||
<li><a href="{{ url_for('bivariate') }}">Bivariate Data</a></li>
|
||||
<li><a href="{{ url_for('simultaneousequations') }}">Simultaneous Equations</a></li>
|
||||
<li><a href="{{ url_for('triganometry') }}">Triganometry</a></li>
|
||||
<li><a href="{{ url_for('linearprogramming') }}">Linear Programming</a></li>
|
||||
<li style="margin-left: auto; color: white; margin-top: 14px; margin-left: 550px;">Hi, {{ session.username }}</li>
|
||||
<li style="margin-left: 20px;"><a href="{{ url_for('logout') }}">Sign Out</a></li>
|
||||
{% else %}
|
||||
|
||||
@@ -0,0 +1,36 @@
|
||||
{% extends 'base.html' %}
|
||||
{% block content %}
|
||||
<div class="mainpart">
|
||||
<h1>Information on linearprogramming</h1>
|
||||
|
||||
<div class="information">
|
||||
<h2>information</h2>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="formulas">
|
||||
<h2>formulas</h2>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="quizzes">
|
||||
<h2>quizzes</h2>
|
||||
<ul>
|
||||
{% for quiz in quizzes %}
|
||||
<li><a href="{{ url_for('start_quiz', quiz_name=quiz) }}">{{ quiz }}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<footer class="sources">
|
||||
<div class="sourcescontent">
|
||||
<h2>Sources</h2>
|
||||
<p class="sourcestext">links to sources would go here</p>
|
||||
<p class="sourcestext">source one will embed link into text</p>
|
||||
<p class="sourcestext">source two will embed link into text</p>
|
||||
<p class="sourcestext">source three will embed link into text</p>
|
||||
<p class="sourcestext">source four will embed link into text</p>
|
||||
<div>
|
||||
</footer>
|
||||
{% endblock %}
|
||||
@@ -0,0 +1,19 @@
|
||||
<link rel="stylesheet" href="{{ url_for('static', filename='styles.css') }}">
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<h1>Quiz Question</h1>
|
||||
</header>
|
||||
<div class="container">
|
||||
<h2>Question {{ current_question }} of {{ total_questions }}</h2>
|
||||
<form method="post">
|
||||
<p>{{ question_data['question'] }}</p>
|
||||
{% for option in question_data['options'] %}
|
||||
<div>
|
||||
<input type="radio" id="{{ option }}" name="option" value="{{ option }}">
|
||||
<label for="{{ option }}">{{ option }}</label>
|
||||
</div>
|
||||
{% endfor %}
|
||||
<button type="submit">Submit</button>
|
||||
</form>
|
||||
<p>{{ feedback }}</p>
|
||||
Reference in New Issue
Block a user