Merge "Add titles to "Update Lease" and "Update Host" forms"
This commit is contained in:
commit
386f13159e
|
@ -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()
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue