forked from ManageIQ/manageiq-ui-classic
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
UI for add/remove interface on network router
This commit adds UI code for adding and removing router interfaces. BZ for this is: https://bugzilla.redhat.com/show_bug.cgi?id=1394284 Euwe backport depends on merging ManageIQ/manageiq#13005
- Loading branch information
Showing
8 changed files
with
401 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
%form#form_div{:name => "angularForm", 'ng-controller' => "networkRouterFormController", :novalidate => true} | ||
= render :partial => "layouts/flash_msg" | ||
%h3 | ||
= _('Add Interface to Router') | ||
.form-horizontal | ||
.form-group | ||
%label.col-md-2.control-label | ||
= _('Subnet') | ||
.col-md-8 | ||
= select_tag("cloud_subnet_id", | ||
options_for_select([["<#{_('Choose')}>", nil]] + @subnet_choices.sort), | ||
"ng-model" => "networkRouterModel.cloud_subnet_id", | ||
"required" => "", | ||
:miqrequired => true, | ||
:checkchange => true, | ||
"selectpicker-for-select-tag" => "") | ||
= render :partial => "layouts/angular/x_custom_form_buttons_angular", | ||
:locals => {:button_label => _("Add"), | ||
:button_click => "addInterfaceClicked()"} | ||
|
||
:javascript | ||
ManageIQ.angular.app.value('networkRouterFormId', '#{@router.id}'); | ||
miq_bootstrap('#form_div'); |
23 changes: 23 additions & 0 deletions
23
app/views/network_router/remove_interface_select.html.haml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
%form#form_div{:name => "angularForm", 'ng-controller' => "networkRouterFormController", :novalidate => true} | ||
= render :partial => "layouts/flash_msg" | ||
%h3 | ||
= _('Remove Interface from Router') | ||
.form-horizontal | ||
.form-group | ||
%label.col-md-2.control-label | ||
= _('Subnet') | ||
.col-md-8 | ||
= select_tag("cloud_subnet_id", | ||
options_for_select([["<#{_('Choose')}>", nil]] + @subnet_choices.sort), | ||
"ng-model" => "networkRouterModel.cloud_subnet_id", | ||
"required" => "", | ||
:miqrequired => true, | ||
:checkchange => true, | ||
"selectpicker-for-select-tag" => "") | ||
= render :partial => "layouts/angular/x_custom_form_buttons_angular", | ||
:locals => {:button_label => _("Remove"), | ||
:button_click => "removeInterfaceClicked()"} | ||
|
||
:javascript | ||
ManageIQ.angular.app.value('networkRouterFormId', '#{@router.id}'); | ||
miq_bootstrap('#form_div'); |
Oops, something went wrong.