8
0
Fork 0
mirror of https://gitlab.federez.net/re2o/re2o synced 2024-07-02 04:04:06 +00:00

Reglage mac_autocapture ajouté

This commit is contained in:
Gabriel Detraz 2017-09-10 18:16:59 +02:00 committed by root
parent 4d4538ea8c
commit 0be751ab0f
3 changed files with 26 additions and 0 deletions

View file

@ -0,0 +1,20 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.10.7 on 2017-09-10 16:16
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('preferences', '0017_mailmessageoption'),
]
operations = [
migrations.AddField(
model_name='optionaltopologie',
name='mac_autocapture',
field=models.BooleanField(default=False),
),
]

View file

@ -54,9 +54,11 @@ class OptionalTopologie(models.Model):
(DEFINED, 'Prédéfini dans "Vlan où placer les machines après acceptation RADIUS"'),
)
radius_general_policy = models.CharField(max_length=32, choices=CHOICE_RADIUS, default='DEFINED')
vlan_decision_ok = models.OneToOneField('machines.Vlan', on_delete=models.PROTECT, related_name='decision_ok', blank=True, null=True)
vlan_decision_nok = models.OneToOneField('machines.Vlan', on_delete=models.PROTECT, related_name='decision_nok', blank=True, null=True)
mac_autocapture = models.BooleanField(default=False)
class GeneralOption(models.Model):
PRETTY_NAME = "Options générales"

View file

@ -96,6 +96,10 @@ with this program; if not, write to the Free Software Foundation, Inc.,
<th>Vlan où placer les machines après rejet RADIUS</th>
<td>{{ topologieoptions.vlan_decision_nok }}</td>
</tr>
<tr>
<th>Autocapture des macs à la connexion</th>
<td>{{ topologieoptions.mac_autocapture }}
</tr>
</table>
<h4>Préférences generales</h4>
{% if is_bureau %}