30 lines
857 B
HTML
30 lines
857 B
HTML
{% extends 'base.html' %}
|
|
|
|
{% block content %}
|
|
<span><h1>{% block title %} Edit Event {% endblock %}</h1></span>
|
|
<p>
|
|
<b>Period {{ event.period.period }}</b> <br> Time: {{ event.period.periodTime.strftime("%I:%M %p") }}
|
|
</p>
|
|
{% if event.task_id != None %}
|
|
<p>
|
|
<b><a href="/task/{{ event.tasks.id }}">
|
|
{{ event.tasks.title }}
|
|
|
|
</a></b> <br>{% if event.tasks.description != None %}
|
|
<p>{{ event.tasks.description }}</p>
|
|
{% endif %}
|
|
</p>
|
|
{% else %}
|
|
<div><p>(no task assigned... yet)</p></div>
|
|
{% endif %}
|
|
<form method="post">
|
|
{{ form.csrf_token }}
|
|
<p>
|
|
{{ form.selectedTask.label }}
|
|
{{ form.selectedTask }}
|
|
</p>
|
|
<p>
|
|
<button class="btn btn-primary" type="submit">Submit</button>
|
|
</p>
|
|
</form>
|
|
{% endblock %} |