Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
widget_tee jays angelos
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
Ramon Angelo Enriquez
widget_tee jays angelos
Commits
0770059c
Commit
0770059c
authored
May 09, 2022
by
Paul Angelo Sy
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'sy/assignments'
parents
5267f87b
67c4d621
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
43 additions
and
21 deletions
+43
-21
detail.html
...ays_angelos/assignments/templates/assignments/detail.html
+9
-5
index.html
...jays_angelos/assignments/templates/assignments/index.html
+19
-15
base.html
widget_tee_jays_angelos/templates/base.html
+14
-0
settings.py
widget_tee_jays_angelos/widget_tee_jays_angelos/settings.py
+1
-1
No files found.
widget_tee_jays_angelos/assignments/templates/assignments/detail.html
View file @
0770059c
<h1>
{{course}} {{course.course_title}}
</h1>
{% extends 'base.html' %}
<li>
Name: {{assignment.name}}
</li>
<li>
Description: {{assignment.description}}
</li>
{% block content %}
<li>
Perfect Score: {{assignment.max_points}}
</li>
<h1>
{{course}} {{course.course_title}}
</h1>
<li>
Passing Score: {{assignment.passing_score}}
</li>
<li>
Name: {{assignment.name}}
</li>
<li>
Description: {{assignment.description}}
</li>
<li>
Perfect Score: {{assignment.max_points}}
</li>
<li>
Passing Score: {{assignment.passing_score}}
</li>
{% endblock %}
widget_tee_jays_angelos/assignments/templates/assignments/index.html
View file @
0770059c
<h1>
Assignments Per Course
</h1>
{% extends 'base.html' %}
{% if course_list %}
{% for course in course_list %}
{% block content %}
<li>
{{course}} {{course.course_title}} {{course.section}}
<h1>
Assignments Per Course
</h1>
{% for assignment in assignment_list %}
{% if course_list %}
{% if assignment.course_code == course %}
{% for course in course_list %}
<ul>
<li>
{{course}} {{course.course_title}} {{course.section}}
<li>
<a
href=
"{% url 'detail' assignment.name%}"
>
{{assignment.name}}
</a></li>
{% for assignment in assignment_list %}
</ul>
{% if assignment.course_code == course %}
{% endif %}
<ul>
<li>
<a
href=
"/assignments/{{assignment.name}}/"
>
{{assignment.name}}
</a></li>
</ul>
{% endif %}
{% endfor %}
</li>
{% endfor %}
{% endfor %}
</li>
{% else %}
{% endfor %}
<p>
No assignments are available
</p>
{% else %}
{% endif %}
<p>
No assignments are available
</p>
{% endblock %}
{% endif %}
widget_tee_jays_angelos/templates/base.html
0 → 100644
View file @
0770059c
{% load static %}
<!DOCTYPE html>
<html
lang=
"en"
>
<head>
<meta
charset =
"UTF-8"
<
meta
http-equiv=
"X-UA-COMPATIBLE"
content=
"IE=edge"
>
<meta
name=
"viewport"
content =
"width=device-width, inital-scale=1.0"
>
</head>
<body>
{% block content %}
{% endblock %}
</body>
</html>
widget_tee_jays_angelos/widget_tee_jays_angelos/settings.py
View file @
0770059c
...
@@ -62,7 +62,7 @@ ROOT_URLCONF = 'widget_tee_jays_angelos.urls'
...
@@ -62,7 +62,7 @@ ROOT_URLCONF = 'widget_tee_jays_angelos.urls'
TEMPLATES
=
[
TEMPLATES
=
[
{
{
'BACKEND'
:
'django.template.backends.django.DjangoTemplates'
,
'BACKEND'
:
'django.template.backends.django.DjangoTemplates'
,
'DIRS'
:
[],
'DIRS'
:
[
os
.
path
.
join
(
BASE_DIR
,
'templates'
)
],
'APP_DIRS'
:
True
,
'APP_DIRS'
:
True
,
'OPTIONS'
:
{
'OPTIONS'
:
{
'context_processors'
:
[
'context_processors'
:
[
...
...
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