Commit 056c295d authored by Ysabella Panghulan's avatar Ysabella Panghulan

fixed formatinng of forms and templates

parent b9635047
...@@ -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)
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
{% block body %} {% block body %}
<div class="event-content"> <div class="event-content">
{% block content %} {% block content %}
<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>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment