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
9bbbed5b
Commit
9bbbed5b
authored
May 13, 2023
by
Brescia Amandy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed buttons to Add and Edit assignments
parent
38f4d8e5
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
8 additions
and
4 deletions
+8
-4
urls.cpython-310.pyc
widget_huli/assignments/__pycache__/urls.cpython-310.pyc
+0
-0
views.cpython-310.pyc
widget_huli/assignments/__pycache__/views.cpython-310.pyc
+0
-0
assignment-details.html
...assignments/templates/assignments/assignment-details.html
+3
-1
assignments.html
...t_huli/assignments/templates/assignments/assignments.html
+4
-1
urls.py
widget_huli/assignments/urls.py
+1
-0
views.py
widget_huli/assignments/views.py
+0
-2
No files found.
widget_huli/assignments/__pycache__/urls.cpython-310.pyc
View file @
9bbbed5b
No preview for this file type
widget_huli/assignments/__pycache__/views.cpython-310.pyc
View file @
9bbbed5b
No preview for this file type
widget_huli/assignments/templates/assignments/assignment-details.html
View file @
9bbbed5b
...
...
@@ -11,5 +11,7 @@
Perfect Score: {{ object.perfect_score}}
<br/>
Passing Score: {{ object.passing_score }}
<br/>
<br/>
<a
href=
"edit"
>
Edit Assignment
</a>
<button>
<a
href=
"edit"
>
Edit Assignment
</a>
</button>
{% endblock %}
\ No newline at end of file
widget_huli/assignments/templates/assignments/assignments.html
View file @
9bbbed5b
...
...
@@ -15,7 +15,10 @@
{% endfor %}
</ul>
<a
href=
"add"
>
New Assignment
</a>
<br/>
<button>
<a
href=
"add"
>
New Assignment
</a>
</button>
<br/>
<a
href=
"/dashboard"
>
Dashboard
</a>
<br/>
<a
href=
"/forum/"
>
Forum
</a>
...
...
widget_huli/assignments/urls.py
View file @
9bbbed5b
...
...
@@ -3,6 +3,7 @@ from django.urls import path
from
.views
import
assignments
from
.views
import
AssignmentDetails
,
AssignmentAdd
,
AssignmentEdit
urlpatterns
=
[
path
(
''
,
assignments
,
name
=
'assignments'
),
path
(
'<pk>/details'
,
AssignmentDetails
.
as_view
(),
name
=
'assignment-details'
),
...
...
widget_huli/assignments/views.py
View file @
9bbbed5b
from
typing
import
Any
,
Dict
from
django.shortcuts
import
render
from
django.views.generic.detail
import
DetailView
from
django.views.generic.edit
import
CreateView
,
UpdateView
from
.models
import
Assignment
,
Course
...
...
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