manila-ui/manila_ui/dashboards/project/shares/templates/shares/_resize_limits.html

35 lines
1.0 KiB
HTML

{% load i18n horizon humanize bootstrap %}
<h3>{% trans "Description" %}:</h3>
<p>{% trans "Resize the size of a share. " %}</p>
<h3>{% trans "Share Limits" %}</h3>
<div class="quota_title">
<div class="pull-left">
<strong>{% trans "Total Gibibytes" %}</strong>
<span>({{ usages.totalShareGigabytesUsed|intcomma }} {% trans "GiB" %})</span>
</div>
<span class="pull-right">{{ usages.maxTotalShareGigabytes|intcomma|quota:_("GiB") }}</span>
</div>
<div id="quota_size"
data-progress-indicator-for="id_new_size"
data-quota-limit="{{ usages.maxTotalShareGigabytes }}"
data-quota-used="{{ usages.totalShareGigabytesUsed }}"
class="quota_bar">
{% widthratio usages.totalShareGigabytesUsed usages.maxTotalShareGigabytes 100 as gigabytes_percent %}
{% bs_progress_bar gigabytes_percent 0 %}
</div>
<script type="text/javascript" charset="utf-8">
if(typeof horizon.Quota !== 'undefined') {
horizon.Quota.init();
} else {
addHorizonLoadEvent(function() {
horizon.Quota.init();
});
}
</script>