summaryrefslogtreecommitdiff
path: root/modules/server_add/views/server_add_tree_dialog.html.php
blob: 723d388e9b9e34a4fd56fc3c914afa86b05a820e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?php defined("SYSPATH") or die("No direct script access.") ?>
<script type="text/javascript">
  var GET_CHILDREN_URL = "<?= url::site("server_add/children?path=__PATH__") ?>";
</script>

<div id="gServerAdd">
  <h1 style="display: none;"><?= t("Add Photos to '%title'", array("title" => p::clean($item->title))) ?></h1>

  <p id="gDescription"><?= t("Photos will be added to album:") ?></p>
  <ul class="gBreadcrumbs">
    <? foreach ($item->parents() as $parent): ?>
    <li>
      <?= p::clean($parent->title) ?>
    </li>
    <? endforeach ?>
    <li class="active">
      <?= p::clean($item->title) ?>
    </li>
  </ul>

  <?= form::open(url::abs_site("server_add/add"), array("method" => "post")) ?>
  <?= access::csrf_form_field(); ?>
  <ul id="gServerAddTree" class="gCheckboxTree">
    <?= $tree ?>
  </ul>

  <span>
    <input id="gServerAddPauseButton" class="submit ui-state-disabled" disabled="disabled" type="submit"
           value="<?= t("Pause") ?>" style="display: none">
    <input id="gServerAddAddButton" class="submit ui-state-disabled" disabled="disabled" type="submit"
           value="<?= t("Add") ?>">
  </span>
  <?= form::close() ?>
  <div class="gProgressBar" style="visibility: hidden" ></div>
</div>