{% extends 'common/base.html' %} {% load utils %} {% block title %}{% endblock title %} {% block content_header %}{% endblock content_header %} {% block content_description %}{% endblock content_description %} {% block content %}

{{ title }}

{% for key, label in field_list %} {% if obj|has_key:key %}
{{ label }}
{% with obj|get_key:key as value %} {% if value|get_type == 'bool' %}
{% if value %}Да{% else %}Нет{% endif %}
{% elif value|get_type == 'list' or value|get_type == 'tuple' %}
{% if value %}
    {% for el in value %}
  1. {{ el }}
  2. {% endfor %}
{% endif %}
{% else %}
{{ value }}
{% endif %} {% endwith %} {% endif %} {% endfor %}
{% if edit_url %} {% endif %}
{% endblock content %}