mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-05-19 19:09:13 -04:00
(9345dde83e,d632ef3e50) - gallery module: added loading-small.gif (so all themes have it by default) - gallery module: added css for .ui-autocomplete-loading (copied from .g-loading-small in wind, but without !important so other themes can override it) - gallery module: updated upgrader.html.php to use new image (removes theme dependence) - wind theme: removed outdated css for .ac_loading (not used in v3.0.5, either) - server_add module: removed multiple argument from autocomplete (doesn't work well with it)
38 lines
1.2 KiB
PHP
38 lines
1.2 KiB
PHP
<?php defined("SYSPATH") or die("No direct script access.") ?>
|
|
<?= $theme->css("server_add.css") ?>
|
|
<?= $theme->css("jquery.autocomplete.css") ?>
|
|
<?= $theme->script("jquery.autocomplete.js") ?>
|
|
<script type="text/javascript">
|
|
$("document").ready(function() {
|
|
$("#g-path").gallery_autocomplete(
|
|
"<?= url::site("__ARGS__") ?>".replace("__ARGS__", "admin/server_add/autocomplete"),
|
|
{});
|
|
});
|
|
</script>
|
|
|
|
<div class="g-block">
|
|
<h1> <?= t("Add from server administration") ?> </h1>
|
|
<div class="g-block-content">
|
|
<?= $form ?>
|
|
<h2><?= t("Authorized paths") ?></h2>
|
|
<ul id="g-server-add-paths">
|
|
<? if (empty($paths)): ?>
|
|
<li class="g-module-status g-info"><?= t("No authorized image source paths defined yet") ?></li>
|
|
<? endif ?>
|
|
|
|
<? foreach ($paths as $id => $path): ?>
|
|
<li>
|
|
<?= html::clean($path) ?>
|
|
<a href="<?= url::site("admin/server_add/remove_path?path=" . urlencode($path) . "&csrf=" . access::csrf_token()) ?>"
|
|
id="icon_<?= $id ?>"
|
|
class="g-remove-dir g-button">
|
|
<span class="ui-icon ui-icon-trash">
|
|
<?= t("delete") ?>
|
|
</span>
|
|
</a>
|
|
</li>
|
|
<? endforeach ?>
|
|
</ul>
|
|
</div>
|
|
</div>
|