Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
midterm_casanatics
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
John Aidan Vincent M. Ng
midterm_casanatics
Commits
3c204a86
Commit
3c204a86
authored
May 01, 2023
by
Angelo Alvarez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed format of dropdown choices in Forms
parent
ee2a8d9e
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
8 additions
and
4 deletions
+8
-4
models.cpython-310.pyc
...casanatics/assignments/__pycache__/models.cpython-310.pyc
+0
-0
models.py
widget_casanatics/assignments/models.py
+1
-1
models.cpython-310.pyc
...asanatics/calendar_app/__pycache__/models.cpython-310.pyc
+0
-0
views.cpython-310.pyc
...casanatics/calendar_app/__pycache__/views.cpython-310.pyc
+0
-0
models.py
widget_casanatics/calendar_app/models.py
+3
-0
event-details.html
...cs/calendar_app/templates/calendar_app/event-details.html
+2
-2
views.py
widget_casanatics/calendar_app/views.py
+2
-1
No files found.
widget_casanatics/assignments/__pycache__/models.cpython-310.pyc
View file @
3c204a86
No preview for this file type
widget_casanatics/assignments/models.py
View file @
3c204a86
...
...
@@ -7,7 +7,7 @@ class Course(models.Model):
section
=
models
.
CharField
(
max_length
=
3
)
def
__str__
(
self
):
return
self
.
code
return
self
.
code
+
" "
+
self
.
title
+
" - "
+
self
.
section
class
Assignment
(
models
.
Model
):
...
...
widget_casanatics/calendar_app/__pycache__/models.cpython-310.pyc
View file @
3c204a86
No preview for this file type
widget_casanatics/calendar_app/__pycache__/views.cpython-310.pyc
View file @
3c204a86
No preview for this file type
widget_casanatics/calendar_app/models.py
View file @
3c204a86
...
...
@@ -14,6 +14,9 @@ class Location(models.Model):
venue
=
models
.
TextField
(
max_length
=
255
)
def
__str__
(
self
):
return
self
.
mode
+
" - "
+
self
.
venue
.
replace
(
'
\r\n
'
,
' or '
)
def
getvenue
(
self
):
return
self
.
venue
.
replace
(
'
\r\n
'
,
' or '
)
...
...
widget_casanatics/calendar_app/templates/calendar_app/event-details.html
View file @
3c204a86
...
...
@@ -6,9 +6,9 @@
<h1>
{{ object.activity }}
</h1>
<b>
Date and Time:
</b>
{{ object.target_datetime|date:"m/d/Y, h:i A" }}
<br>
<b>
Estimated Hours:
</b>
{{ object.estimated_hours }}
<br>
<b>
Course:
</b>
{{ object.course
.code }} {{ object.course.title }} - {{ object.course.section
}}
<br>
<b>
Course:
</b>
{{ object.course }}
<br>
<b>
Mode:
</b>
{{ object.location.mode }}
<br>
<b>
Venue:
</b>
{{ object.location|urlize }}
<br>
<b>
Venue:
</b>
{{ object.location
.getvenue
|urlize }}
<br>
<form
action=
"../edit"
>
<button
type=
"Submit"
>
Edit Activity
</button>
...
...
widget_casanatics/calendar_app/views.py
View file @
3c204a86
from
django.shortcuts
import
render
from
django.http
import
HttpResponse
from
.models
import
Event
from
django
import
forms
from
django.utils
import
timezone
from
django.views.generic.detail
import
DetailView
from
django.views.generic.edit
import
CreateView
,
UpdateView
...
...
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