mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-07-11 09:43:51 -04:00
Cleanups.
- 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.
This commit is contained in:
25
modules/server_add/views/admin_server_add.html.php
Normal file
25
modules/server_add/views/admin_server_add.html.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?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>
|
||||
Reference in New Issue
Block a user