Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge "Fixing database instance launch workflow"
- Loading branch information
Showing
4 changed files
with
10 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51 changes: 1 addition & 50 deletions
51
...tack_dashboard/dashboards/project/databases/templates/databases/_launch_details_help.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,53 +1,4 @@ | ||
{% load i18n horizon humanize %} | ||
|
||
<p>{% blocktrans %}Specify the details for launching an instance.{% endblocktrans %}</p> | ||
<p>{% blocktrans %}The chart below shows the resources used by this project in relation to the project's quotas.{% endblocktrans %}</p> | ||
|
||
<h4>{% trans "Flavor Details" %}</h4> | ||
<table class="flavor_table table-striped"> | ||
<tbody> | ||
<tr><td class="flavor_name">{% trans "Name" %}</td><td><span id="flavor_name"></span></td></tr> | ||
<tr><td class="flavor_name">{% trans "VCPUs" %}</td><td><span id="flavor_vcpus"></span></td></tr> | ||
<tr><td class="flavor_name">{% trans "Root Disk" %}</td><td><span id="flavor_disk"> </span> {% trans "GB" %}</td></tr> | ||
<tr><td class="flavor_name">{% trans "Ephemeral Disk" %}</td><td><span id="flavor_ephemeral"></span> {% trans "GB" %}</td></tr> | ||
<tr><td class="flavor_name">{% trans "Total Disk" %}</td><td><span id="flavor_disk_total"></span> {% trans "GB" %}</td></tr> | ||
<tr><td class="flavor_name">{% trans "RAM" %}</td><td><span id="flavor_ram"></span> {% trans "MB" %}</td></tr> | ||
</tbody> | ||
</table> | ||
|
||
<div class="quota-dynamic"> | ||
<h4>{% trans "Project Quotas" %}</h4> | ||
<div class="quota_title clearfix"> | ||
<strong>{% trans "Number of Instances" %} <span>({{ usages.instances.used|intcomma }})</span></strong> | ||
<p>{{ usages.instances.available|quota|intcomma }}</p> | ||
</div> | ||
<div id="quota_instances" class="quota_bar" data-progress-indicator-flavor data-quota-limit="{{ usages.instances.quota }}" data-quota-used="{{ usages.instances.used }}"> | ||
{% horizon_progress_bar usages.instances.used usages.instances.quota %} | ||
</div> | ||
|
||
<div class="quota_title clearfix"> | ||
<strong>{% trans "Number of VCPUs" %} <span>({{ usages.cores.used|intcomma }})</span></strong> | ||
<p>{{ usages.cores.available|quota|intcomma }}</p> | ||
</div> | ||
<div id="quota_vcpus" class="quota_bar" data-progress-indicator-flavor data-quota-limit="{{ usages.cores.quota }}" data-quota-used="{{ usages.cores.used }}"> | ||
{% horizon_progress_bar usages.cores.used usages.cores.quota %} | ||
</div> | ||
|
||
<div class="quota_title clearfix"> | ||
<strong>{% trans "Total RAM" %} <span>({{ usages.ram.used|intcomma }} {% trans "MB" %})</span></strong> | ||
<p>{{ usages.ram.available|quota:"MB"|intcomma }}</p> | ||
</div> | ||
<div id="quota_ram" data-progress-indicator-flavor data-quota-limit="{{ usages.ram.quota }}" data-quota-used="{{ usages.ram.used }}" class="quota_bar"> | ||
{% horizon_progress_bar usages.ram.used usages.ram.quota %} | ||
</div> | ||
</div> | ||
|
||
<script type="text/javascript" charset="utf-8"> | ||
if(typeof horizon.Quota !== 'undefined') { | ||
horizon.Quota.initWithFlavors({{ flavors|safe|default:"{}" }}); | ||
} else { | ||
addHorizonLoadEvent(function() { | ||
horizon.Quota.initWithFlavors({{ flavors|safe|default:"{}" }}); | ||
}); | ||
} | ||
</script> | ||
<p>{% blocktrans %}<strong>Please note:</strong> The value specified in the Volume Size field should be greater than 0, however, some configurations do not support specifying volume size. If specifying the volume results in an error stating volume support is not enabled, enter 0.{% endblocktrans %}</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters