Files
gallery3/modules/server_add/views/admin_server_add.html.php

36 lines
1.1 KiB
PHP
Raw Normal View History

<?php defined("SYSPATH") or die("No direct script access.") ?>
<?= $theme->css("server_add.css") ?>
<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 ?>
2009-10-28 12:15:52 -07:00
<h2><?= t("Authorized paths") ?></h2>
<ul id="g-server-add-paths">
2018-01-28 12:43:27 +01:00
<?php if (empty($paths)): ?>
2009-10-28 12:15:52 -07:00
<li class="g-module-status g-info"><?= t("No authorized image source paths defined yet") ?></li>
2018-01-28 12:43:27 +01:00
<?php endif ?>
2018-01-28 12:43:27 +01:00
<?php foreach ($paths as $id => $path): ?>
<li>
<?= html::clean($path) ?>
2012-03-26 21:19:36 -04:00
<a href="<?= url::site("admin/server_add/remove_path?path=" . urlencode($path) . "&amp;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>
2018-01-28 12:43:27 +01:00
<?php endforeach ?>
</ul>
</div>
</div>