Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
midterm_princessgabi
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
Ysabella Panghulan
midterm_princessgabi
Commits
2ae4db13
Commit
2ae4db13
authored
May 15, 2023
by
Ysabella Panghulan
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'calendarv2'
parents
e1b797ec
056c295d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
8 deletions
+6
-8
models.py
widget_princessgabi/widget_calendar/models.py
+1
-1
event-details.html
...get_calendar/templates/widget_calendar/event-details.html
+5
-7
No files found.
widget_princessgabi/widget_calendar/models.py
View file @
2ae4db13
...
@@ -17,8 +17,8 @@ class Location(models.Model):
...
@@ -17,8 +17,8 @@ class Location(models.Model):
return
self
.
venue
return
self
.
venue
class
Event
(
models
.
Model
):
class
Event
(
models
.
Model
):
target_datetime
=
models
.
DateTimeField
(
'target date'
)
activity
=
models
.
TextField
()
activity
=
models
.
TextField
()
target_datetime
=
models
.
DateTimeField
(
'target date/time'
)
estimated_hours
=
models
.
FloatField
()
estimated_hours
=
models
.
FloatField
()
location
=
models
.
ForeignKey
(
Location
,
on_delete
=
models
.
CASCADE
)
location
=
models
.
ForeignKey
(
Location
,
on_delete
=
models
.
CASCADE
)
course
=
models
.
ForeignKey
(
Course
,
on_delete
=
models
.
CASCADE
)
course
=
models
.
ForeignKey
(
Course
,
on_delete
=
models
.
CASCADE
)
...
...
widget_princessgabi/widget_calendar/templates/widget_calendar/event-details.html
View file @
2ae4db13
...
@@ -13,13 +13,11 @@
...
@@ -13,13 +13,11 @@
{% block body %}
{% block body %}
<div
class=
"event-content"
>
<div
class=
"event-content"
>
{% block content %}
{% block content %}
<div
class=
"details"
>
<h4>
Date and Time: {{ object.target_datetime|date:'m/d/Y' }}, {{ object.target_datetime|date:'h:i A' }}
</h4>
<h4>
Date and Time: {{ object.target_datetime|date:'m/d/Y' }} {{ object.target_datetime|date:'h:i A' }}
</h4>
<h4>
Estimated Hours: {{ object.estimated_hours }}
</h4>
<h4>
Estimated Hours: {{ object.estimated_hours }}
</h4>
<h4>
{{ object.course.code }} {{ object.course.title }} - {{ object.course.section }}
</h4>
<h4>
{{ object.course.code }} {{ object.course.title }} - {{ object.course.section }}
</h4>
<h4>
Mode: {{ object.location.mode }}
</h4>
<h4>
Mode: {{ object.location.mode }}
</h4>
<h4>
Venue: {{ object.location.venue }}
</h4>
<h4>
Venue: {{ object.location.venue }}
</h4>
</div>
{% endblock %}
{% endblock %}
<a
href=
"{{object.get_absolute_url}}../edit"
class=
"edit-btn"
><i
class=
"fa fa-edit"
></i>
Edit Activity
</a>
<a
href=
"{{object.get_absolute_url}}../edit"
class=
"edit-btn"
><i
class=
"fa fa-edit"
></i>
Edit Activity
</a>
</div>
</div>
...
...
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