The update image should be changed to edit image
The edit image and the update image is not uniform in the horizon. Changed the update image to the edit image because there is only a few places to use the update image. Change-Id: I6ccca2e9da0d770d92a281cc4cb681c0507469dc Closes-Bug: #1540755
This commit is contained in:
parent
1e531ea55d
commit
b06d5a5db6
@ -1,7 +1,7 @@
|
||||
{% extends 'base.html' %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block title %}{% trans "Update Image" %}{% endblock %}
|
||||
{% block title %}{% trans "Edit Image" %}{% endblock %}
|
||||
|
||||
{% block main %}
|
||||
{% include 'admin/images/_update.html' %}
|
||||
|
@ -133,7 +133,7 @@ class UpdateView(views.UpdateView):
|
||||
form_class = project_forms.AdminUpdateImageForm
|
||||
submit_url = "horizon:admin:images:update"
|
||||
success_url = reverse_lazy('horizon:admin:images:index')
|
||||
page_title = _("Update Image")
|
||||
page_title = _("Edit Image")
|
||||
|
||||
|
||||
class DetailView(views.DetailView):
|
||||
|
@ -71,12 +71,12 @@ class CreateView(forms.ModalFormView):
|
||||
class UpdateView(forms.ModalFormView):
|
||||
form_class = project_forms.UpdateImageForm
|
||||
form_id = "update_image_form"
|
||||
modal_header = _("Update Image")
|
||||
submit_label = _("Update Image")
|
||||
modal_header = _("Edit Image")
|
||||
submit_label = _("Edit Image")
|
||||
submit_url = "horizon:project:images:images:update"
|
||||
template_name = 'project/images/images/update.html'
|
||||
success_url = reverse_lazy("horizon:project:images:index")
|
||||
page_title = _("Update Image")
|
||||
page_title = _("Edit Image")
|
||||
|
||||
@memoized.memoized_method
|
||||
def get_object(self):
|
||||
|
@ -1,6 +1,6 @@
|
||||
{% extends 'base.html' %}
|
||||
{% load i18n %}
|
||||
{% block title %}{% trans "Update Image" %}{% endblock %}
|
||||
{% block title %}{% trans "Edit Image" %}{% endblock %}
|
||||
|
||||
{% block main %}
|
||||
{% include 'project/images/images/_update.html' %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user