{% extends 'localcosmos_server/modals/large_modal_form.html' %} {% load i18n app_tags localcosmos_tags %} {% block action %} {% if matrix_filter_space %}{% url 'manage_matrix_filter_space' meta_app.id matrix_filter_space.id %}{% else %}{% url 'create_matrix_filter_space' meta_app.id matrix_filter.id %}{% endif %}{% if from_url %}?from_url={{ from_url }}{% endif %} {% endblock %} {% block enctype %}multipart/form-data{% endblock %} {% block title %} {% if matrix_filter_space %}{% blocktrans %}Manage {{ matrix_filter_space }}{% endblocktrans %}{% else %}{% blocktrans with name=matrix_filter.matrix_filter_type.verbose_space_name %}Add {{ name }}{% endblocktrans %}{% endif %} {% endblock %} {% block body %}

{% for field in form %} {% if field.name == 'source_image' %} {% if content_image %} {% else %}

{% trans 'Suggested images' %}
{% trans 'type to start image search' %}

{% endif %}
{% trans 'Image' %}
{% endif %} {% include 'localcosmos_server/bootstrap_field.html' %} {% if field.name == 'licence' %}
{% endif %} {% endfor %} {% if form.errors %}
{{ form.errors }}
{% endif %}

{% if success is True %}
{% blocktrans with name=matrix_filter.matrix_filter_type.verbose_space_name %}Successfully saved {{ name }}.{% endblocktrans %}
{% endif %} {% endblock %} {% block footer %} {% if from_url %} {% else %} {% include 'localcosmos_server/modals/footers/save.html' %} {% endif %} {% endblock %} {% block script %} {% if success is True %} {% include 'nature_guides/ajax/reload_matrix_filters.html' %} {% else %} {% if from_url %} {% endif %} {% endif %} {% if matrix_filter.filter_type == 'DescriptiveTextAndImagesFilter' %} {% else %} {% endif %} {% endblock %}