
Implements wrappers necessary for Horizon to work with either Glance v1 or v2 and removes the dependency on the Glance v1 endpoint. Handles the differences between setting properties with v1 and v2 and restricts some Glance functions that aren't supported in v2. Implements blueprint: horizon-glance-v2 Co-Authored-By: Travis Tripp <travis.tripp@hp.com> Co-Authored-By: Brad Pokorny <Brad_Pokorny@symantec.com> Co-Authored-By: Timur Sufiev <tsufiev@mirantis.com> Co-Authored-By: Liuqing Jing <jing.liuqing@99cloud.net> Change-Id: Icca91c53eabf18c3109b3931ed53f70eaaaa0e56
30 lines
1.4 KiB
HTML
30 lines
1.4 KiB
HTML
{% extends "horizon/common/_modal_form.html" %}
|
|
{% load i18n %}
|
|
|
|
{% block ng_controller %}ImageFormController as ctrl{% endblock %}
|
|
{% block form_attrs %}enctype="multipart/form-data"{% endblock %}
|
|
|
|
|
|
{% block modal-body-right %}
|
|
<h3>{% trans "Description:" %}</h3>
|
|
<p>
|
|
{% if image_upload_enabled and images_allow_location %}
|
|
{% trans "Images can be provided via an HTTP/HTTPS URL or be uploaded from your local file system." %}
|
|
{% elif image_upload_enabled %}
|
|
{% trans "Currently only images uploaded from your local file system are supported." %}
|
|
{% else %}
|
|
{% trans "Currently only images available via an HTTP/HTTPS URL are supported. The image location must be accessible to the Image Service." %}
|
|
{% endif %}
|
|
</p>
|
|
<p>
|
|
{% if images_allow_location %}
|
|
<strong>{% trans "Please note: " %}</strong>
|
|
{% if image_upload_enabled %}
|
|
{% trans "If you select an image via an HTTP/HTTPS URL, the Image Location field MUST be a valid and direct URL to the image binary; it must also be accessible to the Image Service. URLs that redirect or serve error pages will result in unusable images." %}
|
|
{% else %}
|
|
{% trans "The Image Location field MUST be a valid and direct URL to the image binary. URLs that redirect or serve error pages will result in unusable images." %}
|
|
{% endif %}
|
|
{% endif %}
|
|
</p>
|
|
{% endblock %}
|