{% extends "spider_base/base.html" %} {% load i18n static spider_rdf %} {% block title %}{% if object %}{% if object.is_index %}{% blocktrans trimmed %} Change Login Protection{% endblocktrans %}{% else %}{% blocktrans trimmed %} Change Component {% endblocktrans %}{% endif %}{% else %}{% blocktrans trimmed %} Create Component {% endblocktrans %}{% endif %}{% endblock %} {% block extrahead %} {{block.super}} {{form.media|safe}} {% endblock %} {% block main_classes %}{% if not object %}{{block.super}}{% else %} w3-content w3-card-4 color-front-{{object.strength}}{% endif %}{% endblock %} {% block body_class %}{% if not object %}{{block.super}}{% else %} color-back-{{object.strength}}{% endif %}{% endblock %} {% block content %}
{% trans 'Index' %} {% if object %}
{% trans "Contents" %}
{% trans 'Link/Export' %}
{% if not object.is_index %}
{% trans 'Delete' %}?
{% endif %}
{% trans "Strength:" %} {{object.strength}}
{% endif %}

{% if form.instance.id and form.instance.is_index %} {% trans 'Change Login Protection' %} {% elif form.instance.id %} {% blocktrans trimmed %} Change Component: {% endblocktrans %} {{form.instance}} {% else %} {% trans 'Create new Component' %} {% endif %}

{% include "spider_base/form_errors.html" with form=form %}
{% csrf_token %}

{% if form.instance.id and form.instance.is_index %} {% trans 'Login Protection' %} {% else %} {% trans 'User Component' %} {% endif %}

{% include "spider_base/base_form.html" with form=form %}
{% if form.instance.id %} {% endif %}

{% trans 'Protections' %}

{% for prot in form.protections %}

{{prot}}

{% include "spider_base/base_form.html" with form=prot %}
{% empty%}
{% trans 'No protections: create component first' %}
{% endfor %}
{% if object %} {% trans "Contents" %} {% endif %}
{% endblock %} {% block outercontent %} {% if object %} {% url 'spider_base:ucontent-export' id=object.id nonce=object.nonce as exportlink %} {% include "spider_base/modalpresenter.html" %} {% endif %} {% endblock %}