{% extends '../layouts/default.html' %} {% block main %}

{{ title }}

{% endblock %} {% block content %} {% if document.isNew %} {% set action = '/documents' %} {% else %} {% set action = '/documents/' + document._id %} {% endif %}
{% if not document.isNew %} {% endif %}
 
{% endblock %}