Merge "Improve API Access Credentials template"
This commit is contained in:
commit
8708885270
@ -1,69 +1,63 @@
|
|||||||
{% extends "horizon/common/_modal.html" %}
|
{% extends "horizon/common/_modal.html" %}
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
|
|
||||||
{% block modal-header %}{% trans "User Credentials" %}{% endblock %}
|
|
||||||
|
|
||||||
{% block modal-body %}
|
{% block modal-body %}
|
||||||
<div class="row-fluid view-credentials">
|
<form>
|
||||||
<form>
|
{% if openrc_creds %}
|
||||||
{% if openrc_creds %}
|
<div class="left">
|
||||||
<div class="left">
|
<div class="form-group">
|
||||||
<fieldset>
|
<label for="openrc-user">{% trans "User Name" %}</label>
|
||||||
<div class="form-group">
|
<input type="text" class="form-control" id="openrc-user" readonly value="{{ openrc_creds.user }}">
|
||||||
<label class="control-label">{% trans "User Name" %}</label>
|
</div>
|
||||||
<input type="text" class="form-control" readonly value="{{ openrc_creds.user }}">
|
{% if "user_domain_name" in openrc_creds %}
|
||||||
</div>
|
<div class="form-group">
|
||||||
{% if "user_domain_name" in openrc_creds %}
|
<label for="openrc-domain">{% trans "Domain Name" %}</label>
|
||||||
<div class="form-group">
|
<input type="text" class="form-control" id="openrc-domain" readonly value="{{ openrc_creds.user_domain_name }}">
|
||||||
<label class="control-label">{% trans "Domain Name" %}</label>
|
</div>
|
||||||
<input type="text" class="form-control" readonly value="{{ openrc_creds.user_domain_name }}">
|
{% endif %}
|
||||||
</div>
|
<div class="form-group">
|
||||||
{% endif %}
|
<label for="openrc-project-name">{% trans "Project Name" %}</label>
|
||||||
<div class="form-group">
|
<input type="text" class="form-control" id="openrc-project-name" readonly value="{{ openrc_creds.tenant_name }}">
|
||||||
<label class="control-label">{% trans "Project Name" %}</label>
|
</div>
|
||||||
<input type="text" class="form-control" readonly value="{{ openrc_creds.tenant_name }}">
|
<div class="form-group">
|
||||||
</div>
|
<label for="openrc-project-id">{% trans "Project ID" %}</label>
|
||||||
<div class="form-group">
|
<input type="text" class="form-control" id="openrc-project-id" readonly value="{{ openrc_creds.tenant_id }}">
|
||||||
<label class="control-label">{% trans "Project ID" %}</label>
|
</div>
|
||||||
<input type="text" class="form-control" readonly value="{{ openrc_creds.tenant_id }}">
|
<div class="form-group">
|
||||||
</div>
|
<label for="openrc-auth">{% trans "Authentication URL" %}</label>
|
||||||
<div class="form-group">
|
<input type="text" id="openrc-auth" class="form-control" readonly value="{{ openrc_creds.auth_url }}">
|
||||||
<label class="control-label">{% trans "Authentication URL" %}</label>
|
</div>
|
||||||
<input type="text" class="form-control" readonly value="{{ openrc_creds.auth_url }}">
|
|
||||||
</div>
|
|
||||||
</fieldset>
|
|
||||||
</div>
|
|
||||||
{% endif %}
|
|
||||||
{% if ec2_creds %}
|
|
||||||
<div class="right">
|
|
||||||
<fieldset>
|
|
||||||
<div class="form-group">
|
|
||||||
<label class="control-label">{% trans "EC2 URL" %}</label><input type="text" class="form-control" readonly value="{{ ec2_creds.ec2_endpoint }}">
|
|
||||||
</div>
|
|
||||||
<div class="form-group">
|
|
||||||
<label class="control-label">{% trans "S3 URL" %}</label><input type="text" class="form-control" readonly value="{{ ec2_creds.s3_endpoint }}">
|
|
||||||
</div>
|
|
||||||
{% if ec2_creds.ec2_access_key %}
|
|
||||||
<div class="form-group">
|
|
||||||
<label class="control-label">{% trans "EC2 Access Key" %}</label>
|
|
||||||
<input type="text" class="form-control" readonly value="{{ ec2_creds.ec2_access_key }}">
|
|
||||||
</div>
|
|
||||||
{% endif %}
|
|
||||||
{% if ec2_creds.ec2_secret_key %}
|
|
||||||
<div class="form-group">
|
|
||||||
<label class="control-label">{% trans "EC2 Secret Key" %}</label>
|
|
||||||
<div>
|
|
||||||
<input type="password" class="form-control" readonly value="{{ ec2_creds.ec2_secret_key }}">
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</fieldset>
|
{% if ec2_creds %}
|
||||||
</div>
|
<div class="right">
|
||||||
{% endif %}
|
<div class="form-group">
|
||||||
</form>
|
<label for="ec2-url">{% trans "EC2 URL" %}</label>
|
||||||
</div>
|
<input type="text" id="ec2-url" class="form-control" readonly value="{{ ec2_creds.ec2_endpoint }}">
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="s3-url">{% trans "S3 URL" %}</label>
|
||||||
|
<input type="text" id="s3-url" class="form-control" readonly value="{{ ec2_creds.s3_endpoint }}">
|
||||||
|
</div>
|
||||||
|
{% if ec2_creds.ec2_access_key %}
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="ec2-access">{% trans "EC2 Access Key" %}</label>
|
||||||
|
<input type="text" id="ec2-access" class="form-control" readonly value="{{ ec2_creds.ec2_access_key }}">
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
{% if ec2_creds.ec2_secret_key %}
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="ec2-secret">{% trans "EC2 Secret Key" %}</label>
|
||||||
|
<input type="password" id="ec2-secret" class="form-control" readonly value="{{ ec2_creds.ec2_secret_key }}">
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
</form>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block modal-footer %}
|
{% block modal-footer %}
|
||||||
<a href="{% url 'horizon:project:api_access:index' %}" class="btn btn-default cancel">{% trans "Close" %}</a>
|
<a href="{% url 'horizon:project:api_access:index' %}" class="btn btn-default cancel">
|
||||||
|
{% trans "Close" %}
|
||||||
|
</a>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user