mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-25 22:22:26 +00:00
Boolean compte mail actif/inactif
This commit is contained in:
parent
58e0d28110
commit
1de27e51bb
3 changed files with 31 additions and 5 deletions
20
preferences/migrations/0036_optionaluser_mail_accounts.py
Normal file
20
preferences/migrations/0036_optionaluser_mail_accounts.py
Normal file
|
@ -0,0 +1,20 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# Generated by Django 1.10.7 on 2018-06-29 16:01
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('preferences', '0035_optionaluser_mail_extension'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='optionaluser',
|
||||
name='mail_accounts',
|
||||
field=models.BooleanField(default=False, help_text='Activation des comptes mails pour les utilisateurs'),
|
||||
),
|
||||
]
|
|
@ -85,6 +85,10 @@ class OptionalUser(AclMixin, PreferencesModel):
|
|||
blank=True,
|
||||
null=True
|
||||
)
|
||||
mail_accounts = models.BooleanField(
|
||||
default=False,
|
||||
help_text="Activation des comptes mails pour les utilisateurs"
|
||||
)
|
||||
mail_extension = models.CharField(
|
||||
max_length = 32,
|
||||
default = "@example.org",
|
||||
|
|
|
@ -34,10 +34,11 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||
<a class="btn btn-primary btn-sm" role="button" href="{% url 'preferences:edit-options' 'OptionalUser' %}">
|
||||
<i class="fa fa-edit"></i>
|
||||
Editer
|
||||
</a>
|
||||
<p>
|
||||
</p>
|
||||
<table class="table table-striped">
|
||||
</a>
|
||||
<p>
|
||||
</p>
|
||||
<h5>Généralités</h5>
|
||||
<table class="table table-striped">
|
||||
<tr>
|
||||
<th>Téléphone obligatoirement requis</th>
|
||||
<td>{{ useroptions.is_tel_mandatory|tick }}</td>
|
||||
|
@ -69,6 +70,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||
<td>{{ useroption.max_mail_alias }}<td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<h4>Préférences machines</h4>
|
||||
<a class="btn btn-primary btn-sm" role="button" href="{% url 'preferences:edit-options' 'OptionalMachine' %}">
|
||||
<i class="fa fa-edit"></i>
|
||||
|
|
Loading…
Reference in a new issue