{% extends "base.html" %} {% set colors = ['blue', 'green', 'orange', 'teal', 'red', 'purple', 'maroon'] %} {% block title %}Pick a profile{% endblock %} {% block subtitle %}for the service {{ service.name }}{% endblock %} {% block content %} {% if not profiles %}
You currently have no profile for this service. You can create a new profile by clicking the follwing button. New profile
{% elif profiles.__len__() < service.max_profiles %}
You are allowed to create up to {{ service.max_profiles }} profiles for this service. You can create a new profile by clicking the following button. New profile
{% endif %}
{% for profile in profiles %}
{% if profile.status == "active" %}
{{ form.hidden_tag() }}
{% elif profile.status == "blocked" %} Blocked {% elif profile.status == "request" %} Awaiting approval {% endif %}

{{ profile.username }}

{{ profile.comment or "No profile description" }} 
{% endfor %}
{% endblock %}