Commit bef94b77 by Bach Dániel

dashboard: random fixes

parent 7f80408e
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
<i class="fa fa-plus"></i> <i class="fa fa-long-arrow-right"></i> <i class="fa fa-plus"></i> <i class="fa fa-long-arrow-right"></i>
</span> </span>
<input type="number" class="form-control" size="5" min="1" max="65535" <input type="number" class="form-control" size="5" min="1" max="65535"
style="width: 80px;" name="port"/> style="width: 80px;" name="port" required/>
<span class="input-group-addon">/</span> <span class="input-group-addon">/</span>
<select class="form-control" name="proto" style="width: 70px;"><option>tcp</option><option>udp</option></select> <select class="form-control" name="proto" style="width: 70px;"><option>tcp</option><option>udp</option></select>
<div class="input-group-btn"> <div class="input-group-btn">
......
...@@ -422,6 +422,7 @@ class VmPortRemoveView(FormOperationMixin, VmOperationView): ...@@ -422,6 +422,7 @@ class VmPortRemoveView(FormOperationMixin, VmOperationView):
op = 'remove_port' op = 'remove_port'
show_in_toolbar = False show_in_toolbar = False
with_reload = True with_reload = True
wait_for_result = 0.5
icon = 'times' icon = 'times'
effect = "danger" effect = "danger"
form_class = VmPortRemoveForm form_class = VmPortRemoveForm
...@@ -449,7 +450,8 @@ class VmPortAddView(FormOperationMixin, VmOperationView): ...@@ -449,7 +450,8 @@ class VmPortAddView(FormOperationMixin, VmOperationView):
op = 'add_port' op = 'add_port'
show_in_toolbar = False show_in_toolbar = False
with_reload = True with_reload = True
icon = 'times' wait_for_result = 0.5
icon = 'plus'
effect = "success" effect = "success"
form_class = VmPortAddForm form_class = VmPortAddForm
......
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 sign in to comment