Remove junk code
This commit is contained in:
parent
7c816f7322
commit
10c1f7aed3
2
static/css/style.min.css
vendored
2
static/css/style.min.css
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
@ -58,18 +58,17 @@
|
|||||||
{% endif %} -->
|
{% endif %} -->
|
||||||
|
|
||||||
{% if user.is_lecturer %}
|
{% if user.is_lecturer %}
|
||||||
<p class="form-title"><i class="fas fa-book-open"></i>My Courses</p>
|
<p class="fw-bold"><i class="fas fa-book-open"></i> My Courses</p>
|
||||||
<div class="dashboard-description">
|
{% if courses %}
|
||||||
{% if courses %}
|
<ul>
|
||||||
<div class="flex">
|
{% for course in courses %}
|
||||||
{% for course in courses %}
|
<li><a href="{{ course.get_absolute_url }}">{{ course }}</a></li>
|
||||||
<div class="flex"><a class="edit-btn" href="{{ course.get_absolute_url }}">{{ course }}</a></div>
|
{% endfor %}
|
||||||
{% endfor %}
|
</ul>
|
||||||
</div>
|
{% else %}
|
||||||
{% else %}
|
<div class="text-danger">No courses assigned!</div>
|
||||||
<div class="text-danger">No courses!</div>
|
{% endif %}
|
||||||
{% endif %}
|
<hr>
|
||||||
</div>
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<p class="fw-bold"><i class="fas fa-user"></i> Personal Info</p>
|
<p class="fw-bold"><i class="fas fa-user"></i> Personal Info</p>
|
||||||
|
|||||||
@ -100,13 +100,13 @@
|
|||||||
<a href="{% url 'quiz_progress' %}"><i class="fas fa-record-vinyl"></i>Quiz Progress Rec</a>
|
<a href="{% url 'quiz_progress' %}"><i class="fas fa-record-vinyl"></i>Quiz Progress Rec</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="{% if request.path == vr %}active{% endif %}">
|
<li class="{% if request.path == vr %}active{% endif %}">
|
||||||
<a href="{% url 'grade_results' %}"><i class="fab fa-page4"></i>Grade Results</a>
|
<a href="{% url 'grade_results' %}"><i class="fa fa-spell-check"></i>Grade Results</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="{% if request.path == ar %}active{% endif %}">
|
<li class="{% if request.path == ar %}active{% endif %}">
|
||||||
<a href="{% url 'ass_results' %}"><i class="fa fa-spell-check"></i>Assesment Results</a>
|
<a href="{% url 'ass_results' %}"><i class="fa fa-list-ol"></i> Assesment Results</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="{% if request.path == cr %}active{% endif %}">
|
<li class="{% if request.path == cr %}active{% endif %}">
|
||||||
<a href="{% url 'course_registration' %}"><i class="fas fa-plus"></i>Add & Drop Course</a>
|
<a href="{% url 'course_registration' %}"><i class="fas fa-plus"></i>Add & Drop Course</a>
|
||||||
</li>
|
</li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<br />
|
<br />
|
||||||
|
|||||||
@ -11,19 +11,7 @@
|
|||||||
</ol>
|
</ol>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
{% if messages %}
|
{% include 'snippets/messages.html' %}
|
||||||
{% for message in messages %}
|
|
||||||
{% if message.tags == 'error' %}
|
|
||||||
<div class="alert alert-danger">
|
|
||||||
<i class="fas fa-exclamation-circle"></i>{{ message }}
|
|
||||||
</div>
|
|
||||||
{% else %}
|
|
||||||
<div class="alert alert-success">
|
|
||||||
<i class="fas fa-check-circle"></i>{{ message }}
|
|
||||||
</div>
|
|
||||||
{% endif %}
|
|
||||||
{% endfor %}
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
<div class="title-1 mb-3"><i class="fas fa-table"></i>Manage Score</div>
|
<div class="title-1 mb-3"><i class="fas fa-table"></i>Manage Score</div>
|
||||||
|
|
||||||
@ -47,7 +35,7 @@
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<p>To manage your scores, please select the appropriate course using the button above.</p>
|
<p>To manage scores, please select the course using the button above.</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -25,58 +25,24 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- <div style="margin-left: 75%; margin-right: 0;" class="drop-down">
|
<br>
|
||||||
<a class="add-button" href="#">Select another course<i class="fas fa-angle-down fa-pull-right"></i></a>
|
|
||||||
|
|
||||||
<div class="content">
|
|
||||||
<div class="content-a">
|
|
||||||
{% for course in courses %}
|
|
||||||
<a href="{% url 'add_score_for' course.id %}" title="{{ course.title }}">{{ course.code }}</a>
|
|
||||||
{% empty %}
|
|
||||||
<p><i class="far fa-frown"></i>No course.</p>
|
|
||||||
{% endfor %}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div> -->
|
|
||||||
|
|
||||||
<h1>{{ myclass.lecturer }}</h1>
|
|
||||||
|
|
||||||
<div class="flex">
|
|
||||||
{% for i in myclass.student.all %}
|
|
||||||
<div class="flex"><a class="edit-btn" href="{{ i.get_absolute_url }}">{{ i }}</a></div>
|
|
||||||
{% endfor %}
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<h4 class="title-1">Submit score for {{ course }} Students</h4>
|
<h4 class="title-1">Submit score for {{ course }} Students</h4>
|
||||||
<p>{{ course.summary }}</p>
|
<p>{{ course.summary }}</p>
|
||||||
|
|
||||||
{% if messages %}
|
{% include 'snippets/messages.html' %}
|
||||||
{% for message in messages %}
|
|
||||||
{% if message.tags == 'error' %}
|
|
||||||
<div class="alert alert-danger">
|
|
||||||
<i class="fas fa-exclamation-circle"></i>{{ message }}
|
|
||||||
</div>
|
|
||||||
{% else %}
|
|
||||||
<div class="alert alert-success">
|
|
||||||
<i class="fas fa-check-circle"></i>{{ message }}
|
|
||||||
</div>
|
|
||||||
{% endif %}
|
|
||||||
{% endfor %}
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
<form action="" method="POST">
|
<form action="" method="POST">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
<div class="btn-flex">
|
<div class="btn-flex">
|
||||||
<button title="Save Score" type="submit" class="btn btn-primary">Save</button>
|
<button title="Save Score" type="submit" class="btn btn-primary">Save</button>
|
||||||
<span title="Allow editing" class="btn btn-success"><i class="fas fa-pencil-alt"></i>Edit</span>
|
|
||||||
<a target="_blank" href="{% url 'result_sheet_pdf_view' id=course.id %}">
|
<a target="_blank" href="{% url 'result_sheet_pdf_view' id=course.id %}">
|
||||||
<span data-toggle="tooltip" title="Print Result sheet" class="btn btn-warning">
|
<span data-toggle="tooltip" title="Print Result sheet" class="btn btn-warning">
|
||||||
<i class="far fa-file-pdf"></i>Generat PDF
|
<i class="far fa-file-pdf"></i> Grade report
|
||||||
</span>
|
</span>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<h4>{{ current_semester }} Semester <i class="info-text bg-danger">{{ current_session }}</i></h4>
|
<h4 class="mt-3">{{ current_semester }} Semester <i class="text-light px-2 rounded small bg-danger">{{ current_session }}</i></h4>
|
||||||
<div class="table-responsive">
|
<div class="table-responsive">
|
||||||
<table class="table table-light">
|
<table class="table table-light">
|
||||||
<thead>
|
<thead>
|
||||||
@ -117,11 +83,11 @@
|
|||||||
<td>{{ student.total }}</td>
|
<td>{{ student.total }}</td>
|
||||||
|
|
||||||
<td>{{ student.point }}</td>
|
<td>{{ student.point }}</td>
|
||||||
<td class="{% if student.grade == 'F' %}danger{% else %}success{% endif %}">{{ student.grade }}</td>
|
<td class="{% if student.grade == 'F' %}text-danger{% else %}text-success{% endif %}">{{ student.grade }}</td>
|
||||||
{% if student.comment == 'PASS' %}
|
{% if student.comment == 'PASS' %}
|
||||||
<td class="success"><i class="fas fa-check-circle"></i> {{ student.comment }}</td>
|
<td class="text-success">✓ {{ student.comment }}</td>
|
||||||
{% elif student.comment == 'FAIL' %}
|
{% elif student.comment == 'FAIL' %}
|
||||||
<td class="danger"><i class="fas fa-exclamation-circle"></i> {{ student.comment }}</td>
|
<td class="text-danger">⨂ {{ student.comment }}</td>
|
||||||
{% else %}<td></td>
|
{% else %}<td></td>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</tr>
|
</tr>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user