{% extends "base_side.html" %} {% load i18n %} {% load bootstrap3 %} {% load widget_tweaks %} {% block maincontent %}

{% trans "View & Edit: " %} {{ item_type_label }}

{% if form.errors %} {% for field in form %} {% for error in field.errors %}
{{ error|escape }}
{% endfor %} {% endfor %} {% for error in form.non_field_errors %}
{{ error|escape }}
{% endfor %} {% endif %} {% csrf_token %} {{ form.id }} {{ form.next }}

{% trans "Added on " %} {{ item.created }} {% trans "Updated on " %} {{ item.last_modified }}

{{ form.body|add_class:'form-control'|attr:"rows:4"|attr:"placeholder:Type your question text here" }}
{% if form.tags %}
{% trans "Tags" %} {{ form.tags|add_class:'form-control'|attr:'placeholder:type and hit enter'|attr:'data-role:tagsinput' }}
{% endif %}
{{ form.timestamp|add_class:'form-control'|attr:"placeholder:yyyy-mm-dd"|attr:"aria-describedby:basic-addon1" }}
{% if form.category %}
{{ form.category|add_class:'form-control' }}
{% endif %} {% if form.region %}
{{ form.region|add_class:'form-control' }}
{% endif %}
{% bootstrap_button "Delete" button_type="submit" name="action" value="delete" button_class="btn btn-danger btn-sm" %}
{% bootstrap_button "Cancel" button_type="submit" name="action" value="cancel" button_class="btn btn-sm" %} {% bootstrap_button "Update" button_type="submit" name="action" value="update" button_class="btn btn-sm btn-success" %}
{% endblock maincontent %}