diff --git a/horizon/static/horizon/js/horizon.forms.js b/horizon/static/horizon/js/horizon.forms.js index 5664e7be69..8b2565edf9 100644 --- a/horizon/static/horizon/js/horizon.forms.js +++ b/horizon/static/horizon/js/horizon.forms.js @@ -230,15 +230,6 @@ horizon.forms.add_password_fields_reveal_buttons = function (el) { }); }; -horizon.forms.init_examples = function (el) { - var $el = $(el); - - // FIXME(gabriel): These should be moved into the forms themselves as help text, etc. - - // Update/create image form. - $el.find("#create_image_form input#id_copy_from").attr("placeholder", "http://example.com/image.iso"); -}; - horizon.forms.init_themable_select = function ($elem) { "use strict"; @@ -348,9 +339,6 @@ horizon.addInitFunction(horizon.forms.init = function () { horizon.forms.init_themable_select(); horizon.modals.addModalInitFunction(horizon.forms.init_themable_select); - horizon.forms.init_examples($body); - horizon.modals.addModalInitFunction(horizon.forms.init_examples); - horizon.forms.handle_snapshot_source(); horizon.forms.handle_volume_source(); horizon.forms.handle_image_source(); diff --git a/openstack_dashboard/dashboards/project/images/images/forms.py b/openstack_dashboard/dashboards/project/images/images/forms.py index 1c3a449992..fcbc5cc4f1 100644 --- a/openstack_dashboard/dashboards/project/images/images/forms.py +++ b/openstack_dashboard/dashboards/project/images/images/forms.py @@ -125,7 +125,8 @@ class CreateImageForm(CreateParent): 'data-switch-on': 'source', 'data-source-url': _('Image Location'), 'ng-model': 'ctrl.copyFrom', - 'ng-change': 'ctrl.selectImageFormat(ctrl.copyFrom)' + 'ng-change': 'ctrl.selectImageFormat(ctrl.copyFrom)', + 'placeholder': 'http://example.com/image.img' } image_url = ImageURLField(label=_("Image Location"), help_text=_("An external (HTTP/HTTPS) URL to "