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"> - diff --git a/horizon/templates/horizon/common/_workflow.html b/horizon/templates/horizon/common/_workflow.html index ca04ff0adc..22797d5f7b 100644 --- a/horizon/templates/horizon/common/_workflow.html +++ b/horizon/templates/horizon/common/_workflow.html @@ -54,8 +54,8 @@ {% else %} - - {% if modal %}{% trans "Cancel" %}{% endif %} + {% if modal %}{% trans "Cancel" %}{% endif %} + {% endif %} {% endblock %} diff --git a/openstack_dashboard/dashboards/admin/aggregates/templates/aggregates/_update.html b/openstack_dashboard/dashboards/admin/aggregates/templates/aggregates/_update.html index 4788f05797..7e0b509399 100644 --- a/openstack_dashboard/dashboards/admin/aggregates/templates/aggregates/_update.html +++ b/openstack_dashboard/dashboards/admin/aggregates/templates/aggregates/_update.html @@ -18,8 +18,3 @@

{% trans "Host aggregates divide an availability zone into logical units by grouping together hosts. Edit the aggregate host to select hosts contained in it." %}

{% endblock %} - -{% block modal-footer %} - - {% trans "Cancel" %} -{% endblock %} diff --git a/openstack_dashboard/dashboards/admin/hypervisors/compute/views.py b/openstack_dashboard/dashboards/admin/hypervisors/compute/views.py index efe4dde2af..6e1679585d 100644 --- a/openstack_dashboard/dashboards/admin/hypervisors/compute/views.py +++ b/openstack_dashboard/dashboards/admin/hypervisors/compute/views.py @@ -28,6 +28,7 @@ class EvacuateHostView(forms.ModalFormView): context_object_name = 'compute_host' success_url = reverse_lazy("horizon:admin:hypervisors:index") page_title = _("Evacuate Host") + submit_label = page_title def get_context_data(self, **kwargs): context = super(EvacuateHostView, self).get_context_data(**kwargs) @@ -60,6 +61,7 @@ class DisableServiceView(forms.ModalFormView): context_object_name = 'compute_host' success_url = reverse_lazy("horizon:admin:hypervisors:index") page_title = _("Disable Service") + submit_label = page_title def get_context_data(self, **kwargs): context = super(DisableServiceView, self).get_context_data(**kwargs) @@ -78,6 +80,7 @@ class MigrateHostView(forms.ModalFormView): context_object_name = 'compute_host' success_url = reverse_lazy("horizon:admin:hypervisors:index") page_title = _("Migrate Host") + submit_label = page_title def get_context_data(self, **kwargs): context = super(MigrateHostView, self).get_context_data(**kwargs) diff --git a/openstack_dashboard/dashboards/admin/hypervisors/templates/hypervisors/compute/_disable_service.html b/openstack_dashboard/dashboards/admin/hypervisors/templates/hypervisors/compute/_disable_service.html index 59e3ff908f..c3664b0453 100644 --- a/openstack_dashboard/dashboards/admin/hypervisors/templates/hypervisors/compute/_disable_service.html +++ b/openstack_dashboard/dashboards/admin/hypervisors/templates/hypervisors/compute/_disable_service.html @@ -17,8 +17,3 @@

{% trans "Disable the compute service." %}

{% endblock %} - -{% block modal-footer %} - - {% trans "Cancel" %} -{% endblock %} diff --git a/openstack_dashboard/dashboards/admin/hypervisors/templates/hypervisors/compute/_evacuate_host.html b/openstack_dashboard/dashboards/admin/hypervisors/templates/hypervisors/compute/_evacuate_host.html index 4e55249768..246a29cb6d 100644 --- a/openstack_dashboard/dashboards/admin/hypervisors/templates/hypervisors/compute/_evacuate_host.html +++ b/openstack_dashboard/dashboards/admin/hypervisors/templates/hypervisors/compute/_evacuate_host.html @@ -17,8 +17,3 @@

{% trans "Evacuate the servers from the selected down host to an active target host." %}

{% endblock %} - -{% block modal-footer %} - - {% trans "Cancel" %} -{% endblock %} diff --git a/openstack_dashboard/dashboards/admin/hypervisors/templates/hypervisors/compute/_migrate_host.html b/openstack_dashboard/dashboards/admin/hypervisors/templates/hypervisors/compute/_migrate_host.html index ad36eef7d9..fd91ffbfb9 100644 --- a/openstack_dashboard/dashboards/admin/hypervisors/templates/hypervisors/compute/_migrate_host.html +++ b/openstack_dashboard/dashboards/admin/hypervisors/templates/hypervisors/compute/_migrate_host.html @@ -16,8 +16,3 @@

{% trans "Migrate all instances from a host with disabled nova-compute service. Optionally you can choose type of migration. All running instances of the host can be Live Migrated. Cold Migration is trying to use 'nova migrate' on each instance of migrated host." %}

{% endblock %} - -{% block modal-footer %} - - {% trans "Cancel" %} -{% endblock %} diff --git a/openstack_dashboard/dashboards/admin/instances/templates/instances/_live_migrate.html b/openstack_dashboard/dashboards/admin/instances/templates/instances/_live_migrate.html index 789f6d559a..679b740b91 100644 --- a/openstack_dashboard/dashboards/admin/instances/templates/instances/_live_migrate.html +++ b/openstack_dashboard/dashboards/admin/instances/templates/instances/_live_migrate.html @@ -17,8 +17,3 @@

{% trans "Live migrate an instance to a specific host." %}

{% endblock %} - -{% block modal-footer %} - - {% trans "Cancel" %} -{% endblock %} diff --git a/openstack_dashboard/dashboards/admin/instances/views.py b/openstack_dashboard/dashboards/admin/instances/views.py index 771f5dc773..c240f5d34a 100644 --- a/openstack_dashboard/dashboards/admin/instances/views.py +++ b/openstack_dashboard/dashboards/admin/instances/views.py @@ -155,6 +155,7 @@ class LiveMigrateView(forms.ModalFormView): context_object_name = 'instance' success_url = reverse_lazy("horizon:admin:instances:index") page_title = _("Live Migrate") + success_label = page_title def get_context_data(self, **kwargs): context = super(LiveMigrateView, self).get_context_data(**kwargs) diff --git a/openstack_dashboard/dashboards/admin/metadata_defs/templates/metadata_defs/_create.html b/openstack_dashboard/dashboards/admin/metadata_defs/templates/metadata_defs/_create.html index 760518d4ab..85de7fe75c 100644 --- a/openstack_dashboard/dashboards/admin/metadata_defs/templates/metadata_defs/_create.html +++ b/openstack_dashboard/dashboards/admin/metadata_defs/templates/metadata_defs/_create.html @@ -29,8 +29,3 @@

{% 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 %}
- - {% trans "Cancel" %} + {% trans "Cancel" %} +
{% 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 %}