..
This commit is contained in:
@@ -65,6 +65,10 @@ class UserAnswerTable(tables.Table):
|
|||||||
#delete = tables.LinkColumn(
|
#delete = tables.LinkColumn(
|
||||||
# "sbas:user_answer_delete", text="Delete", args=[A("pk")], orderable=False
|
# "sbas:user_answer_delete", text="Delete", args=[A("pk")], orderable=False
|
||||||
#)
|
#)
|
||||||
|
view = tables.LinkColumn('sbas:user_answer_view',
|
||||||
|
text='View',
|
||||||
|
args=[A('pk')],
|
||||||
|
orderable=False)
|
||||||
class Meta:
|
class Meta:
|
||||||
model = CidUserAnswer
|
model = CidUserAnswer
|
||||||
template_name = "django_tables2/bootstrap4.html"
|
template_name = "django_tables2/bootstrap4.html"
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ CID: {{cid}}
|
|||||||
<h2>Question [{{pos|add:1}}/{{exam_length}}]</h2>
|
<h2>Question [{{pos|add:1}}/{{exam_length}}]</h2>
|
||||||
{% if exam.publish_results %}
|
{% if exam.publish_results %}
|
||||||
<div class="alert alert-primary" role="alert">
|
<div class="alert alert-primary" role="alert">
|
||||||
Exam is in review mode.
|
Exam is in review mode. Add question feedback <a href="{% url 'feedback_create' question_type='sbas' pk=question.pk %}">here</a>.
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
<h1>PENRA Courses</h1>
|
<h1>PENRA Courses</h1>
|
||||||
{% if not request.user.is_authenticated %}
|
{% if not request.user.is_authenticated %}
|
||||||
<a href="{% url 'login'%}">Log in</a>
|
<a href="{% url 'login'%}">Log in</a>
|
||||||
<a href="{% url 'password_reset'%}">Reset password</a>
|
<!-- <a href="{% url 'password_reset'%}">Reset password</a> -->
|
||||||
{% else %}
|
{% else %}
|
||||||
<a href="{% url 'anatomy:index'%}">Anatomy</a>
|
<a href="{% url 'anatomy:index'%}">Anatomy</a>
|
||||||
<a href="{% url 'physics:index'%}">Physics</a>
|
<a href="{% url 'physics:index'%}">Physics</a>
|
||||||
|
|||||||
@@ -3,12 +3,14 @@
|
|||||||
{% block title %}Login{% endblock %}
|
{% block title %}Login{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<h2>Login</h2>
|
<h2>Login</h2>
|
||||||
<form method="post">
|
<form method="post">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
{{ form.as_p }}
|
{{ form.as_p }}
|
||||||
<button type="submit">Login</button>
|
<button type="submit">Login</button>
|
||||||
</form>
|
</form>
|
||||||
<p><a href="{% url 'password_reset' %}">Reset password</a></p>
|
<!-- <p><a href="{% url 'password_reset' %}">Reset password</a></p> -->
|
||||||
<p><a href="{% url 'password_change' %}">Change password</a></p>
|
{% if request.user.is_staff %}
|
||||||
|
<p><a href="{% url 'password_change' %}">Change password</a></p>
|
||||||
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
Reference in New Issue
Block a user