quota panel fixes

* wrong policy in panel
* shift text to below current sizes
* add * for clarify preapproved quotas

Change-Id: I31f2ad99847236b327ec7d51d4feeca4e2de3569
This commit is contained in:
Adrian Turjak 2017-09-14 16:43:18 +12:00
parent 519c30d185
commit 6620e0c8f0
4 changed files with 8 additions and 3 deletions

View File

@ -20,4 +20,4 @@ import horizon
class QuotaPanel(horizon.Panel):
name = _("Quota Managment")
slug = 'quota'
policy_rules = (('identity', "identity:project_mod_or_admin"),)
policy_rules = (('identity', "project_mod_or_admin"),)

View File

@ -135,7 +135,7 @@ class RegionOverviewTable(tables.DataTable):
filters=(to_caps, ))
preapproved_quotas = tables.Column(
"preapproved_quotas", filters=(to_caps, ),
verbose_name=_("Preapproved Quota Sizes"))
verbose_name=_("Preapproved Quota Sizes *"))
class Meta(object):
name = "region_overview"

View File

@ -15,4 +15,8 @@
<p>{% blocktrans trimmed %}
If your proposed change needed approval, you will be emailed on completion.
{% endblocktrans %}</p>
<p>{% blocktrans trimmed %}
* Preapproved sizes doesn't take into account the configured period.
{% endblocktrans %}</p>
</div>

View File

@ -8,11 +8,12 @@
{% block main %}
<div class="left">
{% include 'management/quota/_index_help.html' %}
<div id="region-overview">
{{ region_overview_table.render }}
</div>
{% include 'management/quota/_index_help.html' %}
<div id="quota-tasks-overview">
{{ quota_tasks_table.render }}
</div>