{% load i18n %}
<div class="wcs-forms-of-category-{{slug}}">
<h2>{{ title }}</h2>
{% if description %}
<div class="intro">
{{ description|safe }}
</div>
{% endif %}
<div class="links-list">
<ul>

{% for form in forms %}
<li class="{% if form.authentication_required %}required-authentication{% endif %}
           {% for context in form.required_authentication_contexts %}required-{{context}}-authentication {% endfor %}
           {% if form.redirection %}is-redirection{% endif %}"
  ><a href="{{ form.url }}tryauth?{% for key, value in request.GET.items %}{% if key|slice:":4" == "rsu_" %}service_var_{{key}}={{value}}{% endif %}{% endfor %}">{{ form.title }}</a>
  {% if form.description %}<div class="description">{{ form.description|safe }}</div>{% endif %}
  </li>
{% endfor %}

{% if more_forms %}
<li class="more-items"><a>+</a></li>
{% for form in more_forms %}
<li style="display: none" class="additional-form {% if form.authentication_required %}required-authentication{% endif %}
           {% for context in form.required_authentication_contexts %}required-{{context}}-authentication {% endfor %}
           {% if form.redirection %}is-redirection{% endif %}"
  ><a href="{{ form.url }}tryauth?{% for key, value in request.GET.items %}{% if key|slice:":4" == "rsu_" %}service_var_{{key}}={{value}}{% endif %}{% endfor %}">{{ form.title }}</a>
  {% if form.description %}<div class="description">{{ form.description|safe }}</div>{% endif %}
  </li>
{% endfor %}
{% endif %}

</ul>
</div>
</div>
