Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
widget_Francoconuts
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Chester Tan
widget_Francoconuts
Commits
463341b3
Commit
463341b3
authored
May 22, 2022
by
Chester Tan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added style to assignment list view
parent
9e21456f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
148 additions
and
15 deletions
+148
-15
course_list.html
...conuts/assignments/templates/assignments/course_list.html
+34
-15
styles.css
widget_Francoconuts/static/assignments/css/styles.css
+114
-0
No files found.
widget_Francoconuts/assignments/templates/assignments/course_list.html
View file @
463341b3
{% extends 'base.html' %}
{% block content %}
<h1>
Assignments Per Course
</h1>
<label>
List of Courses:
</label>
<ul>
{% for course in object_list %}
<li>
{{course.course_code}} {{course.course_title}} {{course.section}}
</li>
<ul>
{% for assignment in course.assignment.all %}
<li>
<a
href=
"{% url 'assignment-detail' assignment.id %}"
>
{{assignment}}
</a>
</li>
{% endfor %}
</ul>
{% endfor %}
<a
href=
"{% url 'assignment-add' %}"
><button>
New Assignment
</button></a>
</ul>
<div
class=
"assignments"
>
<div
class=
"headers"
>
<h1>
assignments
<span>
per course
</span>
</h1>
<div
class=
"header2"
>
<h2>
List of Courses
</h2>
<div
class=
"lower-box"
></div>
</div>
</div>
<div
class=
"container"
>
<div
class=
"course-list"
>
{% for course in object_list %}
<div
class=
"course"
>
<div
class=
"course-header"
>
<h3>
{{course.course_code}} {{course.course_title}} {{course.section}}
</h3>
</div>
<ul>
{% for assignment in course.assignment.all %}
<li>
<a
href=
"{% url 'assignment-detail' assignment.id %}"
>
{{assignment}}
</a>
</li>
{% endfor %}
</ul>
</div>
{% endfor %}
</div>
<a
class=
"new-assign"
href=
"{% url 'assignment-add' %}"
><button>
New Assignment
</button></a>
</div>
</div>
{% load static %}
<link
rel=
"stylesheet"
href=
"{% static 'assignments/css/styles.css' %}"
>
{% endblock content %}
\ No newline at end of file
widget_Francoconuts/static/assignments/css/styles.css
0 → 100644
View file @
463341b3
*
{
padding
:
0
;
margin
:
0
;
}
.assignments
{
font-family
:
Arial
,
Helvetica
,
sans-serif
;
}
body
{
background-color
:
#A8BCDF
;
}
.headers
{
display
:
flex
;
flex-direction
:
column
;
align-items
:
center
;
color
:
white
;
background-color
:
#23488B
;
}
h1
span
{
color
:
#E2C03E
;
}
.lower-box
{
background-color
:
#E0BD3F
;
width
:
100%
;
height
:
1.5em
;
}
.headers
h2
{
text-align
:
center
;
background-color
:
#CEAC31
;
}
.header2
{
width
:
95%
;
border
:
0.3em
solid
#E3A304
;
}
.headers
h1
{
padding
:
0.5em
0
;
font-weight
:
normal
;
}
.headers
h2
{
padding-top
:
0.5em
;
font-weight
:
normal
;
}
.container
{
background-color
:
white
;
height
:
100%
;
padding
:
0
0.5em
0.5em
0.5em
;
border-left
:
0.5em
solid
#A8BCDF
;
border-right
:
0.5em
solid
#A8BCDF
;
}
.course-list
{
display
:
flex
;
flex-wrap
:
wrap
;
}
.course
{
/* border: 1px solid; */
background-color
:
rgb
(
240
,
240
,
240
);
width
:
24%
;
margin
:
0.4%
;
display
:
flex
;
flex-direction
:
column
;
align-items
:
stretch
;
}
.course
h3
{
padding
:
1em
0
;
/* border-bottom: 1px solid; */
width
:
100%
;
text-align
:
center
;
background-color
:
rgb
(
168
,
188
,
223
);
color
:
#000080
;
}
.course
ul
{
padding
:
1em
;
}
.course
ul
li
{
/* list-style: none; */
margin-left
:
2em
;
margin-bottom
:
0.5em
;
}
.course
ul
li
a
{
text-decoration
:
none
;
color
:
#000080
;
}
.course
ul
li
a
:hover
{
text-decoration
:
underline
;
}
.new-assign
{
margin
:
0.4%
;
}
.new-assign
button
{
width
:
20em
;
height
:
5em
;
}
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