From 2e793aa2dd98552af13248ee4c135759b58f80fa Mon Sep 17 00:00:00 2001
From: Diana Whitten
Date: Mon, 29 Feb 2016 15:44:11 -0700
Subject: [PATCH] Branding: Workflow cancel btn should be themable
Cancel buttons are quite hard coded in their styles, and most templates
are overriding the default modal-footer template.
This patch removes most of the straight duplications in the
modal-footer.
Co-Authored-By: Rob Cresswell
Closes-bug: #1551455
Change-Id: I496381e3f512856ad37619108b45af3c1da800a5
---
.../horizon/common/_data_table_cell.html | 2 +-
.../templates/horizon/common/_workflow.html | 4 ++--
.../templates/aggregates/_update.html | 5 -----
.../admin/hypervisors/compute/views.py | 3 +++
.../hypervisors/compute/_disable_service.html | 5 -----
.../hypervisors/compute/_evacuate_host.html | 5 -----
.../hypervisors/compute/_migrate_host.html | 5 -----
.../templates/instances/_live_migrate.html | 5 -----
.../dashboards/admin/instances/views.py | 1 +
.../templates/metadata_defs/_create.html | 5 -----
.../metadata_defs/resource_types.html | 6 +++---
.../dashboards/admin/metadata_defs/views.py | 1 +
.../metering/templates/metering/_daily.html | 5 -----
.../dashboards/admin/metering/views.py | 1 +
.../networks/templates/networks/_create.html | 5 -----
.../volumes/volume_types/extras/_index.html | 2 +-
.../volumes/volume_types/qos_specs/_index.html | 2 +-
.../templates/groups/_add_non_member.html | 2 +-
.../api_access/_credentials.html | 2 +-
.../containers/_container_detail.html | 2 +-
.../containers/templates/containers/_copy.html | 2 +-
.../templates/containers/_create.html | 5 -----
.../containers/_create_pseudo_folder.html | 4 ++--
.../templates/containers/_object_detail.html | 2 +-
.../templates/containers/_update.html | 4 ++--
.../templates/containers/_upload.html | 4 ++--
.../templates/instances/_decryptpassword.html | 2 +-
.../templates/instances/_rebuild.html | 6 ------
.../dashboards/project/instances/views.py | 1 +
.../network_topology/_create_router.html | 5 -----
.../networks/templates/networks/_create.html | 5 -----
.../networks/templates/networks/create.html | 6 +++---
.../extensions/routerroutes/_create.html | 5 -----
.../extensions/routerrules/_create.html | 5 -----
.../templates/routers/ports/_create.html | 5 -----
.../templates/routers/ports/_setgateway.html | 5 -----
.../templates/stacks/_preview_details.html | 2 +-
.../templates/volumes/volumes/_attach.html | 8 ++++----
.../volumes/volumes/_create_snapshot.html | 6 +++---
.../dashboard/scss/components/_modals.scss | 18 ------------------
40 files changed, 38 insertions(+), 130 deletions(-)
diff --git a/horizon/templates/horizon/common/_data_table_cell.html b/horizon/templates/horizon/common/_data_table_cell.html
index ee72a33f82..d85e540e02 100644
--- a/horizon/templates/horizon/common/_data_table_cell.html
+++ b/horizon/templates/horizon/common/_data_table_cell.html
@@ -13,7 +13,7 @@
name="action" value="" type="submit">
-
{% endblock %}
-
-{% block modal-footer %}
-
- {% trans "Cancel" %}
-{% endblock %}
diff --git a/openstack_dashboard/dashboards/admin/metadata_defs/templates/metadata_defs/resource_types.html b/openstack_dashboard/dashboards/admin/metadata_defs/templates/metadata_defs/resource_types.html
index 553eb6e830..679efeff83 100644
--- a/openstack_dashboard/dashboards/admin/metadata_defs/templates/metadata_defs/resource_types.html
+++ b/openstack_dashboard/dashboards/admin/metadata_defs/templates/metadata_defs/resource_types.html
@@ -75,10 +75,10 @@
{% block modal-footer %}
{% endblock %}
diff --git a/openstack_dashboard/dashboards/admin/metadata_defs/views.py b/openstack_dashboard/dashboards/admin/metadata_defs/views.py
index 97e64e2808..fafb94e74f 100644
--- a/openstack_dashboard/dashboards/admin/metadata_defs/views.py
+++ b/openstack_dashboard/dashboards/admin/metadata_defs/views.py
@@ -84,6 +84,7 @@ class CreateView(forms.ModalFormView):
context_object_name = 'namespace'
success_url = reverse_lazy(constants.METADATA_INDEX_URL)
page_title = _("Create a Metadata Namespace")
+ submit_label = _("Import Namespace")
class DetailView(tabs.TabView):
diff --git a/openstack_dashboard/dashboards/admin/metering/templates/metering/_daily.html b/openstack_dashboard/dashboards/admin/metering/templates/metering/_daily.html
index aa40104d73..6d19330541 100644
--- a/openstack_dashboard/dashboards/admin/metering/templates/metering/_daily.html
+++ b/openstack_dashboard/dashboards/admin/metering/templates/metering/_daily.html
@@ -19,11 +19,6 @@
{% endblock %}
-{% block modal-footer %}
-
- {% trans "Cancel" %}
-{% endblock %}
-
{% block modal-js %}