File tree 4 files changed +6
-3
lines changed
4 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -643,6 +643,9 @@ def edit_prefix(self, id):
643
643
else :
644
644
p .node = request .params ['node' ].strip ()
645
645
646
+ if 'status' in request .params :
647
+ p .status = request .params ['status' ].strip ()
648
+
646
649
if 'pool' in request .params :
647
650
if request .params ['pool' ].strip () == '' :
648
651
p .pool = None
Original file line number Diff line number Diff line change @@ -2234,7 +2234,7 @@ function prefixFormSubmit(e) {
2234
2234
'tags' : $ ( 'input[name="prefix_tags"]' ) . val ( ) ,
2235
2235
'node' : $ ( 'input[name="prefix_node"]' ) . val ( ) ,
2236
2236
'type' : $ ( 'input[name="prefix_type"]:checked' ) . val ( ) ,
2237
- 'status' : $ ( 'input [name="prefix_status"]' ) . val ( ) ,
2237
+ 'status' : $ ( 'select [name="prefix_status"]' ) . val ( ) ,
2238
2238
'country' : $ ( 'input[name="prefix_country"]' ) . val ( ) ,
2239
2239
'order_id' : $ ( 'input[name="prefix_order_id"]' ) . val ( ) ,
2240
2240
'customer_id' : $ ( 'input[name="prefix_customer_id"]' ) . val ( ) ,
Original file line number Diff line number Diff line change 33
33
'comment' : $ ( 'input[name="prefix_comment"]' ) . val ( ) ,
34
34
'alarm_priority' : $ ( 'input[name="prefix_alarm_priority"]:checked' ) . val ( ) ,
35
35
'vlan' : $ ( 'input[name="prefix_vlan"]' ) . val ( ) ,
36
- 'status' : $ ( 'input [name="prefix_status"]' ) . val ( ) ,
36
+ 'status' : $ ( 'select [name="prefix_status"]' ) . val ( ) ,
37
37
'tags' : $ ( "#tags" ) . tagit ( "assignedTags" )
38
38
} ;
39
39
Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ <h3 class="options-group-heading">Prefix options</h3>
78
78
Status < span class ="required tiptip " title ="This field is required, please fill in! :-) "> *</ span >
79
79
</ dt >
80
80
< dd >
81
- < select id ="prefix_status ">
81
+ < select name ="prefix_status ">
82
82
< option {% if c.prefix.status == 'assigned ' %}selected{% endif %} value ="assigned "> Assigned</ option >
83
83
< option {% if c.prefix.status == 'reserved ' %}selected{% endif %} value ="reserved "> Reserved</ option >
84
84
< option {% if c.prefix.status == 'quarantine ' %}selected{% endif %} value ="quarantine "> Quarantine</ option >
You can’t perform that action at this time.
0 commit comments