Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
midterm_vincentdjango
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
1
Merge Requests
1
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
Almira Redoble
midterm_vincentdjango
Commits
1f223763
Commit
1f223763
authored
Apr 29, 2023
by
Star Neptune R. Sy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
final changes to front end
parent
80ce621b
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
22 additions
and
8 deletions
+22
-8
models.py
widget_vincentdjango/assignments/models.py
+1
-1
makeItBeautiful.css
widget_vincentdjango/assignments/static/makeItBeautiful.css
+14
-1
assignment-add.html
...jango/assignments/templates/templates/assignment-add.html
+2
-2
assignment-edit.html
...ango/assignments/templates/templates/assignment-edit.html
+2
-1
assignments.html
...ntdjango/assignments/templates/templates/assignments.html
+3
-3
db.sqlite3
widget_vincentdjango/db.sqlite3
+0
-0
No files found.
widget_vincentdjango/assignments/models.py
View file @
1f223763
...
@@ -10,7 +10,7 @@ class Course(models.Model):
...
@@ -10,7 +10,7 @@ class Course(models.Model):
class
Assignment
(
models
.
Model
):
class
Assignment
(
models
.
Model
):
assignment_name
=
models
.
CharField
(
unique
=
True
,
default
=
""
,
max_length
=
50
,)
assignment_name
=
models
.
CharField
(
"Name"
,
unique
=
True
,
default
=
""
,
max_length
=
50
,)
description
=
models
.
TextField
(
default
=
""
)
description
=
models
.
TextField
(
default
=
""
)
perfect_score
=
models
.
IntegerField
(
default
=
100
)
perfect_score
=
models
.
IntegerField
(
default
=
100
)
passing_score
=
models
.
IntegerField
(
default
=
80
)
passing_score
=
models
.
IntegerField
(
default
=
80
)
...
...
widget_vincentdjango/assignments/static/makeItBeautiful.css
View file @
1f223763
...
@@ -36,7 +36,12 @@ div.content{
...
@@ -36,7 +36,12 @@ div.content{
padding-right
:
5%
;
padding-right
:
5%
;
padding-bottom
:
15px
;
padding-bottom
:
15px
;
border-radius
:
2px
;
border-radius
:
10px
;
border-width
:
9px
;
border-style
:
outset
;
border-color
:
rgb
(
138
,
0
,
0
);
box-shadow
:
0px
20px
40px
0px
rgb
(
65
,
2
,
23
);
}
}
li
{
li
{
...
@@ -81,3 +86,11 @@ button.buttonLink:hover{
...
@@ -81,3 +86,11 @@ button.buttonLink:hover{
button
.buttonLink
:active
{
button
.buttonLink
:active
{
background-color
:
rgb
(
201
,
226
,
218
);
background-color
:
rgb
(
201
,
226
,
218
);
}
}
label
{
width
:
180px
;
}
textarea
{
vertical-align
:
top
;
}
\ No newline at end of file
widget_vincentdjango/assignments/templates/templates/assignment-add.html
View file @
1f223763
...
@@ -6,10 +6,10 @@
...
@@ -6,10 +6,10 @@
{% block content %}
{% block content %}
<form
id=
"addAssignment"
method=
"post"
>
<form
id=
"addAssignment"
method=
"post"
>
<b>
{% csrf_token %}
{% csrf_token %}
{{ form.as_p }}
{{ form.as_p }}
</b>
<input
type=
"submit"
id=
"submitButton"
value=
"Add assignment"
>
</form>
</form>
{% endblock %}
{% endblock %}
...
...
widget_vincentdjango/assignments/templates/templates/assignment-edit.html
View file @
1f223763
...
@@ -6,9 +6,10 @@
...
@@ -6,9 +6,10 @@
{% block content %}
{% block content %}
<form
id=
"editAssignment"
method=
"post"
>
<form
id=
"editAssignment"
method=
"post"
>
<b>
{% csrf_token %}
{% csrf_token %}
{{ form.as_p }}
{{ form.as_p }}
</b>
</form>
</form>
{% endblock %}
{% endblock %}
...
...
widget_vincentdjango/assignments/templates/templates/assignments.html
View file @
1f223763
{% extends 'base.html' %}
{% extends 'base.html' %}
{% block webTitle %} Assignments {% endblock %}
{% block webTitle %}
Widget's
Assignments {% endblock %}
{% block pageTitle %}
A
ssignments {% endblock %}
{% block pageTitle %}
Welcome to Widget's a
ssignments {% endblock %}
{% block content %}
{% block content %}
<ul
style=
'list-style-type:square;'
>
<ul
style=
'list-style-type:square;'
>
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
{% endblock %}
{% endblock %}
{% block otherButtons %}
{% block otherButtons %}
<button
class=
"buttonLink"
onclick=
"window.location.href='add/';"
>
<b>
New Assignment
s
</b>
</button><br><br>
<button
class=
"buttonLink"
onclick=
"window.location.href='add/';"
>
<b>
New Assignment
</b>
</button><br><br>
<a
class=
"miniLink"
href=
"/dashboard"
>
Dashboard
</a>
<br>
<a
class=
"miniLink"
href=
"/dashboard"
>
Dashboard
</a>
<br>
<a
class=
"miniLink"
href=
"/announcementBoard"
>
Announcements
</a>
<br>
<a
class=
"miniLink"
href=
"/announcementBoard"
>
Announcements
</a>
<br>
<a
class=
"miniLink"
href=
"/forum"
>
Forum
</a>
<br>
<a
class=
"miniLink"
href=
"/forum"
>
Forum
</a>
<br>
...
...
widget_vincentdjango/db.sqlite3
View file @
1f223763
No preview for this file type
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