Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
midterm_robo_mommy
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Raul Jarod Conanan
midterm_robo_mommy
Commits
3fbd0a3a
Commit
3fbd0a3a
authored
Mar 05, 2023
by
Al Vincent E. Bomediano
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add simple html ui for calendar activities
parent
330419f8
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
1 deletion
+20
-1
models.cpython-311.pyc
..._mommy/widget_Calendar/__pycache__/models.cpython-311.pyc
+0
-0
views.cpython-311.pyc
...o_mommy/widget_Calendar/__pycache__/views.cpython-311.pyc
+0
-0
views.py
widget_robo_mommy/widget_Calendar/views.py
+20
-1
No files found.
widget_robo_mommy/widget_Calendar/__pycache__/models.cpython-311.pyc
View file @
3fbd0a3a
No preview for this file type
widget_robo_mommy/widget_Calendar/__pycache__/views.cpython-311.pyc
View file @
3fbd0a3a
No preview for this file type
widget_robo_mommy/widget_Calendar/views.py
View file @
3fbd0a3a
from
.models
import
Event
,
Location
from
django.http
import
HttpResponse
def
index
(
request
):
return
HttpResponse
(
'Hello World! This came from the index view'
)
html_string
=
'robo_mommy’s Calendar of Activities<br>'
for
eventItem
in
Event
.
objects
.
all
():
html_string
+=
'''
<br>
Date and Time: {}<br>
Activity: {}<br>
Estimated Hours: {}<br>
Course/Section: {}<br>
Mode: {}<br>
Venue: {}<br><br>
'''
.
format
(
eventItem
.
target_datetime
,
eventItem
.
activity
,
eventItem
.
estimated_hours
,
eventItem
.
course
,
eventItem
.
location
.
mode
,
eventItem
.
location
.
venue
,
)
return
HttpResponse
(
html_string
)
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