{% extends 'panel/base.html' %} {% block panel_title %}{% if object %}Edycja bloku{% else %}Nowy blok{% endif %}{% endblock %} {% block heading %}{% if object %}{{ object.label }}{% else %}Nowy blok treści{% endif %}{% endblock %} {% block subheading %}

{% if target %}Blok przy treści: {{ target }}.{% else %}Wybierz treść, przy której blok ma stanąć.{% endif %}

{% endblock %} {% block actions %}
{% if target.get_absolute_url %}Zobacz stronę{% endif %} {% if object %} Historia zmian{% if revisions_count %} ({{ revisions_count }}){% endif %} {% endif %} Wróć do listy
{% endblock %} {% block content %}
{% csrf_token %} {% comment %}Gospodarz bloku wybrany już na liście - pola wyboru są wtedy zablokowane, więc przenosimy go osobno. Adres formularza i tak niesie te sama parę w części zapytania; to druga droga, gdyby ktoś wysłał formularz spod adresu bez niej.{% endcomment %} {% if target_label %} {% endif %} {% if form.non_field_errors %}
{% for error in form.non_field_errors %}

{{ error }}

{% endfor %}
{% endif %} {% for item in form.groups %}

{{ item.group.title }}

{% if item.group.description %}

{{ item.group.description }}

{% endif %}
{% for field in item.fields %}{% include 'panel/partials/field.html' %}{% endfor %}
{% if item.group.note %}

{{ item.group.note }}

{% endif %}
{% endfor %}
{% if object %}

Ostatnia zmiana: {{ object.updated_at|date:"d.m.Y H:i" }}

{% endif %}
{% endblock %}