File tree Expand file tree Collapse file tree 4 files changed +7
-3
lines changed
Expand file tree Collapse file tree 4 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -643,6 +643,9 @@ def edit_prefix(self, id):
643643 else :
644644 p .node = request .params ['node' ].strip ()
645645
646+ if 'status' in request .params :
647+ p .status = request .params ['status' ].strip ()
648+
646649 if 'pool' in request .params :
647650 if request .params ['pool' ].strip () == '' :
648651 p .pool = None
Original file line number Diff line number Diff line change @@ -2234,7 +2234,7 @@ function prefixFormSubmit(e) {
22342234 'tags' : $ ( 'input[name="prefix_tags"]' ) . val ( ) ,
22352235 'node' : $ ( 'input[name="prefix_node"]' ) . val ( ) ,
22362236 'type' : $ ( 'input[name="prefix_type"]:checked' ) . val ( ) ,
2237- 'status' : $ ( 'input [name="prefix_status"]' ) . val ( ) ,
2237+ 'status' : $ ( 'select [name="prefix_status"]' ) . val ( ) ,
22382238 'country' : $ ( 'input[name="prefix_country"]' ) . val ( ) ,
22392239 'order_id' : $ ( 'input[name="prefix_order_id"]' ) . val ( ) ,
22402240 'customer_id' : $ ( 'input[name="prefix_customer_id"]' ) . val ( ) ,
Original file line number Diff line number Diff line change 3333 'comment' : $ ( 'input[name="prefix_comment"]' ) . val ( ) ,
3434 'alarm_priority' : $ ( 'input[name="prefix_alarm_priority"]:checked' ) . val ( ) ,
3535 'vlan' : $ ( 'input[name="prefix_vlan"]' ) . val ( ) ,
36- 'status' : $ ( 'input [name="prefix_status"]' ) . val ( ) ,
36+ 'status' : $ ( 'select [name="prefix_status"]' ) . val ( ) ,
3737 'tags' : $ ( "#tags" ) . tagit ( "assignedTags" )
3838 } ;
39+ log ( "damp " + $ ( 'select[name="prefix_status"]' ) . val ( ) ) ;
3940
4041 if ( $ ( 'input[name="prefix_monitor"]' ) . is ( ':checked' ) ) {
4142 data . monitor = 'true' ;
Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ <h3 class="options-group-heading">Prefix options</h3>
7878 Status < span class ="required tiptip " title ="This field is required, please fill in! :-) "> *</ span >
7979 </ dt >
8080 < dd >
81- < select id ="prefix_status ">
81+ < select name ="prefix_status ">
8282 < option {% if c.prefix.status == 'assigned ' %}selected{% endif %} value ="assigned "> Assigned</ option >
8383 < option {% if c.prefix.status == 'reserved ' %}selected{% endif %} value ="reserved "> Reserved</ option >
8484 < option {% if c.prefix.status == 'quarantine ' %}selected{% endif %} value ="quarantine "> Quarantine</ option >
You can’t perform that action at this time.
0 commit comments