Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
midterm_vincentdjango
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
1
Merge Requests
1
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
Almira Redoble
midterm_vincentdjango
Commits
f0facd47
Commit
f0facd47
authored
Mar 06, 2023
by
Andrew Justin C. Idquival
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Renamed calendar to widget_calendar to avoid error
parent
b338c987
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
views.py
widget_vincentdjango/widget_calendar/views.py
+8
-2
No files found.
widget_vincentdjango/widget_calendar/views.py
View file @
f0facd47
...
...
@@ -15,11 +15,17 @@ def index(request):
body
=
""
for
event
in
Event
.
objects
.
all
():
location
=
event
.
location
body
+=
"<p style='border: 2px solid gray;
\
border-radius:5px;
\
padding:20px 30px;'>
\
{} <br>
\
</p>"
.
format
(
event
)
<b> Date and Time: "
+
event
.
target_datetime
+
" </b> <br>
\
Activity: "
+
event
.
activity
+
" <br>
\
Estimated Hours: "
+
event
.
estimated_hours
+
" <br>
\
Course/Section: "
+
event
.
course
+
" <br>
\
Mode: "
+
location
.
mode
+
" <br>
\
Venue: "
+
location
.
venue
+
" <br>
\
</p>"
return_string
=
"<html>
\
<body style = 'font-family:helvetica;
\
...
...
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