Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor getHtmlForResourceLimits to use template
Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
- Loading branch information
1 parent
5688cd4
commit 440efad
Showing
3 changed files
with
65 additions
and
79 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
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<div class="item"> | ||
<label for="text_<?= $limit['input_name'] ?>"> | ||
<code> | ||
<dfn title="<?= $limit['description'] ?>"> | ||
<?= $limit['name_main'] ?> | ||
</dfn> | ||
</code> | ||
</label> | ||
<input type="number" name="<?= $limit['input_name'] ?>" id="text_<?= $limit['input_name'] ?>" | ||
value="<?= $limit['value'] ?>" title="<?= $limit['description'] ?>" /> | ||
</div> |
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<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) : ?> | ||
<?= | ||
PMA\libraries\Template::get('privileges/resource_limit_item')->render( | ||
array('limit' => $limit) | ||
); | ||
?> | ||
<?php endforeach; ?> | ||
</fieldset> | ||
|