Ignore:
Timestamp:
Jun 9, 2013, 8:57:26 PM (11 years ago)
Author:
flop25
Message:

bug:2890
new layout finished: ie7 compat, dynamic, rounded corners...
the 2 "Manage..." options has been deleted

File:
1 edited

Legend:

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

    r23062 r23121  
    22{literal}
    33$(document).ready(function() {
    4 
     4  $('.groups input').change(function () { $(this).parent('p').toggleClass('group_select'); });
    55  $(".grp_action").hide();
    66  $("input.group_selection").click(function() {
     
    3434    $("[id^=action_]").hide();
    3535    $("#action_"+$(this).prop("value")).show();
    36     if ($(this).val() != -1 && $(this).val() !="manage_pemissions" && $(this).val() !="manage_members" ) {
     36    if ($(this).val() != -1 ) {
    3737      $("#applyActionBlock").show();
    3838    }
     
    6767  <input type="hidden" name="pwg_token" value="{$PWG_TOKEN}">
    6868
    69   <ul style="text-align:center;">
     69  <ul class="groups">
    7070    {if not empty($groups)}
    7171    {foreach from=$groups item=group name=group_loop}
    72     <li style="vertical-align: middle;position: relative;display: inline-block;text-align: left;background-color: #ccc;height: 300px; width: 250px; margin: 5px">
    73       <p style="text-align: left;"><label>{$group.NAME}<i><small>{$group.IS_DEFAULT}</small></i><input class="group_selection" name="group_selection[]" type="checkbox" value="{$group.ID}"></label></p>
    74       <p style="text-align: left;max-height: 200px;overflow: auto;">{if $group.MEMBERS>0}<a href="{$group.U_MEMBERS}" title="{'Manage the members'|@translate}">{$group.MEMBERS}</a><br>{$group.L_MEMBERS}{else}{$group.MEMBERS}{/if}</p>
    75       <p style="text-align: left;position: absolute;bottom: 0"><a class="buttonLike" href="{$group.U_PERM}" title="{'Permissions'|@translate}">{'Manage Permissions'|@translate}</a></p>
     72    <li>
     73      <label><p>{$group.NAME}<i><small>{$group.IS_DEFAULT}</small></i><input class="group_selection" name="group_selection[]" type="checkbox" value="{$group.ID}"></p></label>
     74      <p class="list_user">{if $group.MEMBERS>0}<a href="{$group.U_MEMBERS}" title="{'Manage the members'|@translate}">{$group.MEMBERS}</a><br>{$group.L_MEMBERS}{else}{$group.MEMBERS}{/if}</p>
     75      <a class="buttonLike group_perm" href="{$group.U_PERM}" title="{'Permissions'|@translate}">{'Manage Permissions'|@translate}</a>
    7676    </li>
    7777    {/foreach}
     
    9191          <option value="merge">{'Merge selected groups'|@translate}</option>
    9292          <option value="duplicate">{'Duplicate'|@translate}</option>
    93           <option value="manage_members">{'Manage the members'|@translate}</option>
    94           <option value="manage_pemissions">{'Manage Permissions'|@translate}</option>
    9593          <option value="toggle_default">{'Toggle \'default group\' property'|@translate}</option>
    9694      {if !empty($element_set_groupe_plugins_actions)}
     
    138136        </div>
    139137
    140         <!-- manage_members -->
    141         <div id="action_manage_members" class="bulkAction">
    142         {if not empty($groups)}
    143         {foreach from=$groups item=group}
    144         <p group_id="{$group.ID}" class="grp_action">
    145           {$group.NAME} > {if $group.NB_MEMBERS!=0}<a class="buttonLike" href="{$group.U_MEMBERS}" title="{'Manage the members'|@translate}">{'Manage the members'|@translate}</a>{else}{'No members to manage'|@translate}{/if}
    146         </p>
    147         {/foreach}
    148         {/if}
    149         </div>
    150 
    151         <!-- manage_pemissions -->
    152         <div id="action_manage_pemissions" class="bulkAction">
    153         {if not empty($groups)}
    154         {foreach from=$groups item=group}
    155         <p group_id="{$group.ID}" class="grp_action">
    156           {$group.NAME} > <a class="buttonLike" href="{$group.U_PERM}" title="{'Permissions'|@translate}">{'Manage Permissions'|@translate}</a>
    157         </p>
    158         {/foreach}
    159         {/if}
    160         </div>
    161 
    162138        <!-- toggle_default -->
    163139        <div id="action_toggle_default" class="bulkAction">
Note: See TracChangeset for help on using the changeset viewer.