Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
widget_Alipins
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
Angelico Ruiz T. Teaño
widget_Alipins
Commits
f0b12b0f
Commit
f0b12b0f
authored
May 09, 2022
by
Angelico Ruiz T. Teaño
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add base html template and css styling to assignments
parent
3baf6e19
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
93 additions
and
46 deletions
+93
-46
style.css
widget_alipins/assignments/static/assignments/style.css
+43
-0
base.html
widget_alipins/assignments/templates/assignments/base.html
+16
-0
detail.html
widget_alipins/assignments/templates/assignments/detail.html
+13
-18
index.html
widget_alipins/assignments/templates/assignments/index.html
+21
-28
No files found.
widget_alipins/assignments/static/assignments/style.css
0 → 100644
View file @
f0b12b0f
body
{
font-family
:
sans-serif
,
Arial
,
Helvetica
;
color
:
#2d384e
;
margin
:
40px
;
line-height
:
2
;
}
div
{
margin
:
auto
;
width
:
50%
;
border
:
3px
solid
rgb
(
194
,
129
,
7
);
padding
:
20px
40px
40px
80px
;
}
h1
{
font-size
:
40px
;
text-align
:
center
;
text-decoration
:
underline
;
}
h2
{
font-size
:
28px
;
}
li
{
font-size
:
20px
;
}
p
{
font-size
:
20px
;
}
span
{
font-weight
:
bold
;
}
span
.perfect
{
color
:
rgb
(
96
,
189
,
96
);
}
span
.passing
{
color
:
#bb5959
}
\ No newline at end of file
widget_alipins/assignments/templates/assignments/base.html
0 → 100644
View file @
f0b12b0f
{% 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, initial-scale=1.0"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"{% static 'assignments/style.css' %}"
>
<title>
{% block title %} Assignments {% endblock %}
</title>
</head>
<body>
{% block content %}
{% endblock %}
</body>
</html>
\ No newline at end of file
widget_alipins/assignments/templates/assignments/detail.html
View file @
f0b12b0f
<!DOCTYPE html>
{% extends 'assignments/base.html' %}
<html
lang=
"en"
>
{% block title %}{{assignment.name}} | {{assignment.course.course_code}}{% endblock %}
<head>
{% block content %}
<meta
charset=
"UTF-8"
>
<h1>
{{assignment.course.course_code}} | {{assignment.course.course_title}} - {{assignment.course.section}}
</h1>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
>
<div>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
>
<h2>
Assignment: {{assignment.name}}
</h2>
<title>
{{assignment.name}} | {{assignment.course.course_code}}
</title>
</head>
<body>
<h1>
Course/Section: {{assignment.course.course_code}} | {{assignment.course.course_title}} - {{assignment.course.section}}
</h1>
<h2>
Assignment Name: {{assignment.name}}
</h2>
<p>
<p>
Description: {{assignment.description}}
<br>
<span>
Description:
</span>
{{assignment.description}}
<br>
<br>
Perfect Score: {{assignment.max_points}}
<br>
<span>
Passing Score:
</span>
<span
class=
"passing"
>
{{assignment.passing_score}}
</span>
<br>
Passing Score: {{assignment.passing_score}}
<br>
<span>
Perfect Score:
</span>
<span
class=
"perfect"
>
{{assignment.max_points}}
</span>
<br>
</p>
</p>
</body>
</div>
</html>
{% endblock %}
\ No newline at end of file
\ No newline at end of file
widget_alipins/assignments/templates/assignments/index.html
View file @
f0b12b0f
<!DOCTYPE html>
{% extends 'assignments/base.html' %}
<html
lang=
"en"
>
{% block content %}
<head>
<meta
charset=
"UTF-8"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
>
<title>
Assignments
</title>
</head>
<body>
<h1>
Assignments Per Course
</h1>
<h1>
Assignments Per Course
</h1>
<div>
<h2>
List of Courses:
</h3>
<h2>
List of Courses:
</h3>
{% if assignment_list %}
{% if assignment_list %}
<ul>
<ul>
{% for course in course_list %}
{% for course in course_list %}
<li>
{{course.course_code}}
| {{course.course_title}} - {{course.section}}
</li>
<li><span>
{{course.course_code}}
</span>
| {{course.course_title}} - {{course.section}}
</li>
{% for assignment in assignment_list %}
{% for assignment in assignment_list %}
{% if assignment.course.course_code == course.course_code %}
{% if assignment.course.course_code == course.course_code %}
<ul>
<ul>
...
@@ -20,12 +14,11 @@
...
@@ -20,12 +14,11 @@
</ul>
</ul>
{% endif %}
{% endif %}
{% endfor %}
{% endfor %}
<br>
<br><br>
{% endfor %}
{% endfor %}
</ul>
</ul>
{% else %}
{% else %}
<p>
There are no assignments under any course.
</p>
<p>
There are no assignments under any course.
</p>
{% endif %}
{% endif %}
</div>
</body>
{% endblock %}
</html>
\ No newline at end of file
\ No newline at end of file
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