diff options
Diffstat (limited to 'admin/themes/default/template/cat_list.tpl')
-rw-r--r-- | admin/themes/default/template/cat_list.tpl | 28 |
1 files changed, 10 insertions, 18 deletions
diff --git a/admin/themes/default/template/cat_list.tpl b/admin/themes/default/template/cat_list.tpl index 859034a77..5fe54b9eb 100644 --- a/admin/themes/default/template/cat_list.tpl +++ b/admin/themes/default/template/cat_list.tpl @@ -1,8 +1,6 @@ {footer_script require='jquery.ui.sortable'}{literal} jQuery(document).ready(function(){ - jQuery(".catPos").hide(); jQuery(".drag_button").show(); - jQuery("#manualOrder").hide(); jQuery(".categoryLi").css("cursor","move"); jQuery(".categoryUl").sortable({ axis: "y", @@ -12,7 +10,7 @@ jQuery(document).ready(function(){ jQuery("#notManualOrder").hide(); jQuery("#formAutoOrder").hide(); jQuery("#formCreateAlbum").hide(); - }, + } }); jQuery("#categoryOrdering").submit(function(){ @@ -62,6 +60,7 @@ jQuery(document).ready(function(){ <p class="showCreateAlbum" id="notManualOrder"> <a href="#" id="addAlbumOpen">{'create a new album'|@translate}</a> {if count($categories)}| <a href="#" id="autoOrderOpen">{'apply automatic sort order'|@translate}</a>{/if} + {if ($PARENT_EDIT)}| <a href="{$PARENT_EDIT}"></span>{'edit'|@translate}</a>{/if} </p> <form id="formCreateAlbum" action="{$F_ACTION}" method="post" style="display:none;"> <fieldset> @@ -104,7 +103,7 @@ jQuery(document).ready(function(){ <form id="categoryOrdering" action="{$F_ACTION}" method="post"> <input type="hidden" name="pwg_token" value="{$PWG_TOKEN}"> - <p id="manualOrder"> + <p id="manualOrder" style="display:none"> <input class="submit" name="submitManualOrder" type="submit" value="{'Save manual order'|@translate}"> {'... or '|@translate} <a href="#" id="cancelManualOrder">{'cancel manual order'|@translate}</a> </p> @@ -115,28 +114,21 @@ jQuery(document).ready(function(){ <li class="categoryLi{if $category.IS_VIRTUAL} virtual_cat{/if}" id="cat_{$category.ID}"> <!-- category {$category.ID} --> <p class="albumTitle"> - <img src="{$themeconf.admin_icon_dir}/cat_move.png" class="button drag_button" style="display:none;" alt="{'Drag to re-order'|@translate}" title="{'Drag to re-order'|@translate}"> + <img src="{$themeconf.admin_icon_dir}/cat_move.png" class="drag_button" style="display:none;" alt="{'Drag to re-order'|@translate}" title="{'Drag to re-order'|@translate}"> <strong><a href="{$category.U_CHILDREN}" title="{'manage sub-albums'|@translate}">{$category.NAME}</a></strong> + <span class="albumInfos"><span class="userSeparator">·</span> {$category.NB_PHOTOS|translate_dec:'%d photo':'%d photos'} <span class="userSeparator">·</span> {$category.NB_SUB_PHOTOS|translate_dec:'%d photo':'%d photos'} {$category.NB_SUB_ALBUMS|translate_dec:'in %d sub-album':'in %d sub-albums'}</span> </p> - <p class="catPos"> - <label> - {'Position'|@translate} : - <input type="text" size="4" name="catOrd[{$category.ID}]" maxlength="4" value="{$category.RANK}"> - </label> - </p> + <input type="hidden" name="catOrd[{$category.ID}]" value="{$category.RANK}"> <p class="albumActions"> - <a href="{$category.U_EDIT}">{'Edit'|@translate}</a> - {if isset($category.U_MANAGE_ELEMENTS) } - | <a href="{$category.U_MANAGE_ELEMENTS}">{'manage album photos'|@translate}</a> - {/if} - | <a href="{$category.U_CHILDREN}">{'manage sub-albums'|@translate}</a> + <a href="{$category.U_EDIT}"><span class="icon-pencil"></span>{'Edit'|@translate}</a> + | <a href="{$category.U_CHILDREN}"><span class="icon-sitemap"></span>{'manage sub-albums'|@translate}</a> {if isset($category.U_SYNC) } - | <a href="{$category.U_SYNC}">{'Synchronize'|@translate}</a> + | <a href="{$category.U_SYNC}"><span class="icon-exchange"></span>{'Synchronize'|@translate}</a> {/if} {if isset($category.U_DELETE) } - | <a href="{$category.U_DELETE}" onclick="return confirm('{'Are you sure?'|@translate|@escape:javascript}');">{'delete album'|@translate}</a> + | <a href="{$category.U_DELETE}" onclick="return confirm('{'Are you sure?'|@translate|@escape:javascript}');"><span class="icon-trash"></span>{'delete album'|@translate}</a> {/if} {if cat_admin_access($category.ID)} | <a href="{$category.U_JUMPTO}">{'jump to album'|@translate} →</a> |