Changeset 31852 for extensions/MenuRandomPhoto/template/admin.tpl
- Timestamp:
- Jun 12, 2017, 9:31:38 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/MenuRandomPhoto/template/admin.tpl
r31792 r31852 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=apply_to_albums]:checked").val() == "list") { 10 jQuery("#albumList").show(); 11 } 12 else { 13 jQuery("#albumList").hide(); 14 } 15 } 16 17 checkStatusOptions(); 18 19 jQuery("input[name=apply_to_albums]").change(function() { 20 checkStatusOptions(); 21 }); 22 }); 23 {/literal}{/footer_script} 24 1 25 <div class="titrePage"> 2 26 <h2>Menu Random Photo</h2> … … 41 65 </fieldset> 42 66 67 <fieldset> 68 <legend>{'Which albums to use'|translate}</legend> 69 <p> 70 <label><input type="radio" name="apply_to_albums" value="all"{if $MRP.apply_to_albums eq 'all'} checked="checked"{/if}> <strong>{'all albums'|translate}</strong></label> 71 <label><input type="radio" name="apply_to_albums" value="list"{if $MRP.apply_to_albums eq 'list'} checked="checked"{/if}> <strong>{'a list of albums'|translate}</strong></label> 72 </p> 73 <p id="albumList"> 74 <select data-placeholder="{'Select albums...'|translate}" class="chzn-select" multiple style="width:700px;" name="albums[]"> 75 {html_options options=$album_options selected=$album_options_selected} 76 </select> 77 <br> 78 {'Note: Only the selected albums/categories will be shown. Sub-categories must be selected if they are to be used!'|translate} 79 </p> 80 </fieldset> 81 43 82 <p class="formButtons"> 44 83 <input type="hidden" name="pwg_token" value="{$PWG_TOKEN}">
Note: See TracChangeset
for help on using the changeset viewer.