From 3adff90a373dd81d3471182f7ab07acf7e93826a Mon Sep 17 00:00:00 2001 From: Akihiro Motoki Date: Sat, 17 Feb 2018 23:24:18 +0900 Subject: [PATCH] Add "Edit Port Security Groups" action This commit adds a new action "Edit Port Security Groups" which jumps the interfaces tab of the instance detail page. In addition, a warning message is added to the "Edit Security Groups" form because if a user change security groups as an instance level the change will be applied to all interfaces of the instance, so it would be nice if we can provide a good navigation to a page of editting security groups per port. Previously, UpdateMembersStep does not support help_text_template option. To use a bold tag in the added help message, we need to use a template instead of help_text, so _workflow_step_update_members.html is updated. Closes-Bug: #1750147 Change-Id: I71437a376b94cab90df0e423aa7e1d2d0d8387ee --- .../common/_workflow_step_update_members.html | 2 +- .../dashboards/project/instances/tables.py | 15 ++++++++++++++- .../instances/_edit_security_group_help.html | 15 +++++++++++++++ .../instances/workflows/update_instance.py | 3 +-- ...dit-port-security-groups-f650fc98f5e10eb8.yaml | 2 ++ 5 files changed, 33 insertions(+), 4 deletions(-) create mode 100644 openstack_dashboard/dashboards/project/instances/templates/instances/_edit_security_group_help.html diff --git a/horizon/templates/horizon/common/_workflow_step_update_members.html b/horizon/templates/horizon/common/_workflow_step_update_members.html index 9a438b34d1..38e9dc9ef4 100644 --- a/horizon/templates/horizon/common/_workflow_step_update_members.html +++ b/horizon/templates/horizon/common/_workflow_step_update_members.html @@ -4,7 +4,7 @@