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
80ce621b
Commit
80ce621b
authored
Apr 29, 2023
by
Star Neptune R. Sy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
front end almost done
parent
50056418
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
19 additions
and
12 deletions
+19
-12
makeItBeautiful.css
widget_vincentdjango/assignments/static/makeItBeautiful.css
+11
-4
assignment-add.html
...jango/assignments/templates/templates/assignment-add.html
+2
-2
assignment-edit.html
...ango/assignments/templates/templates/assignment-edit.html
+3
-3
assignments.html
...ntdjango/assignments/templates/templates/assignments.html
+1
-1
views.py
widget_vincentdjango/assignments/views.py
+2
-2
db.sqlite3
widget_vincentdjango/db.sqlite3
+0
-0
No files found.
widget_vincentdjango/assignments/static/makeItBeautiful.css
View file @
80ce621b
...
...
@@ -52,23 +52,30 @@ li:hover{
}
div
.navButtons
{
background-color
:
rgb
(
255
,
248
,
238
);
border-radius
:
5px
;
border-width
:
20
px
;
border-width
:
12
px
;
border-style
:
ridge
;
border-color
:
rgb
(
167
,
16
,
66
)
;
text-align
:
left
;
margin-right
:
50%
;
padding
-left
:
15px
;
padding
:
15px
;
}
button
.buttonLink
{
background-color
:
aquamarine
;
padding
:
15px
;
font-size
:
12pt
;
scale
:
100%
;
background-color
:
rgb
(
5
,
233
,
157
);
}
button
.buttonLink
:hover
{
background-color
:
rgb
(
6
,
201
,
136
);
background-color
:
aquamarine
;
scale
:
105%
;
transition
:
all
100ms
;
}
button
.buttonLink
:active
{
...
...
widget_vincentdjango/assignments/templates/templates/assignment-add.html
View file @
80ce621b
...
...
@@ -5,7 +5,7 @@
{% block pageTitle %} Add a new assignment {% endblock %}
{% block content %}
<form
id=
"
editBook
"
method=
"post"
>
<form
id=
"
addAssignment
"
method=
"post"
>
{% csrf_token %}
{{ form.as_p }}
...
...
@@ -14,5 +14,5 @@
{% endblock %}
{% block otherButtons %}
<button
class=
"buttonLink"
form=
"addAssignment"
onclick=
"window.location.href='assignments/';"
>
<b>
Add assignment
</b>
</button>
{% endblock %}
\ No newline at end of file
widget_vincentdjango/assignments/templates/templates/assignment-edit.html
View file @
80ce621b
...
...
@@ -5,14 +5,14 @@
{% block pageTitle %} Edit Assignment {% endblock %}
{% block content %}
<form
id=
"edit
Book
"
method=
"post"
>
<form
id=
"edit
Assignment
"
method=
"post"
>
{% csrf_token %}
{{ form.as_p }}
<input
type=
"submit"
id=
"submitButton"
value=
"Edit assignment"
>
</form>
{% endblock %}
{% block otherButtons %}
<button
class=
"buttonLink"
form=
"editAssignment"
onclick=
"window.location.href='assignments/';"
>
<b>
Save changes to assignment
</b>
</button>
{% endblock %}
\ No newline at end of file
widget_vincentdjango/assignments/templates/templates/assignments.html
View file @
80ce621b
...
...
@@ -13,7 +13,7 @@
{% endblock %}
{% block otherButtons %}
<button
class=
"buttonLink"
onclick=
"window.location.href='add/';"
>
<b>
New Assignments
</b>
</button><br>
<button
class=
"buttonLink"
onclick=
"window.location.href='add/';"
>
<b>
New Assignments
</b>
</button><br>
<br>
<a
class=
"miniLink"
href=
"/dashboard"
>
Dashboard
</a>
<br>
<a
class=
"miniLink"
href=
"/announcementBoard"
>
Announcements
</a>
<br>
<a
class=
"miniLink"
href=
"/forum"
>
Forum
</a>
<br>
...
...
widget_vincentdjango/assignments/views.py
View file @
80ce621b
...
...
@@ -20,7 +20,7 @@ class AssignmentsDetailView(DetailView):
class
AssignmentsUpdateView
(
UpdateView
):
model
=
Assignment
fields
=
"__all__"
fields
=
[
"assignment_name"
,
"description"
,
"course"
,
"perfect_score"
]
template_name
=
"templates/assignment-edit.html"
success_url
=
"../details"
...
...
@@ -28,7 +28,7 @@ class AssignmentsUpdateView(UpdateView):
class
AssignmentsCreateView
(
CreateView
):
model
=
Assignment
fields
=
"__all__"
fields
=
[
"assignment_name"
,
"description"
,
"course"
,
"perfect_score"
]
template_name
=
"templates/assignment-add.html"
def
get_success_url
(
self
):
...
...
widget_vincentdjango/db.sqlite3
View file @
80ce621b
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