TT#52006 header manipulations priority is now editable in the UI

* it is possible now to manually edit the "priority"
      field for rules and actions

Change-Id: I1d82399250b7838b5150e35d0cc421e5e70df93f
changes/58/27758/1
Kirill Solomko 7 years ago
parent c3ed47b5c7
commit b25fd7bd35

@ -14,6 +14,15 @@ has_field 'rule_id' => (
type => 'Hidden',
);
has_field 'priority' => (
type => 'PosInteger',
required => 1,
element_attr => {
rel => ['tooltip'],
title => ['Header rule action priority, smaller value has the higher priority.'],
},
);
has_field 'header' => (
type => 'Text',
label => 'Header',
@ -113,7 +122,7 @@ has_field 'save' => (
has_block 'fields' => (
tag => 'div',
class => [qw/modal-body/],
render_list => [qw/rule_id header header_part action_type value_part value rwr_set rwr_set_id rwr_dp rwr_dp_id enabled/ ],
render_list => [qw/rule_id priority header header_part action_type value_part value rwr_set rwr_set_id rwr_dp rwr_dp_id enabled/ ],
);
has_block 'actions' => (

@ -18,7 +18,7 @@ has_field 'rwr_dp' => (
has_block 'fields' => (
tag => 'div',
class => [qw/modal-body/],
render_list => [qw/rule_id header header_part action_type value_part value rwr_set_id rwr_dp enabled/ ],
render_list => [qw/rule_id priority header header_part action_type value_part value rwr_set_id rwr_dp enabled/ ],
);
1;

@ -19,6 +19,15 @@ has_field 'name' => (
},
);
has_field 'priority' => (
type => 'PosInteger',
required => 1,
element_attr => {
rel => ['tooltip'],
title => ['Header rule priority, smaller value has the higher priority.'],
},
);
has_field 'direction' => (
type => 'Select',
options => [
@ -70,7 +79,7 @@ has_field 'save' => (
has_block 'fields' => (
tag => 'div',
class => [qw/modal-body/],
render_list => [qw/name direction description stopper enabled/],
render_list => [qw/name priority direction description stopper enabled/],
);
has_block 'actions' => (

@ -12,15 +12,6 @@ has_field 'set_id' => (
},
);
has_field 'priority' => (
type => 'PosInteger',
required => 1,
element_attr => {
rel => ['tooltip'],
title => ['Header rule priority, smaller value has the higher priority.'],
},
);
has_block 'fields' => (
tag => 'div',
class => [qw/modal-body/],

Loading…
Cancel
Save