{% extends "sketch/base.html" %} {% block main %}
{% if sketch.has_permission(current_user, 'write') %}
{% if form.timelines.choices %}

Last {{ form.timelines.choices|length }} timelines added

{{ form.timelines }} {{ form.csrf_token }}
{% endif %} {% endif %}

Timelines in this sketch

{% if sketch.timelines %} {% for timeline in sketch.timelines %} {% endfor %}
Added
{{ timeline.created_at }}
{% else %}

There is no timeline added to this sketch.

{% endif %}
{% endblock %}