1 | {footer_script require='jquery.ui.sortable'}{literal} |
---|
2 | jQuery(document).ready(function(){ |
---|
3 | jQuery("#addAlbumOpen").click(function(){ |
---|
4 | jQuery("#createAlbum").toggle(); |
---|
5 | jQuery("input[name=virtual_name]").focus(); |
---|
6 | jQuery("#autoOrder").hide(); |
---|
7 | }); |
---|
8 | |
---|
9 | jQuery("#addAlbumClose").click(function(){ |
---|
10 | jQuery("#createAlbum").hide(); |
---|
11 | }); |
---|
12 | }); |
---|
13 | {/literal}{/footer_script} |
---|
14 | |
---|
15 | {* è *} |
---|
16 | |
---|
17 | <div class="titrePage"> |
---|
18 | <h2>SmartAlbums</h2> |
---|
19 | </div> |
---|
20 | |
---|
21 | <form id="categoryOrdering" action="{$F_ACTION}" method="post"> |
---|
22 | <input type="hidden" name="pwg_token" value="{$PWG_TOKEN}"> |
---|
23 | |
---|
24 | <p class="showCreateAlbum"> |
---|
25 | <span id="notManualOrder"> |
---|
26 | <a href="#" id="addAlbumOpen">{'create a new SmartAlbum'|@translate}</a> |
---|
27 | | <a href="{$F_ACTION}&smart_generate=all">{'Regenerate photos list of all SmartAlbums'|@translate}</a> |
---|
28 | </span> |
---|
29 | </p> |
---|
30 | |
---|
31 | <fieldset id="createAlbum" style="display:none;"> |
---|
32 | <legend>{'create a new SmartAlbum'|@translate}</legend> |
---|
33 | <input type="hidden" name="pwg_token" value="{$PWG_TOKEN}"> |
---|
34 | |
---|
35 | <p> |
---|
36 | <strong>{'Album name'|@translate}</strong> : |
---|
37 | <input type="text" name="virtual_name"> |
---|
38 | </p> |
---|
39 | <p> |
---|
40 | <strong>{'Parent album'|@translate}</strong> : |
---|
41 | <select class="categoryDropDown" name="parent_id"> |
---|
42 | <option value="0">------------</option> |
---|
43 | {html_options options=$category_options} |
---|
44 | </select> |
---|
45 | </p> |
---|
46 | <p class="actionButtons"> |
---|
47 | <input class="submit" type="submit" value="{'Create'|@translate}" name="submitAdd"> |
---|
48 | <a href="#" id="addAlbumClose">{'Cancel'|@translate}</a> |
---|
49 | </p> |
---|
50 | </fieldset> |
---|
51 | |
---|
52 | {if count($categories) } |
---|
53 | |
---|
54 | <ul class="categoryUl"> |
---|
55 | |
---|
56 | {foreach from=$categories item=category} |
---|
57 | <li class="categoryLi virtual_cat" id="cat_{$category.ID}"> |
---|
58 | <!-- category {$category.ID} --> |
---|
59 | <p class="albumTitle"> |
---|
60 | <strong><a href="{$category.U_CHILDREN}" title="{'manage sub-albums'|@translate}">{$category.NAME}</a></strong> |
---|
61 | <img src="{$SMART_PATH}admin/template/lightning.png"> |
---|
62 | {'%d photos'|@translate|sprintf:$category.IMG_COUNT} |
---|
63 | </p> |
---|
64 | |
---|
65 | <p class="albumActions"> |
---|
66 | <a href="{$category.U_EDIT}">{'Edit'|@translate}</a> |
---|
67 | | <a href="{$category.U_SMART}" title="{$category.LAST_UPDATE}">{'Regenerate photos list of this SmartAlbum'|@translate}</a> |
---|
68 | {if isset($category.U_DELETE) } |
---|
69 | | <a href="{$category.U_DELETE}" onclick="return confirm('{'Are you sure?'|@translate|@escape:javascript}');">{'delete album'|@translate}</a> |
---|
70 | {/if} |
---|
71 | {if cat_admin_access($category.ID)} |
---|
72 | | <a href="{$category.U_JUMPTO}">{'jump to album'|@translate} ?</a> |
---|
73 | {/if} |
---|
74 | </p> |
---|
75 | </li> |
---|
76 | {/foreach} |
---|
77 | </ul> |
---|
78 | {/if} |
---|
79 | </form> |
---|