Files
gallery3/modules/server_add/views/admin_server_add.html.php
Bharat Mediratta 64b02026ed 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.
2009-03-05 02:26:39 +00:00

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>