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

Location:
trunk/admin/themes/default
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/themes/default/fix-ie7.css

    r9864 r23121  
    77        text-align:left;
    88}
     9.groups li {
     10  display: inline;
     11}
  • 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">
  • trunk/admin/themes/default/theme.css

    r22704 r23121  
    11041104  margin-left:5px;
    11051105}
     1106
     1107.groups {
     1108  text-align:center;
     1109}
     1110.groups li {
     1111  vertical-align: middle;
     1112  position: relative;
     1113  display: inline-block;
     1114  text-align: left;
     1115  height: 300px;
     1116  width: 250px;
     1117  margin: 5px;
     1118  border-radius: 5px;
     1119}
     1120.groups p {
     1121  text-align:left;
     1122}
     1123.groups label>p {
     1124  margin: 0;
     1125  border-radius: 5px 5px 0 0;
     1126  padding: 2px;
     1127  text-align: center;
     1128}
     1129
     1130.groups input {
     1131  float: right;
     1132}
     1133p.list_user {
     1134  text-align: left;
     1135  max-height: 200px;
     1136  overflow: auto; 
     1137}
     1138a.group_perm {
     1139  position: absolute;
     1140  bottom: 5px;
     1141  right: 5px;
     1142}
Note: See TracChangeset for help on using the changeset viewer.