-
Notifications
You must be signed in to change notification settings - Fork 972
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat[ac-1]: implemented logic for updating course instructor
- Loading branch information
1 parent
c0bc007
commit 0c55dfc
Showing
5 changed files
with
163 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
80 changes: 80 additions & 0 deletions
80
FusionIIIT/templates/programme_curriculum/acad_admin/admin_view_all_course_instructor.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
{% extends 'programme_curriculum/acad_admin/common.html' %} | ||
{% block content %} | ||
<div class="ui top attached tabular large menu"> | ||
<a class="item active" data-tab="afirst">Course Instructors</a> | ||
</div> | ||
<div class="ui bottom attached tab segment active" data-tab="afirst"> | ||
<div class="content"> | ||
<div class="description" style="overflow: auto; max-height: 495px"> | ||
<table class="ui celled medium table" | ||
style="text-align: center; | ||
margin: auto;"> | ||
<thead> | ||
<tr style="font-size: medium; | ||
background-color: whitesmoke;"> | ||
<td><h4>Course Code</h4></td> | ||
<td><h4>Course Name</h4></td> | ||
<td><h4>Course Version</h4></td> | ||
<td><h4>Instructor</h4></td> | ||
<td><h4>Batch</h4></td> | ||
<td><h4>Year</h4></td> | ||
<td></td> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{% for instructor in course_instructors %} | ||
<tr> | ||
<td><a href="{% url 'programme_curriculum:admin_view_a_course' instructor.course_id.id %}">{{ instructor.course_id.code }}</a></td> | ||
<td>{{ instructor.course_id.name }}</td> | ||
<td>{{ instructor.course_id.version }}</td> | ||
<td>{{ instructor.instructor_id.id }}</td> | ||
<td>{{ instructor.batch_id.name }} {{ instructor.batch_id.discipline.acronym }}</td> | ||
<td>{{ instructor.batch_id.year }}</td> | ||
<td class="collapsing"> | ||
<a class="tiny ui positive animated button" tabindex="0" | ||
href="{% url 'programme_curriculum:update_course_instructor_form' instructor.id %}" | ||
type="Submit" name="Submit"> | ||
<div class="visible content">EDIT</div> | ||
<div class="hidden content"> | ||
<i class="edit icon"></i> | ||
</div> | ||
</a> | ||
</td> | ||
</tr> | ||
{% empty %} | ||
<tr> | ||
<td colspan="6">No Course Instructors Available</td> | ||
</tr> | ||
{% endfor %} | ||
</tbody> | ||
</table> | ||
</div> | ||
</div> | ||
</div> | ||
{% endblock %} | ||
|
||
{% block rightcontent %} | ||
<br> | ||
<br> | ||
<div class="ui center aligned segment"> | ||
<div class="description" style="overflow: auto; height: 400px"> | ||
<a class="fluid ui large primary animated button" tabindex="0" | ||
href="{% url 'programme_curriculum:add_course_instructor' %}" | ||
type="Submit" name="Submit"> | ||
<div class="visible content">ADD COURSE INSTRUCTOR</div> | ||
<div class="hidden content"> | ||
<i class="add icon"></i> | ||
</div> | ||
</a> | ||
<div class="ui horizontal divider">FILTER SEARCH</div> | ||
<form class="ui small form" method="get"> | ||
{{ courseinstructorfilter.form }} | ||
<br> | ||
<button class="ui tiny basic primary button" type="Submit" name="Submit"> | ||
<i class="search icon"></i> | ||
Search | ||
</button> | ||
</form> | ||
</div> | ||
</div> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters