This commit is contained in:
Thomas Noel 2014-03-21 18:54:27 +01:00
parent ef1996fd59
commit 971b29c91b
4 changed files with 8 additions and 7 deletions

View File

@ -5,7 +5,7 @@
<link rel="stylesheet" href="{{ STATIC_URL }}authentic2/css/style.css" />
<link rel="stylesheet" href="{{ STATIC_URL }}jquery/css/jquery-ui.custom.css" />
<link rel="stylesheet" href="{{ STATIC_URL }}ulx/css/ulx.css" />
<title>{% block title %}User test{% endblock %}</title>
<title>{% block title %}Univnautes IdP &mdash; POC{% endblock %}</title>
{{ openid_meta }}
{% block extra_scripts %}
{% endblock %}

View File

@ -2,7 +2,7 @@
{% load i18n %}
{% block content %}
<h1>Nouveau tenant</h1>
<h1>Demande d'un nouveau fournisseur d'identités</h1>
<p>
Indiquer ci-dessous le nom du nouveau tenant choisi.<br />
Utilisez uniquement des lettres minuscules, des chiffres et le trait d'union.

View File

@ -2,17 +2,17 @@
{% load i18n %}
{% block content %}
<h1>Gestion des tenants</h1>
<h1>Fournisseurs d'identités disponibles</h1>
<ul>
{% for obj in object_list %}
{% for obj in object_list|dictsort:"schema_name" %}
{% if obj.schema_name != "public" %}
<li><a href="//{{ obj.domain_url }}">{{ obj.domain_url }}</a> &mdash; tenant &laquo;{{obj}}&raquo;</li>
<li>{{obj.schema_name}} : <a href="//{{ obj.domain_url }}">{{ obj.domain_url }}</a></li>
{% endif %}
{% endfor %}
</ul>
<h1>Demander un tenant</h1>
<h1>Demander un nouveau fournisseur d'identités</h1>
<p>
<a href="/create/">Cr&eacute;ation d'un tenant</a>
<a href="/create/">Cr&eacute;ation d'un fournisseur d'identités</a>
</p>
<h1>Administration</h1>
<p>

View File

@ -8,6 +8,7 @@ CREATION_SCRIPT = '/home/thomas/univnautes-idp/create-dirty-tenant.py'
class TenantCreateForm(forms.Form):
schema_name = forms.RegexField(regex='^[a-z0-9_-]+$',
label='Nom',
required=True,
max_length=16)