Changeset 16939 for extensions/SmartAlbums/admin
- Timestamp:
- Jul 23, 2012, 6:16:34 PM (12 years ago)
- Location:
- extensions/SmartAlbums/admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/SmartAlbums/admin/config.php
r16104 r16939 6 6 { 7 7 $conf['SmartAlbums']['update_on_upload'] = isset($_POST['update_on_upload']); 8 $conf['SmartAlbums']['smart_is_forbidden'] = isset($_POST['smart_is_forbidden']); 8 9 9 10 conf_update_param('SmartAlbums', serialize($conf['SmartAlbums'])); … … 11 12 } 12 13 13 $template->assign(array( 14 'update_on_upload' => $conf['SmartAlbums']['update_on_upload'], 15 )); 14 $template->assign($conf['SmartAlbums']); 16 15 17 16 $template->set_filename('SmartAlbums_content', dirname(__FILE__).'/template/config.tpl'); -
extensions/SmartAlbums/admin/template/config.tpl
r16104 r16939 1 {html_head}{literal} 2 <style type="text/css"> 3 .showInfo { 4 position:static; 5 display:inline-block; 6 padding:1px 6px !important; 7 width:auto; 8 font-size:0.8em; 9 line-height:1.2em; 10 } 11 </style> 12 {/literal}{/html_head} 13 14 {footer_script require="jquery"} 15 jQuery(".showInfo").tipTip({ldelim} 16 delay: 0, 17 fadeIn: 200, 18 fadeOut: 200, 19 maxWidth: '300px', 20 defaultPosition:"right" 21 }); 22 {/footer_script} 23 1 24 <div class="titrePage"> 2 25 <h2>SmartAlbums</h2> 3 26 </div> 4 27 5 <form method="post" action="" class="properties" ENCTYPE="multipart/form-data"> 6 <fieldset> 7 <legend>{'Configuration'|@translate}</legend> 28 <form method="post" action="" class="properties"> 29 <fieldset id="commentsConf"> 8 30 <ul> 9 31 <li> 10 32 <label> 11 <span class="property">{'Update albums on file upload'|@translate}</span>12 33 <input type="checkbox" name="update_on_upload" value="true" {if $update_on_upload}checked="checked"{/if}/> 13 {'(can cause slowdowns)'|@translate} 34 <b>{'Update albums on file upload'|@translate}</b> 35 <a class="showInfo" title="{'can cause slowdowns'|@translate}">i</a> 36 </label> 37 </li> 38 <li> 39 <label> 40 <input type="checkbox" name="smart_is_forbidden" value="true" {if $smart_is_forbidden}checked="checked"{/if}/> 41 <b>{'Exclude SmartAlbums from permissions management'|@translate}</b> 42 <a class="showInfo" title="{'SmartAlbums are considered private for everyone, and a user can see it\'s content only if available in another album he has access to.'|@translate}">i</a> 14 43 </label> 15 44 </li> … … 17 46 </fieldset> 18 47 19 <p ><input class="submit" type="submit" value="{'Submit'|@translate}" name="submit" /></p>48 <p class="formButtons"><input class="submit" type="submit" value="{'Submit'|@translate}" name="submit" /></p> 20 49 </form>
Note: See TracChangeset
for help on using the changeset viewer.