Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
midterm_huli
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
Izaac Daniel B. Muncal
midterm_huli
Commits
8b129c30
Commit
8b129c30
authored
May 12, 2023
by
Brescia Amandy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Edited the template for the Add New Assignment Page
parent
af90e4c6
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
28 additions
and
10 deletions
+28
-10
views.cpython-310.pyc
widget_huli/assignments/__pycache__/views.cpython-310.pyc
+0
-0
assignment-add.html
...uli/assignments/templates/assignments/assignment-add.html
+13
-1
assignment-details.html
...assignments/templates/assignments/assignment-details.html
+1
-1
assignment-edit.html
...li/assignments/templates/assignments/assignment-edit.html
+1
-1
assignments.html
...t_huli/assignments/templates/assignments/assignments.html
+1
-1
views.py
widget_huli/assignments/views.py
+1
-6
base.html
widget_huli/templates/base.html
+11
-0
No files found.
widget_huli/assignments/__pycache__/views.cpython-310.pyc
View file @
8b129c30
No preview for this file type
widget_huli/assignments/templates/assignments/assignment-add.html
View file @
8b129c30
assignment-add.html
{% extends 'base.html' %}
\ No newline at end of file
{% block title %}Add Post{% endblock %}
{% block header %}Add a new post.{% endblock %}
{% block body %}
<form
method=
"POST"
enctype=
"multipart/form-data"
action=
""
>
{% csrf_token %}
{{ form.as_p }}
<input
type=
"submit"
value=
"Save New Post"
>
</form>
{% endblock %}
\ No newline at end of file
widget_huli/assignments/templates/assignments/assignment-details.html
View file @
8b129c30
assignment-details.html
{% extends 'base.html' %}
\ No newline at end of file
\ No newline at end of file
widget_huli/assignments/templates/assignments/assignment-edit.html
View file @
8b129c30
assignment-edit.html
{% extends 'base.html' %}
\ No newline at end of file
\ No newline at end of file
widget_huli/assignments/templates/assignments/assignments.html
View file @
8b129c30
Assignments.html
{% extends 'base.html' %}
\ No newline at end of file
\ No newline at end of file
widget_huli/assignments/views.py
View file @
8b129c30
...
@@ -15,12 +15,7 @@ class AssignmentDetails(DetailView):
...
@@ -15,12 +15,7 @@ class AssignmentDetails(DetailView):
class
AssignmentAdd
(
CreateView
):
class
AssignmentAdd
(
CreateView
):
model
=
Assignment
model
=
Assignment
template_name
=
'assignments/assignment-add.html'
template_name
=
'assignments/assignment-add.html'
fields
=
[
fields
=
[
'name'
,
'description'
,
'course'
,
'perfect_score'
,]
'name'
,
'description'
,
'course'
,
'perfect_score'
,
]
class
AssignmentEdit
(
UpdateView
):
class
AssignmentEdit
(
UpdateView
):
model
=
Assignment
model
=
Assignment
...
...
widget_huli/templates/base.html
0 → 100644
View file @
8b129c30
<!DOCTYPE html>
<html
lang=
"en"
>
<head>
<meta
charset=
"UTF-8"
>
<title>
{% block title %}{% endblock %}
</title>
</head>
<body>
<h1>
{% block header %}{% endblock %}
</h1>
{% block body %}{% endblock %}
</body>
</html>
\ 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