{% extends request.is_ajax|yesno:'bajax.html,base.html' %} {% load i18n bootstrap3 globaltags %} {% block breadcrumb %} {% endblock %} {% block main %}
{% if task.id %}

{% trans 'Add new task' %}

{% else %}

{% trans 'Edit task' %}

{% endif %}
{% if task.id %}
{% else %} {% endif %} {% csrf_token %} {% bootstrap_icon 'tag' as ic %} {% bootstrap_field form.descr addon_before=ic %} {% bootstrap_icon 'task' as ic %} {% bootstrap_field form.recipients addon_before=ic %} {% bootstrap_icon 'pawn' as ic %} {% bootstrap_field form.mode addon_before=ic %} {% bootstrap_icon 'sort-by-order' as ic %} {% bootstrap_field form.priority addon_before=ic %} {% bootstrap_icon 'retweet' as ic %} {% bootstrap_field form.state addon_before=ic %}
{% if selected_abon %} {% else %} {% endif %} {{ form.abon.errors }}
{{ form.out_date }}{{ form.out_date.errors }}
{% bootstrap_icon 'picture' as ic %} {% bootstrap_field form.attachment addon_before=ic %}
{% if task.id %} {% trans 'Delete' %} {% endif %} {% if task.id %} {% trans 'Complete' %} {% endif %}
{% if task %}
{% include 'taskapp/details.html' with task=task time_diff=time_diff %}
{% if perms.taskapp.view_extracomment %}
{% include "taskapp/comments/task_comments.html" with comments=comments task_uid=task.pk comment_form=comment_form %}
{% endif %} {% endif %}
{% endblock %}