diff --git a/tuskar_ui/infrastructure/images/templates/images/_update.html b/tuskar_ui/infrastructure/images/templates/images/_update.html index ea62dec3d..3ac3c6c8d 100644 --- a/tuskar_ui/infrastructure/images/templates/images/_update.html +++ b/tuskar_ui/infrastructure/images/templates/images/_update.html @@ -19,8 +19,3 @@
{% trans "Modify different properties of an image." %}
{% endblock %} - -{% block modal-footer %} - - {% trans "Cancel" %} -{% endblock %} diff --git a/tuskar_ui/infrastructure/images/views.py b/tuskar_ui/infrastructure/images/views.py index 775e873e3..6dd6fa852 100644 --- a/tuskar_ui/infrastructure/images/views.py +++ b/tuskar_ui/infrastructure/images/views.py @@ -105,6 +105,7 @@ class UpdateView(views.UpdateView): template_name = 'infrastructure/images/update.html' form_class = forms.UpdateImageForm success_url = reverse_lazy('horizon:infrastructure:images:index') + submit_label = _("Update Image") @memoized.memoized_method def get_object(self): diff --git a/tuskar_ui/infrastructure/nodes/templates/nodes/_register.html b/tuskar_ui/infrastructure/nodes/templates/nodes/_register.html index 587bf815c..5e17b3747 100644 --- a/tuskar_ui/infrastructure/nodes/templates/nodes/_register.html +++ b/tuskar_ui/infrastructure/nodes/templates/nodes/_register.html @@ -10,11 +10,3 @@ {% block modal-body %} {% include "formset_table/menu_formset.html" with formset=form form_template="infrastructure/nodes/_nodes_formset_form.html" %} {% endblock %} - -{% block modal-footer %} - - {% trans "Cancel" %} -{% endblock %} - diff --git a/tuskar_ui/infrastructure/nodes/templates/nodes/_upload.html b/tuskar_ui/infrastructure/nodes/templates/nodes/_upload.html index 7638cb49e..23a3a7784 100644 --- a/tuskar_ui/infrastructure/nodes/templates/nodes/_upload.html +++ b/tuskar_ui/infrastructure/nodes/templates/nodes/_upload.html @@ -12,13 +12,3 @@ {% block modal-body %} {% include "horizon/common/_form_fields.html" %} {% endblock %} - -{% block modal-footer %} - - {% trans "Cancel" %} -{% endblock %} - diff --git a/tuskar_ui/infrastructure/nodes/views.py b/tuskar_ui/infrastructure/nodes/views.py index 0db92b2ec..704484015 100644 --- a/tuskar_ui/infrastructure/nodes/views.py +++ b/tuskar_ui/infrastructure/nodes/views.py @@ -47,6 +47,7 @@ class RegisterView(horizon_forms.ModalFormView): template_name = 'infrastructure/nodes/register.html' success_url = reverse_lazy( 'horizon:infrastructure:nodes:index') + submit_label = _("Register Nodes") def get_data(self): return [] @@ -77,6 +78,7 @@ class UploadView(horizon_forms.ModalFormView): template_name = 'infrastructure/nodes/upload.html' success_url = reverse_lazy( 'horizon:infrastructure:nodes:index') + submit_label = _("Upload Nodes") def post(self, request, *args, **kwargs): # This form's POST is handled in RegisterView. diff --git a/tuskar_ui/infrastructure/overview/views.py b/tuskar_ui/infrastructure/overview/views.py index c76d7acad..7d92aff60 100644 --- a/tuskar_ui/infrastructure/overview/views.py +++ b/tuskar_ui/infrastructure/overview/views.py @@ -236,6 +236,7 @@ class IndexView(horizon.forms.ModalFormView, StackMixin): class DeployConfirmationView(horizon.forms.ModalFormView, StackMixin): form_class = forms.DeployOvercloud template_name = 'infrastructure/overview/deploy_confirmation.html' + submit_label = _("Deploy") def get_context_data(self, **kwargs): context = super(DeployConfirmationView, @@ -253,6 +254,7 @@ class DeployConfirmationView(horizon.forms.ModalFormView, StackMixin): class UndeployConfirmationView(horizon.forms.ModalFormView, StackMixin): form_class = forms.UndeployOvercloud template_name = 'infrastructure/overview/undeploy_confirmation.html' + submit_label = _("Undeploy") def get_success_url(self): return reverse(INDEX_URL) @@ -272,6 +274,7 @@ class UndeployConfirmationView(horizon.forms.ModalFormView, StackMixin): class PostDeployInitView(horizon.forms.ModalFormView, StackMixin): form_class = forms.PostDeployInit template_name = 'infrastructure/overview/post_deploy_init.html' + submit_label = _("Initialize") def get_success_url(self): return reverse(INDEX_URL) diff --git a/tuskar_ui/infrastructure/parameters/templates/parameters/_service_config.html b/tuskar_ui/infrastructure/parameters/templates/parameters/_service_config.html index cae02765a..a23b6a2df 100644 --- a/tuskar_ui/infrastructure/parameters/templates/parameters/_service_config.html +++ b/tuskar_ui/infrastructure/parameters/templates/parameters/_service_config.html @@ -24,9 +24,3 @@ {% endblock %} - -{% block modal-footer %} - - {% trans "Cancel" %} -{% endblock %} -{% load form_helpers %} diff --git a/tuskar_ui/infrastructure/parameters/views.py b/tuskar_ui/infrastructure/parameters/views.py index ba0cbecd0..8e23eafbb 100644 --- a/tuskar_ui/infrastructure/parameters/views.py +++ b/tuskar_ui/infrastructure/parameters/views.py @@ -13,6 +13,7 @@ # under the License. from django.core.urlresolvers import reverse_lazy +from django.utils.translation import ugettext_lazy as _ import horizon.forms from horizon import tabs as horizon_tabs @@ -25,6 +26,7 @@ class ServiceConfigView(horizon.forms.ModalFormView): template_name = "infrastructure/parameters/service_config.html" form_class = forms.EditServiceConfig success_url = reverse_lazy('horizon:infrastructure:parameters:index') + submit_label = _("Save Configuration") def get_initial(self): plan = api.tuskar.Plan.get_the_plan(self.request) diff --git a/tuskar_ui/infrastructure/templates/infrastructure/overview/_deploy_confirmation.html b/tuskar_ui/infrastructure/templates/infrastructure/overview/_deploy_confirmation.html index c8b5e8403..fbd83b510 100644 --- a/tuskar_ui/infrastructure/templates/infrastructure/overview/_deploy_confirmation.html +++ b/tuskar_ui/infrastructure/templates/infrastructure/overview/_deploy_confirmation.html @@ -19,8 +19,3 @@{% trans "This operation cannot be undone. Are you sure you want to do that?" %}
{% endblock %} - -{% block modal-footer %} - - {% trans "Cancel" %} -{% endblock %} diff --git a/tuskar_ui/infrastructure/templates/infrastructure/overview/_post_deploy_init.html b/tuskar_ui/infrastructure/templates/infrastructure/overview/_post_deploy_init.html index 9e5dfee2a..d0f9c52a5 100644 --- a/tuskar_ui/infrastructure/templates/infrastructure/overview/_post_deploy_init.html +++ b/tuskar_ui/infrastructure/templates/infrastructure/overview/_post_deploy_init.html @@ -20,8 +20,3 @@ {% endblock %} - -{% block modal-footer %} - - {% trans "Cancel" %} -{% endblock %} diff --git a/tuskar_ui/infrastructure/templates/infrastructure/overview/_undeploy_confirmation.html b/tuskar_ui/infrastructure/templates/infrastructure/overview/_undeploy_confirmation.html index 9fc0c5e2f..50b2c9430 100644 --- a/tuskar_ui/infrastructure/templates/infrastructure/overview/_undeploy_confirmation.html +++ b/tuskar_ui/infrastructure/templates/infrastructure/overview/_undeploy_confirmation.html @@ -18,8 +18,3 @@ {% endblock %} - -{% block modal-footer %} - - {% trans "Cancel" %} -{% endblock %}