mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-05-20 03:19:13 -04:00
- Show the "Server Add needs configuration" message whenever there are no paths. - Un-ajaxify the admin code to remove complexity and allow us to update the status message as appropriate. - Rename server_add_admin.html.php to admin_server_add.html.php for consistency. - Fix up form to properly display error messages - Get rid of server_add_dir_list.html.php now that we're non-ajaxified. - Change delete <span> to an <a> for non-ajax world.
26 lines
835 B
PHP
26 lines
835 B
PHP
<?php defined("SYSPATH") or die("No direct script access.") ?>
|
|
<div id="gServerAddAdmin">
|
|
<h2>
|
|
<?= t("Add From Server Admininstration") ?>
|
|
</h2>
|
|
<div id="gAuthorizedPath">
|
|
<span><?= t("Authorized Paths") ?></span>
|
|
<ul id="gPathList">
|
|
<? foreach ($paths as $id => $path): ?>
|
|
<li class="ui-icon-left">
|
|
<a href="<?= url::site("admin/server_add/remove_path?path=$path&csrf=" . access::csrf_token()) ?>"
|
|
id="icon_<?= $id?>"
|
|
class="gRemoveDir ui-icon ui-icon-trash">
|
|
X
|
|
</a>
|
|
<?= $path ?>
|
|
</li>
|
|
<? endforeach ?>
|
|
</ul>
|
|
<div id="gNoAuthorizedPaths" <? if (!empty($paths)): ?>style="display:none"<? endif ?>>
|
|
<span class="gWarning"><?= t("No Authorized image source paths defined") ?></span>
|
|
</div>
|
|
</div>
|
|
<?= $form ?>
|
|
</div>
|