Changeset 18986 for trunk/admin/themes
- Timestamp:
- Nov 10, 2012, 1:34:36 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/themes/default/template/cat_list.tpl
r17007 r18986 3 3 jQuery(".catPos").hide(); 4 4 jQuery(".drag_button").show(); 5 jQuery("#manualOrder").hide(); 5 6 jQuery(".categoryLi").css("cursor","move"); 6 7 jQuery(".categoryUl").sortable({ … … 10 11 jQuery("#manualOrder").show(); 11 12 jQuery("#notManualOrder").hide(); 12 jQuery("# autoOrder").hide();13 jQuery("# createAlbum").hide();13 jQuery("#formAutoOrder").hide(); 14 jQuery("#formCreateAlbum").hide(); 14 15 }, 15 16 }); … … 31 32 32 33 jQuery("#addAlbumOpen").click(function(){ 33 jQuery("# createAlbum").toggle();34 jQuery("#formCreateAlbum").toggle(); 34 35 jQuery("input[name=virtual_name]").focus(); 35 jQuery("# autoOrder").hide();36 jQuery("#formAutoOrder").hide(); 36 37 }); 37 38 38 39 jQuery("#addAlbumClose").click(function(){ 39 jQuery("# createAlbum").hide();40 jQuery("#formCreateAlbum").hide(); 40 41 }); 41 42 42 43 43 44 jQuery("#autoOrderOpen").click(function(){ 44 jQuery("# autoOrder").toggle();45 jQuery("# createAlbum").hide();45 jQuery("#formAutoOrder").toggle(); 46 jQuery("#formCreateAlbum").hide(); 46 47 }); 47 48 48 49 jQuery("#autoOrderClose").click(function(){ 49 jQuery("# autoOrder").hide();50 jQuery("#formAutoOrder").hide(); 50 51 }); 51 52 … … 59 60 60 61 <h2><span style="letter-spacing:0">{$CATEGORIES_NAV}</span> › {'Album list management'|@translate}</h2> 61 <p class="showCreateAlbum"> 62 <span id="notManualOrder"> 63 <a href="#" id="addAlbumOpen">{'create a new album'|@translate}</a> 64 {if count($categories) }| <a href="#" id="autoOrderOpen">{'apply automatic sort order'|@translate}</a>{/if} 65 </span> 62 <p class="showCreateAlbum" id="notManualOrder"> 63 <a href="#" id="addAlbumOpen">{'create a new album'|@translate}</a> 64 {if count($categories)}| <a href="#" id="autoOrderOpen">{'apply automatic sort order'|@translate}</a>{/if} 66 65 </p> 67 <form id="formCreateAlbum" action="{$F_ACTION}" method="post"> 68 <p> 69 <fieldset id="createAlbum" style="display:none;"> 66 <form id="formCreateAlbum" action="{$F_ACTION}" method="post" style="display:none;"> 67 <fieldset> 70 68 <legend>{'create a new album'|@translate}</legend> 71 69 <input type="hidden" name="pwg_token" value="{$PWG_TOKEN}"> 72 <p><strong>{'Album name'|@translate}</strong> 73 <br><input type="text" name="virtual_name" maxlength="255"> 70 71 <p> 72 <strong>{'Album name'|@translate}</strong><br> 73 <input type="text" name="virtual_name" maxlength="255"> 74 74 </p> 75 <span class="actionButtons"> 76 <input class="submit" type="submit" value="{'Create'|@translate}" name="submitAdd"> 75 76 <p class="actionButtons"> 77 <input class="submit" name="submitAdd" type="submit" value="{'Create'|@translate}"> 77 78 <a href="#" id="addAlbumClose">{'Cancel'|@translate}</a> 78 </ span>79 </p> 79 80 </fieldset> 80 </p>81 81 </form> 82 <form id="categoryOrdering" action="{$F_ACTION}" method="post"> 83 <input type="hidden" name="pwg_token" value="{$PWG_TOKEN}"> 84 {if count($categories) } 85 <fieldset id="autoOrder" style="display:none;"> 82 {if count($categories)} 83 <form id="formAutoOrder" action="{$F_ACTION}" method="post" style="display:none;"> 84 <fieldset> 86 85 <legend>{'Automatic sort order'|@translate}</legend> 86 <input type="hidden" name="pwg_token" value="{$PWG_TOKEN}"> 87 87 88 <p><strong>{'Sort order'|@translate}</strong> 88 89 <br><label><input type="radio" value="asc" name="ascdesc" checked="checked">{'ascending'|@translate}</label> … … 99 100 </p> 100 101 </fieldset> 102 </form> 101 103 {/if} 102 <p> 103 <span id="manualOrder" style="display:none;"> 104 105 <form id="categoryOrdering" action="{$F_ACTION}" method="post"> 106 <input type="hidden" name="pwg_token" value="{$PWG_TOKEN}"> 107 <p id="manualOrder"> 104 108 <input class="submit" name="submitManualOrder" type="submit" value="{'Save manual order'|@translate}"> 105 109 {'... or '|@translate} <a href="#" id="cancelManualOrder">{'cancel manual order'|@translate}</a> 106 </span> 107 </p> 108 {if count($categories) } 110 </p> 109 111 112 {if count($categories)} 110 113 <ul class="categoryUl"> 111 112 114 {foreach from=$categories item=category} 113 115 <li class="categoryLi{if $category.IS_VIRTUAL} virtual_cat{/if}" id="cat_{$category.ID}"> 114 116 <!-- category {$category.ID} --> 115 117 <p class="albumTitle"> 116 <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}">117 <strong><a href="{$category.U_CHILDREN}" title="{'manage sub-albums'|@translate}">{$category.NAME}</a></strong>118 <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}"> 119 <strong><a href="{$category.U_CHILDREN}" title="{'manage sub-albums'|@translate}">{$category.NAME}</a></strong> 118 120 </p> 119 121 … … 138 140 {/if} 139 141 {if cat_admin_access($category.ID)} 140 | 141 <a href="{$category.U_JUMPTO}">{'jump to album'|@translate} →</a> 142 | <a href="{$category.U_JUMPTO}">{'jump to album'|@translate} →</a> 142 143 {/if} 143 144 </p>
Note: See TracChangeset
for help on using the changeset viewer.