Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
widget_group 25
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Andre Matthew Dumandan
widget_group 25
Commits
f7adb4ea
Commit
f7adb4ea
authored
May 17, 2022
by
Earl Edison B. Felizardo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added templates for assignment list and details
parent
42e475ad
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
49 additions
and
0 deletions
+49
-0
assignments_detail.html
...et_group_25/templates/assignments/assignments_detail.html
+19
-0
assignments_list.html
...dget_group_25/templates/assignments/assignments_list.html
+30
-0
No files found.
widget_group_25/widget_group_25/templates/assignments/assignments_detail.html
0 → 100644
View file @
f7adb4ea
{% extends 'base.html' %}
{% load static %}
{% block title %}Assignments{% endblock %}
{% block styles %}
<link
rel=
"stylesheet"
href=
"{% static 'assignments/css/list_styles.css' %}"
>
{% endblock %}
{% block content %}
<h1>
{{ assignment.name }}
</h1>
<ul>
<li><b>
Course
&
Section:
</b>
{{ course.course_code }} {{ course.course_title }} {{ course.section }}
</li>
<li><b>
Description:
</b>
{{ assignment.description }}
</li>
<li><b>
Perfect score:
</b>
{{ assignment.max_points }}
</li>
<li><b>
Passing score:
</b>
{{ assignment.passing_score }}
</li>
<li><img
src=
"{% static 'assignments/css/assignment.png' %}"
alt=
"assignment"
></li>
</ul>
{% endblock %}
widget_group_25/widget_group_25/templates/assignments/assignments_list.html
0 → 100644
View file @
f7adb4ea
{% extends 'base.html' %}
{% load static %}
{% block title %}Assignments{% endblock %}
{% block styles %}
<link
rel=
"stylesheet"
href=
"{% static 'assignments/css/list_styles.css' %}"
>
{% endblock %}
{% block content %}
<header>
<h1>
Assignments Per Course
</h1>
</header>
<p>
<ul>
{% for course in course_list %}
<li>
{{ course.course_code }} {{ course.course_title }} {{ course.section }}
<ul>
{% for assignment in assignments_list %}
{% if assignment.course_code == course %}
<li><a
href=
"{% url 'assignments:assignment-detail' pk=assignment.pk %}"
>
{{ assignment.name }}
</a></li>
{% endif %}
{% endfor %}
</ul>
</li>
{% endfor %}
</ul>
</p>
{% endblock %}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment