source: extensions/community/admin_config.tpl @ 27394

Last change on this file since 27394 was 23085, checked in by plg, 11 years ago

New feature: user album. Only for registered users, no recursivity. Piwigo
will automatically create an upload album for each user with appropriate
community permissions, at first connection.

Bug fixed: on activation, do not create a new "Community" album if it already
exists.

Bug fixed: remove debug for quota

Bug fixed: round corners for number of pending pictures in admin menu.

File size: 1.4 KB
Line 
1{literal}
2<style>
3form p {text-align:left;}
4.subOption {margin-left:2em; margin-bottom:20px;}
5</style>
6{/literal}
7
8{literal}
9<script type="text/javascript">
10jQuery(document).ready(function() {
11  jQuery("input[name=user_albums]").change(function() {
12    if (jQuery(this).is(":checked")) {
13      jQuery("#userAlbumsLocation").show();
14    }
15    else {
16      jQuery("#userAlbumsLocation").hide();
17    }
18  });
19});
20</script>
21{/literal}
22
23<div class="titrePage">
24  <h2>{'Configuration'|@translate} - {'Community'|@translate}</h2>
25</div>
26
27<form method="post" action="{$F_ACTION}">
28
29  <p><label><input type="checkbox" name="user_albums"{if $user_albums} checked="checked"{/if}> <strong>{'User albums'|@translate}</strong> : <em>{'Piwigo automatically creates an album for each user, on first connection'|@translate}</em></label></p>
30
31  <p class="subOption"{if !$user_albums} style="display:none;"{/if} id="userAlbumsLocation">
32    <strong>{'Where should Piwigo create user albums?'|@translate}</strong>
33    <br>
34    <select class="categoryDropDown" name="user_albums_parent">
35      <option value="0" {if not isset($category_options_selected)}selected="selected"{/if}>{'Gallery root'|@translate}</option>
36      <option disabled="disabled">------------</option>
37      {html_options options=$category_options selected=$category_options_selected}
38    </select>
39  </p>
40
41        <p class="formButtons">
42                <input type="submit" name="submit" value="{'Save Settings'|@translate}">
43        </p>
44
45</form>
Note: See TracBrowser for help on using the repository browser.