Add titles to "Update Lease" and "Update Host" forms

This presents a more uniform style when looking at the modal forms.

Change-Id: If162ce4c2fcda845d7e233bb52669aeab2d73df5
This commit is contained in:
Nick Timkovich 2017-10-24 15:00:40 -05:00 committed by Pierre Riteau
parent 0bf7b08b5b
commit 7bf6e72692
2 changed files with 2 additions and 0 deletions

View File

@ -55,6 +55,7 @@ class UpdateView(forms.ModalFormView):
form_class = project_forms.UpdateForm form_class = project_forms.UpdateForm
template_name = 'admin/hosts/update.html' template_name = 'admin/hosts/update.html'
success_url = reverse_lazy('horizon:admin:hosts:index') success_url = reverse_lazy('horizon:admin:hosts:index')
modal_header = _("Update Host")
def get_initial(self): def get_initial(self):
initial = super(UpdateView, self).get_initial() initial = super(UpdateView, self).get_initial()

View File

@ -61,6 +61,7 @@ class UpdateView(forms.ModalFormView):
form_class = project_forms.UpdateForm form_class = project_forms.UpdateForm
template_name = 'project/leases/update.html' template_name = 'project/leases/update.html'
success_url = reverse_lazy('horizon:project:leases:index') success_url = reverse_lazy('horizon:project:leases:index')
modal_header = _("Update Lease")
def get_initial(self): def get_initial(self):
initial = super(UpdateView, self).get_initial() initial = super(UpdateView, self).get_initial()