refactor to make way for dockerization
This commit is contained in:
31
app/templates/events.html
Normal file
31
app/templates/events.html
Normal file
@@ -0,0 +1,31 @@
|
||||
{% extends 'base.html' %}
|
||||
{% set currDay = datetime.now() %}
|
||||
{% set currDay = currDay.strftime('%m-%d-%Y') %}
|
||||
|
||||
{% block content %}
|
||||
<span><h1>{% block title %} Events {% endblock %}</h1></span>
|
||||
<b>Current Date: {{ currDay }} </b> <br> <br>
|
||||
<div>
|
||||
{% for period in periods %}
|
||||
<div>
|
||||
<p><b>Period {{ period.period }}</b> <br> Time: {{ period.periodTime.strftime("%I:%M %p") }} </p>
|
||||
{% for event in events if event.scheduled_date == currDay and event.period == period %}
|
||||
<div class="float-right"><a type="button" class="btn btn-primary" href="/event/edit/{{ event.id }}">Edit</a></div>
|
||||
{% if event.task_id != None %}
|
||||
<b>
|
||||
<a href="/task/{{ event.tasks.id }}">
|
||||
{{ event.tasks.title }}
|
||||
</a>
|
||||
</b>
|
||||
<div>
|
||||
<p>{{ event.tasks.description }}</p>
|
||||
</div>
|
||||
{% else %}
|
||||
<div><p>(no task assigned... yet)</p></div>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
<hr>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endblock %}
|
Reference in New Issue
Block a user