Ignore:
Timestamp:
Mar 17, 2012, 1:47:17 AM (12 years ago)
Author:
plg
Message:

feature 2594: redesign on album permission screen. The choice "public/private"
is not on the "properties" tab anymore. Simpler ergonomy to select grant users
and groups.

Location:
trunk/admin/themes/default/template
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/themes/default/template/cat_modify.tpl

    r13020 r13580  
    8282
    8383  <p>
    84     <strong>{'Access type'|@translate}</strong>
    85     <br>
    86     {html_radios name='status' values=$status_values output=$status_values|translate selected=$CAT_STATUS}
    87   </p>
    88 
    89   <p>
    9084    <strong>{'Lock'|@translate}</strong>
    9185    <br>
  • 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}
     5jQuery(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
    124<div class="titrePage">
    225  <h2><span style="letter-spacing:0">{$CATEGORIES_NAV}</span> &#8250; {'Edit album'|@translate} {$TABSHEET_TITLE}</h2>
     
    528<form action="{$F_ACTION}" method="post" id="categoryPermissions">
    629
     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{*
    760  <h4>{'Groups'|@translate}</h4>
    861
     
    61114    <label><input type="checkbox" name="apply_on_sub">{'Apply to sub-albums'|@translate}</label>
    62115  </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>
    63123
    64124<input type="hidden" name="pwg_token" value="{$PWG_TOKEN}">
Note: See TracChangeset for help on using the changeset viewer.