Skip to content

Commit

Permalink
Merge pull request #1582 from gildub/floating_ips-fix-edit-scope
Browse files Browse the repository at this point in the history
Floating IPs: Fix edit form buttons
(cherry picked from commit 16f257c)

https://bugzilla.redhat.com/show_bug.cgi?id=1464153
  • Loading branch information
Martin Povolny authored and simaishi committed Jun 22, 2017
1 parent 7895750 commit a9ea4ad
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions app/views/floating_ip/edit.haml
@@ -1,4 +1,8 @@
%form#form_div{:name => "angularForm", 'ng-controller' => "floatingIpFormController"}
%form#form_div{:name => "angularForm",
'ng-controller' => "floatingIpFormController as vm",
"miq-form" => true,
"model" => "vm.floatingIpModel",
"model-copy" => "vm.modelCopy"}
= render :partial => "layouts/flash_msg"
%h3
Expand All @@ -10,11 +14,11 @@
.col-md-8
%input.form-control{:type => "text",
:name => "Network Port",
"ng-model" => "floatingIpModel.network_port_ems_ref",
"ng-model" => "vm.floatingIpModel.network_port_ems_ref",
"ng-maxlength" => 40,
:checkchange => true}
= render :partial => "layouts/angular/x_edit_buttons_angular"
= render :partial => "layouts/angular/generic_form_buttons"
:javascript
ManageIQ.angular.app.value('floatingIpFormId', '#{@floating_ip.id}');
Expand Down

0 comments on commit a9ea4ad

Please sign in to comment.