Port privileges/resource_limits to Twig

Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
This commit is contained in:
Maurício Meneghini Fauth 2017-09-20 18:21:29 -03:00
parent c195a5de0b
commit 287cb3b500
2 changed files with 13 additions and 16 deletions

View File

@ -1,16 +0,0 @@
<fieldset>
<legend><?= __('Resource limits') ?></legend>
<p>
<small>
<i><?= __('Note: Setting these options to 0 (zero) removes the limit.') ?></i>
</small>
</p>
<?php foreach ($limits as $limit) : ?>
<?=
PhpMyAdmin\Template::get('privileges/resource_limit_item')->render(
array('limit' => $limit)
);
?>
<?php endforeach; ?>
</fieldset>

View File

@ -0,0 +1,13 @@
<fieldset>
<legend>{% trans 'Resource limits' %}</legend>
<p>
<small>
<em><{% trans 'Note: Setting these options to 0 (zero) removes the limit.' %}</em>
</small>
</p>
{% for limit in limits %}
{% include 'privileges/resource_limit_item.twig' with {
'limit': limit
} only %}
{% endfor %}
</fieldset>