options={'permissions':(('change_user_password','Can change the password of a user'),('change_user_state','Can edit the state of a user'),('change_user_force','Can force the move'),('change_user_shell','Can edit the shell of a user'),('change_user_groups','Can edit the groups of rights of a user (critical permission)'),('change_all_users','Can edit all users, including those with rights.'),('view_user','Can view a user object')),'verbose_name':'member','verbose_name_plural':'members'},
),
migrations.AlterModelOptions(
name='ban',
options={'permissions':(('view_ban','Can view a ban object'),),'verbose_name':'ban','verbose_name_plural':'bans'},
),
migrations.AlterModelOptions(
name='club',
options={'permissions':(('change_user_password','Can change the password of a user'),('change_user_state','Can edit the state of a user'),('change_user_force','Can force the move'),('change_user_shell','Can edit the shell of a user'),('change_user_groups','Can edit the groups of rights of a user (critical permission)'),('change_all_users','Can edit all users, including those with rights.'),('view_user','Can view a user object')),'verbose_name':'club','verbose_name_plural':'clubs'},
),
migrations.AlterModelOptions(
name='emailaddress',
options={'permissions':(('view_emailaddress','Can view a local email account object'),),'verbose_name':'local email account','verbose_name_plural':'local email accounts'},
),
migrations.AlterModelOptions(
name='listright',
options={'permissions':(('view_listright','Can view a group of rights object'),),'verbose_name':'group of rights','verbose_name_plural':'groups of rights'},
),
migrations.AlterModelOptions(
name='listshell',
options={'permissions':(('view_listshell','Can view a shell object'),),'verbose_name':'shell','verbose_name_plural':'shells'},
),
migrations.AlterModelOptions(
name='school',
options={'permissions':(('view_school','Can view a school object'),),'verbose_name':'school','verbose_name_plural':'schools'},
),
migrations.AlterModelOptions(
name='serviceuser',
options={'permissions':(('view_serviceuser','Can view a service user object'),),'verbose_name':'service user','verbose_name_plural':'service users'},
),
migrations.AlterModelOptions(
name='user',
options={'permissions':(('change_user_password','Can change the password of a user'),('change_user_state','Can edit the state of a user'),('change_user_force','Can force the move'),('change_user_shell','Can edit the shell of a user'),('change_user_groups','Can edit the groups of rights of a user (critical permission)'),('change_all_users','Can edit all users, including those with rights.'),('view_user','Can view a user object')),'verbose_name':'user (member or club)','verbose_name_plural':'users (members or clubs)'},
),
migrations.AlterModelOptions(
name='whitelist',
options={'permissions':(('view_whitelist','Can view a whitelist object'),),'verbose_name':'whitelist (free of charge access)','verbose_name_plural':'whitelists (free of charge access)'},
),
migrations.AlterField(
model_name='adherent',
name='gpg_fingerprint',
field=models.CharField(blank=True,max_length=40,null=True,validators=[django.core.validators.RegexValidator('^[0-9A-F]{40}$',message='A GPG fingerprint must contain 40 hexadecimal characters.')]),
),
migrations.AlterField(
model_name='ban',
name='state',
field=models.IntegerField(choices=[(0,'HARD (no access)'),(1,'SOFT (local access only)'),(2,'RESTRICTED (speed limitation)')],default=0),
),
migrations.AlterField(
model_name='emailaddress',
name='user',
field=models.ForeignKey(help_text='User of the local email account',on_delete=django.db.models.deletion.CASCADE,to=settings.AUTH_USER_MODEL),
),
migrations.AlterField(
model_name='listright',
name='unix_name',
field=models.CharField(max_length=255,unique=True,validators=[django.core.validators.RegexValidator('^[a-z]+$',message='UNIX groups can only contain lower case letters.')]),
field=models.CharField(help_text='Must only contain letters, numerals or dashes.',max_length=32,unique=True,validators=[users.models.linux_user_validator]),
),
migrations.AlterField(
model_name='user',
name='comment',
field=models.CharField(blank=True,help_text='Comment, school year',max_length=255),
),
migrations.AlterField(
model_name='user',
name='local_email_redirect',
field=models.BooleanField(default=False,help_text='Enable redirection of the local email messages to the main email address.'),
),
migrations.AlterField(
model_name='user',
name='pseudo',
field=models.CharField(help_text='Must only contain letters, numerals or dashes.',max_length=32,unique=True,validators=[users.models.linux_user_validator]),
@ -25,15 +25,16 @@ with this program; if not, write to the Free Software Foundation, Inc.,
{% load bootstrap3 %}
{% load acl %}
{% load i18n %}
{% block title %}Utilisateurs{% endblock %}
{% block title %}{% trans "Users" %}{% endblock %}
{% block content %}
<h2>Liste des droits</h2>
<h2>{% trans "List of groups of rights" %}</h2>
{% can_create ListRight %}
<aclass="btn btn-primary btn-sm"role="button"href="{% url 'users:add-listright' %}"><iclass="fa fa-plus"></i> Ajouter un droit ou groupe</a>
<aclass="btn btn-primary btn-sm"role="button"href="{% url 'users:add-listright' %}"><iclass="fa fa-plus"></i>{% trans " Add a group of rights" %}</a>
{% acl_end %}
<aclass="btn btn-danger btn-sm"role="button"href="{% url 'users:del-listright' %}"><iclass="fa fa-trash"></i> Supprimer un ou plusieurs droits/groupes</a>
<aclass="btn btn-danger btn-sm"role="button"href="{% url 'users:del-listright' %}"><iclass="fa fa-trash"></i>{% trans " Delete one or several groups of rights" %}</a>
@ -25,16 +25,17 @@ with this program; if not, write to the Free Software Foundation, Inc.,
{% load bootstrap3 %}
{% load acl %}
{% load i18n %}
{% block title %}Utilisateurs{% endblock %}
{% block title %}{% trans "Users" %}{% endblock %}
{% block content %}
<h2>Liste des Établissements</h2>
<h5>Ensemble des établissements d'enseignement ou d'activité des utilisateurs crées</h5>
<h2>{% trans "List of schools" %}</h2>
<h5>{% trans "List of schools for created users." %}</h5>
{% can_create School %}
<aclass="btn btn-primary btn-sm"role="button"href="{% url 'users:add-school' %}"><iclass="fa fa-plus"></i> Ajouter un établissement</a>
<aclass="btn btn-primary btn-sm"role="button"href="{% url 'users:add-school' %}"><iclass="fa fa-plus"></i>{% trans " Add a school" %}</a>
{% acl_end %}
<aclass="btn btn-danger btn-sm"role="button"href="{% url 'users:del-school' %}"><iclass="fa fa-trash"></i> Supprimer un ou plusieurs établissements</a>
<aclass="btn btn-danger btn-sm"role="button"href="{% url 'users:del-school' %}"><iclass="fa fa-trash"></i>{% trans " Delete one or several schools" %}</a>
<hr>
{% include "users/aff_schools.html" with school_list=school_list %}
@ -25,15 +25,15 @@ with this program; if not, write to the Free Software Foundation, Inc.,
{% load bootstrap3 %}
{% load acl %}
{% load i18n %}
{% block title %}Utilisateurs{% endblock %}
{% block title %}{% trans "Users" %}{% endblock %}
{% block content %}
<h2>Liste des service users LDAP</h2>
<h5>Les service users LDAP sont des utilisateurs spéciaux qui disposent d'un accès uniquement sur le ldap pour effectuer des opération d'authentification.
Il est recommandé de créer un service-user doté d'un login/mdp par service concerné</h5>
<h2>{% trans "List of LDAP service users" %}</h2>
<h5>{% trans "The LDAP service users are special users having access only to the LDAP for authentication operations. It is recommended to create a service user with a login and a password for any concerned service." %}</h5>
{% can_create ServiceUser %}
<aclass="btn btn-primary btn-sm"role="button"href="{% url 'users:new-serviceuser' %}"><iclass="fa fa-plus"></i> Ajouter un service user</a>
<aclass="btn btn-primary btn-sm"role="button"href="{% url 'users:new-serviceuser' %}"><iclass="fa fa-plus"></i>{% trans " Add a service user" %}</a>
{% acl_end %}
{% include "users/aff_serviceusers.html" with serviceusers_list=serviceusers_list %}
<iclass="fa fa-pencil-alt"></i>{% trans " Edit email settings" %}
</a>
{% acl_end %}
</div>
@ -437,22 +435,22 @@ with this program; if not, write to the Free Software Foundation, Inc.,
<divclass="table-responsive">
<tableclass="table">
<tr>
<thcolspan="2">Contact email address</th>
<thcolspan="2">{% trans "Contact email address" %}</th>
<tdcolspan="2">{{ users.get_mail }}</td>
</tr>
<tr>
<th>Enable the local email account</th>
<th>{% trans "Enable the local email account" %}</th>
<td>{{ users.local_email_enabled | tick }}</td>
<th>Enable the local email redirection</th>
<th>{% trans "Enable the local email redirection" %}</th>
<td>{{ users.local_email_redirect | tick }}</td>
</tr>
</table>
<p>{% blocktrans %}The Contact email is the email address where we send email to contact you. If you would like to use your external email address for that, you can either disable your local email address or enable the local email redirection.{% endblocktrans %}</p>
<p>{% trans "The contact email address is the email address where we send emails to contact you. If you would like to use your external email address for that, you can either disable your local email address or enable the local email redirection." %}</p>
@ -26,7 +26,8 @@ with this program; if not, write to the Free Software Foundation, Inc.,
{% load bootstrap3 %}
{% load massive_bootstrap_form %}
{% load static %}
{% block title %}Création et modification d'utilisateur{% endblock %}
{% load i18n %}
{% block title %}{% trans "Users" %}{% endblock %}
{% block content %}
{% bootstrap_form_errors userform %}
@ -41,11 +42,12 @@ with this program; if not, write to the Free Software Foundation, Inc.,
{% endif %}
<br>
{% if showCGU %}
<p>En cliquant sur Créer ou modifier, l'utilisateur s'engage à respecter les <ahref="/media/{{ GTU }}"download="CGU">règles d'utilisation du réseau</a>.</p>
<h3>Résumé des règles d'utilisations</h3>
<p>{% trans "By clicking 'Create or edit', the user commits to respect the " %}<ahref="/media/{{ GTU }}"download="CGU">{% trans "General Terms of Use" %}</a>.</p>
<h3>{% trans "Summary of the General Terms of Use" %}</h3>