Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
widgets_FEKK
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
Kyla Martin
widgets_FEKK
Commits
af702936
Commit
af702936
authored
May 16, 2022
by
Emmanuel Linus T. Evangelista
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://gitlab.discs.ateneo.edu/totallynotkai/widgets-fekk
parents
f50c87d9
db3358f3
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
5 deletions
+8
-5
assignment_list.html
...KK/Assignments/templates/Assignments/assignment_list.html
+1
-1
assignments.html
WidgetFEKK/Assignments/templates/assignments.html
+0
-0
urls.py
WidgetFEKK/Assignments/urls.py
+2
-3
views.py
WidgetFEKK/Assignments/views.py
+1
-1
urls.py
WidgetFEKK/WidgetFEKK/urls.py
+4
-0
No files found.
WidgetFEKK/Assignments/templates/Assignments/assignment_list.html
View file @
af702936
...
...
@@ -17,7 +17,7 @@
<div
class =
"block"
>
<h2>
{{a.course}}
</h2>
<li>
<a
href=
"
{% url 'Assignments:assignment-detail' a.pk%}
"
>
{{a.name}}
</a>
<a
href=
"
/assignment/{{ a.pk }}/details
"
>
{{a.name}}
</a>
</li>
</div>
{%endfor%}
...
...
WidgetFEKK/Assignments/templates/
index
.html
→
WidgetFEKK/Assignments/templates/
assignments
.html
View file @
af702936
File moved
WidgetFEKK/Assignments/urls.py
View file @
af702936
...
...
@@ -3,9 +3,8 @@ from . import views
from
.views
import
MainView
,
AssignmentListView
,
AssignmentDetailView
urlpatterns
=
[
path
(
''
,
MainView
.
as_view
(),
name
=
'index'
),
path
(
'assignment'
,
AssignmentListView
.
as_view
(),
name
=
'assignment-list'
),
path
(
'assignment/<int:pk>/details'
,
AssignmentDetailView
.
as_view
(),
name
=
'assignment-detail'
),
path
(
''
,
MainView
.
as_view
(),
name
=
'assignments'
),
path
(
'assignments'
,
AssignmentListView
.
as_view
(),
name
=
'assignment-list'
),
]
app_name
=
'Assignments'
\ No newline at end of file
WidgetFEKK/Assignments/views.py
View file @
af702936
...
...
@@ -10,7 +10,7 @@ class MainView(View):
def
get
(
self
,
request
):
course
=
Course
.
objects
.
all
()
.
order_by
(
'course_code'
)
assignment
=
Assignment
.
objects
.
all
()
.
order_by
(
'course'
)
return
render
(
request
,
'
index
.html'
,{
return
render
(
request
,
'
assignments
.html'
,{
'course'
:
course
,
'assignment'
:
assignment
,
})
...
...
WidgetFEKK/WidgetFEKK/urls.py
View file @
af702936
...
...
@@ -17,6 +17,7 @@ from django.contrib import admin
from
django.urls
import
path
,
include
import
Announcements.views
as
Announcements_views
import
Forum.views
as
Forum_views
from
Assignments.views
import
AssignmentDetailView
urlpatterns
=
[
path
(
'admin/'
,
admin
.
site
.
urls
),
...
...
@@ -26,4 +27,7 @@ urlpatterns = [
path
(
'announcements/'
,
include
(
'Announcements.urls'
,
namespace
=
"Announcements"
)),
path
(
'announcements/<int:announcement_id>/details'
,
Announcements_views
.
details
,
name
=
'announcement_details'
),
path
(
'assignments/'
,
include
(
'Assignments.urls'
,
namespace
=
"Assignments"
)),
path
(
'assignment/<int:pk>/details'
,
AssignmentDetailView
.
as_view
(),
name
=
'assignment-detail'
),
]
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