Multi cache pool

This commit is contained in:
bergware
2020-03-21 10:21:51 +01:00
parent 6e4f52118b
commit c809b0a885
+3 -2
View File
@@ -16,7 +16,8 @@ Tag="share-alt-square"
?>
<?
$width = [123,300];
$pools = pools_filter(cache_filter($disks));
$cache = cache_filter($disks);
$pools = pools_filter($cache);
if ($name == "") {
/* default values when adding new share */
@@ -151,7 +152,7 @@ _(Use cache pool (for new files/directories))_:
_(Select cache pool)_:
: <select name="poolName">
<?foreach ($pools as $pool):?>
<?=mk_option($poolName,$pool,ucfirst($pool))?>
<?if ($cache[$pool]['devicesSb']) echo mk_option($poolName,$pool,ucfirst($pool))?>
<?endforeach;?>
</select>