{% extends "spider_protections/base.html" %}
{% load spider_protections i18n spider_rdf %}
{% block content %}
{% extract_protections "protections" as protections %}
<form action="{{ request.get_full_path }}" method="post">
  {% csrf_token %}
  <data hidden="hidden" property="spkc:protections.amount" datatype="xsd:nonNegativeInteger">{{protections|length}}</data>
  <data hidden="hidden" property="spkc:strength" datatype="xsd:integer">{{uc.strength}}</data>
  <fieldset rel="protections">
    <legend><h1>{% trans 'Protections' %}</h1></legend>
    <div>
      {% for prot in protections %}
        <div class="w3-padding">
          <div class="w3-padding w3-card w3-white">
            <h1 class="w3-center">{{prot.1.auth_localize_name}}</h1>
            {% render_protection prot %}
          </div>
        </div>
      {% endfor %}
    </div>
  </fieldset>
  <button class="w3-button w3-grey">
    {% trans 'Send' %}
  </button>
</form>
{% endblock %}
