{% extends "xadmin/edit_inline/base.html" %} {% load i18n xadmin_tags crispy_forms_tags %} {% block box_content_class %}nopadding{% endblock box_content_class %} {% block box_content_attrs %}{% endblock box_content_attrs %} {% block formset_content %} {% for field in fields %} {% if not field.widget.is_hidden %} {{ field.label|capfirst }} {% if field.help_text %} {% endif %} {% endif %} {% endfor %} {% for field in readonly_fields %} {% endfor %} {% if formset.formset.can_delete %}{% endif %} {% for fs in formset.formset %} {% crispy fs formset.formset.helper %} {% for r_o_f in fs.readonly_fields %} {% endfor %} {% if formset.formset.can_delete %} {% endif %} {% endfor %}
{{ field.label }} 
{{ r_o_f.contents|safe }}
{% endblock formset_content %} {% block formset_empty %} {% crispy formset.formset.empty_form formset.formset.helper %} {% if formset.formset.can_delete %} {% endif %} {% endblock formset_empty %}