Port privileges/resource_limits to Twig
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
This commit is contained in:
parent
c195a5de0b
commit
287cb3b500
@ -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>
|
||||
|
||||
13
templates/privileges/resource_limits.twig
Normal file
13
templates/privileges/resource_limits.twig
Normal 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>
|
||||
Loading…
Reference in New Issue
Block a user