From 7bf6e7269291b9ce4856543a15b57487e248e3d2 Mon Sep 17 00:00:00 2001 From: Nick Timkovich Date: Tue, 24 Oct 2017 15:00:40 -0500 Subject: [PATCH] Add titles to "Update Lease" and "Update Host" forms This presents a more uniform style when looking at the modal forms. Change-Id: If162ce4c2fcda845d7e233bb52669aeab2d73df5 --- blazar_dashboard/content/hosts/views.py | 1 + blazar_dashboard/content/leases/views.py | 1 + 2 files changed, 2 insertions(+) diff --git a/blazar_dashboard/content/hosts/views.py b/blazar_dashboard/content/hosts/views.py index 0ca9b79..1ab8514 100644 --- a/blazar_dashboard/content/hosts/views.py +++ b/blazar_dashboard/content/hosts/views.py @@ -55,6 +55,7 @@ class UpdateView(forms.ModalFormView): form_class = project_forms.UpdateForm template_name = 'admin/hosts/update.html' success_url = reverse_lazy('horizon:admin:hosts:index') + modal_header = _("Update Host") def get_initial(self): initial = super(UpdateView, self).get_initial() diff --git a/blazar_dashboard/content/leases/views.py b/blazar_dashboard/content/leases/views.py index fdf676f..5dbc9eb 100644 --- a/blazar_dashboard/content/leases/views.py +++ b/blazar_dashboard/content/leases/views.py @@ -61,6 +61,7 @@ class UpdateView(forms.ModalFormView): form_class = project_forms.UpdateForm template_name = 'project/leases/update.html' success_url = reverse_lazy('horizon:project:leases:index') + modal_header = _("Update Lease") def get_initial(self): initial = super(UpdateView, self).get_initial()