Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
final_quintupoltrobol
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
Matthew Karl David P. Arpas
final_quintupoltrobol
Commits
5ef953fd
Commit
5ef953fd
authored
May 15, 2023
by
Matthew Karl David P. Arpas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Made migrations for model changes and created admin panel option for Course
parent
6f3d3d33
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
11 deletions
+13
-11
db.sqlite3
widget_quintupoltrobol/db.sqlite3
+0
-0
admin.cpython-311.pyc
...ltrobol/widget_calendar/__pycache__/admin.cpython-311.pyc
+0
-0
models.cpython-311.pyc
...trobol/widget_calendar/__pycache__/models.cpython-311.pyc
+0
-0
admin.py
widget_quintupoltrobol/widget_calendar/admin.py
+5
-1
event-details.html
...get_calendar/templates/widget_calendar/event-details.html
+8
-10
No files found.
widget_quintupoltrobol/db.sqlite3
View file @
5ef953fd
No preview for this file type
widget_quintupoltrobol/widget_calendar/__pycache__/admin.cpython-311.pyc
View file @
5ef953fd
No preview for this file type
widget_quintupoltrobol/widget_calendar/__pycache__/models.cpython-311.pyc
View file @
5ef953fd
No preview for this file type
widget_quintupoltrobol/widget_calendar/admin.py
View file @
5ef953fd
from
django.contrib
import
admin
from
.models
import
Event
,
Location
from
.models
import
Event
,
Course
,
Location
class
EventAdmin
(
admin
.
ModelAdmin
):
model
=
Event
class
CourseAdmin
(
admin
.
ModelAdmin
):
model
=
Course
class
LocationAdmin
(
admin
.
ModelAdmin
):
model
=
Location
admin
.
site
.
register
(
Event
,
EventAdmin
)
admin
.
site
.
register
(
Course
,
CourseAdmin
)
admin
.
site
.
register
(
Location
,
LocationAdmin
)
\ No newline at end of file
widget_quintupoltrobol/widget_calendar/templates/widget_calendar/event-details.html
View file @
5ef953fd
{% extends 'base.html' %}
{% load static %}
{% block title %}
Widget's Calendar of Activities
{% endblock %}
{% block title %}
{{ event.activity }}
{% endblock %}
{% block content %}
<h2>
Widget's Calendar of Activities
</h2>
{% for event in events %}
<a
href=
"{{ event.get_absolute_url }}"
>
{{event.activity}}
</a><br
>
{% endfor %}
<h2>
{{ event.activity }}
</h2>
<h3>
Date and Time: {{ event.target_datetime }}
</h3>
<h3>
{{ department.home_unit }}
</h3
>
<br>
<a
href=
"{% url 'widget_calendar:event-add' %}"
class=
"button"
>
New Activity
</a><br>
<a
href=
"{% url 'dashboard:pageview' %}"
>
Dashboard
</a><br>
<a
href=
"{% url 'announcements:pageview' %}"
>
Announcements
</a><br>
<a
href=
"{% url 'forum:pageview' %}"
>
Forum
</a><br>
<a
href=
"{% url 'assignments:pageview' %}"
>
Assignments
</a><br>
<form
action=
'edit'
>
<input
type=
"submit"
value=
"Edit Widget User"
/>
</form>
{% endblock %}
\ 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