Commit e404f59b authored by Mael Kervella's avatar Mael Kervella

Merge branch 'massive_use_bft_tag' into 'master'

Massive use bft tag

See merge request rezo/re2o!22
parents b9030ecf 2ccf8f47
......@@ -111,8 +111,6 @@ from .models import (
)
from users.models import User
from preferences.models import GeneralOption, OptionalMachine
from re2o.templatetags.massive_bootstrap_form import hidden_id, input_id
from re2o.utils import (
all_active_assigned_interfaces,
all_has_access,
......@@ -192,11 +190,13 @@ def generate_ipv4_mbf_param( form, is_type_tt ):
i_engine = { 'ipv4': generate_ipv4_engine( is_type_tt ) }
i_match_func = { 'ipv4': generate_ipv4_match_func( is_type_tt ) }
i_update_on = { 'ipv4': [f_type_id( is_type_tt )] }
i_gen_select = { 'ipv4': False }
i_mbf_param = {
'choices': i_choices,
'engine': i_engine,
'match_func': i_match_func,
'update_on': i_update_on
'update_on': i_update_on,
'gen_select': i_gen_select
}
return i_mbf_param
......
This diff is collapsed.
......@@ -53,7 +53,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
{% massive_bootstrap_form machineform 'user' %}
{% endif %}
{% if interfaceform %}
{% if i_bft_param %}
{% if i_mbf_param %}
{% massive_bootstrap_form interfaceform 'ipv4,machine' mbf_param=i_mbf_param %}
{% else %}
{% massive_bootstrap_form interfaceform 'ipv4,machine' %}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment