2010-10-08 19:52:11 +00:00
|
|
|
<?php defined("SYSPATH") or die("No direct script access.") ?>
|
|
|
|
<div id="g-captionator-dialog">
|
2011-01-03 20:26:28 +00:00
|
|
|
<script type="text/javascript">
|
|
|
|
$('form input[name^=tags]').ready(function() {
|
|
|
|
$('form input[name^=tags]').autocomplete(
|
|
|
|
'/tags/autocomplete', {max: 30, multiple: true, multipleSeparator: ',', cacheLength: 1});
|
|
|
|
});
|
|
|
|
</script>
|
2010-10-08 19:52:11 +00:00
|
|
|
<form action="<?= url::site("captionator/save/{$album->id}") ?>" method="post" id="g-captionator-form">
|
|
|
|
<?= access::csrf_form_field() ?>
|
|
|
|
<fieldset>
|
|
|
|
<legend>
|
|
|
|
<?= t("Add captions for photos in <b>%album_title</b>", array("album_title" => $album->title)) ?>
|
|
|
|
</legend>
|
|
|
|
|
|
|
|
<? foreach ($album->viewable()->children() as $child): ?>
|
|
|
|
<table>
|
|
|
|
<tr>
|
|
|
|
<td style="width: 140px">
|
|
|
|
<?= $child->thumb_img(array(), 140, true) ?>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<label for="title[<?= $child->id ?>]"> <?= t("Title") ?> </label>
|
|
|
|
<input type="text" name="title[<?= $child->id ?>]" value="<?= $child->title ?>"/>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<label for="description[<?= $child->id ?>]"> <?= t("Description") ?> </label>
|
|
|
|
<textarea style="height: 5em" name="description[<?= $child->id ?>]"><?= $child->description ?></textarea>
|
|
|
|
</li>
|
2011-01-03 20:26:28 +00:00
|
|
|
<? if ($enable_tags): ?>
|
|
|
|
<li>
|
|
|
|
<label for="tags[<?= $child->id ?>]"> <?= t("Tags (comma separated)") ?> </label>
|
|
|
|
<input type="text" name="tags[<?= $child->id ?>]" class="ac_input" autocomplete="off" value="<?= $tags[$child->id] ?>"/>
|
|
|
|
</li>
|
|
|
|
<? endif ?>
|
2011-01-29 12:20:17 +00:00
|
|
|
<li>
|
|
|
|
<label for="filename[<?= $child->id ?>]"> <?= t("Filename") ?> </label>
|
|
|
|
<input type="text" name="filename[<?= $child->id ?>]" class="ac_input" autocomplete="off" value="<?= $child->name ?>"/>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<label for="internetaddress[<?= $child->id ?>]"> <?= t("Internet Address") ?> </label>
|
|
|
|
<input type="text" name="internetaddress[<?= $child->id ?>]" class="ac_input" autocomplete="off" value="<?= $child->slug ?>"/>
|
|
|
|
</li>
|
2010-10-08 19:52:11 +00:00
|
|
|
</ul>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
<? endforeach ?>
|
|
|
|
</fieldset>
|
|
|
|
<fieldset>
|
|
|
|
<input type="submit" name="cancel" value="<?= t("Cancel") ?>"/>
|
|
|
|
<input type="submit" name="save" value="<?= t("Save") ?>"/>
|
|
|
|
</fieldset>
|
|
|
|
</form>
|
|
|
|
</div>
|