Changeset 13580 for trunk/admin/themes/default/template/cat_perm.tpl
- Timestamp:
- Mar 17, 2012, 1:47:17 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/themes/default/template/cat_perm.tpl
r13013 r13580 1 {combine_script id='jquery.chosen' load='footer' path='themes/default/js/plugins/chosen.jquery.min.js'} 2 {combine_css path="themes/default/js/plugins/chosen.css"} 3 4 {footer_script}{literal} 5 jQuery(document).ready(function() { 6 jQuery(".chzn-select").chosen(); 7 8 function checkStatusOptions() { 9 if (jQuery("input[name=status]:checked").val() == "private") { 10 jQuery("#privateOptions, #applytoSubAction").show(); 11 } 12 else { 13 jQuery("#privateOptions, #applytoSubAction").hide(); 14 } 15 } 16 17 checkStatusOptions(); 18 jQuery("#selectStatus").change(function() { 19 checkStatusOptions(); 20 }); 21 }); 22 {/literal}{/footer_script} 23 1 24 <div class="titrePage"> 2 25 <h2><span style="letter-spacing:0">{$CATEGORIES_NAV}</span> › {'Edit album'|@translate} {$TABSHEET_TITLE}</h2> … … 5 28 <form action="{$F_ACTION}" method="post" id="categoryPermissions"> 6 29 30 <fieldset> 31 <legend>{'Access type'|@translate}</legend> 32 33 <p id="selectStatus"> 34 <label><input type="radio" name="status" value="public" {if not $private}checked="checked"{/if}> <strong>{'public'|@translate}</strong> : <em>{'any visitor can see this album'|@translate}</em></label> 35 <br> 36 <label><input type="radio" name="status" value="private" {if $private}checked="checked"{/if}> <strong>{'private'|@translate}</strong> : <em>{'visitors need to login and have the appropriate permissions to see this album'|@translate}</em></label> 37 </p> 38 </fieldset> 39 40 <fieldset id="privateOptions"> 41 <legend>{'Groups and users'|@translate}</legend> 42 43 <p> 44 <strong>{'Permission granted for groups'|@translate}</strong> 45 <br> 46 <select data-placeholder="{'Select groups...'|@translate}" class="chzn-select" multiple style="width:700px;" name="groups[]"> 47 {html_options options=$groups selected=$groups_selected} 48 </select> 49 </p> 50 51 <p> 52 <strong>{'Permission granted for users'|@translate}</strong> 53 <br> 54 <select data-placeholder="{'Select users...'|@translate}" class="chzn-select" multiple style="width:700px;" name="users[]"> 55 {html_options options=$users selected=$users_selected} 56 </select> 57 </p> 58 59 {* 7 60 <h4>{'Groups'|@translate}</h4> 8 61 … … 61 114 <label><input type="checkbox" name="apply_on_sub">{'Apply to sub-albums'|@translate}</label> 62 115 </fieldset> 116 *} 117 </fieldset> 118 119 <p style="margin:12px;text-align:left;"> 120 <input class="submit" type="submit" value="{'Save Settings'|@translate}" name="submit"> 121 <label id="applytoSubAction" style="display:none;"><input type="checkbox" name="apply_on_sub">{'Apply to sub-albums'|@translate}</label> 122 </p> 63 123 64 124 <input type="hidden" name="pwg_token" value="{$PWG_TOKEN}">
Note: See TracChangeset
for help on using the changeset viewer.