mirror of https://gitlab.federez.net/re2o/re2o
9 changed files with 88 additions and 50 deletions
@ -0,0 +1,17 @@ |
|||||
|
/** To enable the redirection has no meaning if the local email adress is not |
||||
|
* enabled. Thus this function enable the checkbox if needed and changes its |
||||
|
* state. |
||||
|
*/ |
||||
|
function enable_redirection_chkbox() { |
||||
|
var redirect = document.getElementById('id_User-local_email_redirect'); |
||||
|
var enabled = document.getElementById('id_User-local_email_enabled').checked; |
||||
|
if(!enabled) |
||||
|
{ |
||||
|
redirect.checked = false; |
||||
|
} |
||||
|
redirect.disabled = !enabled; |
||||
|
} |
||||
|
|
||||
|
var enabled_chkbox = document.getElementById('id_User-local_email_enabled'); |
||||
|
enabled_chkbox.onclick = enable_redirection_chkbox; |
||||
|
enable_redirection_chkbox(); |
||||
@ -0,0 +1,30 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
# Generated by Django 1.10.7 on 2018-08-14 08:59 |
||||
|
from __future__ import unicode_literals |
||||
|
|
||||
|
from django.db import migrations, models |
||||
|
|
||||
|
|
||||
|
class Migration(migrations.Migration): |
||||
|
|
||||
|
dependencies = [ |
||||
|
('users', '0073_auto_20180629_1614'), |
||||
|
] |
||||
|
|
||||
|
operations = [ |
||||
|
migrations.AlterField( |
||||
|
model_name='user', |
||||
|
name='email', |
||||
|
field=models.EmailField(blank=True, help_text='External email address allowing us to contact you.', max_length=254), |
||||
|
), |
||||
|
migrations.AlterField( |
||||
|
model_name='user', |
||||
|
name='local_email_enabled', |
||||
|
field=models.BooleanField(default=False, help_text='Enable the local email account.'), |
||||
|
), |
||||
|
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.'), |
||||
|
), |
||||
|
] |
||||
@ -1,20 +0,0 @@ |
|||||
# -*- coding: utf-8 -*- |
|
||||
# Generated by Django 1.10.7 on 2018-08-11 02:25 |
|
||||
from __future__ import unicode_literals |
|
||||
|
|
||||
from django.db import migrations, models |
|
||||
|
|
||||
|
|
||||
class Migration(migrations.Migration): |
|
||||
|
|
||||
dependencies = [ |
|
||||
('users', '0075_auto_20180811_0420'), |
|
||||
] |
|
||||
|
|
||||
operations = [ |
|
||||
migrations.AlterField( |
|
||||
model_name='user', |
|
||||
name='email', |
|
||||
field=models.EmailField(max_length=254, unique=True), |
|
||||
), |
|
||||
] |
|
||||
Loading…
Reference in new issue