Changeset 214


Ignore:
Timestamp:
05/30/09 19:23:30 (15 years ago)
Author:
nanardon
Message:
  • web and css improvements
Location:
LATMOS-Accounts-Web
Files:
13 edited

Legend:

Unmodified
Added
Removed
  • LATMOS-Accounts-Web/lib/LATMOS/Accounts/Web/Controller.pm

    r160 r214  
    2424    my ( $self, $c ) = @_; 
    2525 
     26    my $menu = ''; 
     27    my @menus = ( 
     28        [ 'users' => 'Utilisateurs' ], 
     29        [ 'create/user' => 'Créer un Utilisateurs' ], 
     30        [ 'groups' => 'Groupes' ], 
     31        [ 'sites' => 'Sites' ], 
     32    ); 
     33    foreach(@menus) { 
     34        $menu .= sprintf( 
     35            q{<a href="%s"><span%s>%s</span></a>}, 
     36            $c->uri_for('/' . $_->[0]), 
     37            ($c->req->path =~ m:^$_->[0]: ? ' id="actif"' : ''), 
     38            $_->[1], 
     39        ); 
     40 
     41    } 
     42    $c->stash->{mainmenu} = $menu; 
    2643} 
    2744 
  • LATMOS-Accounts-Web/root/html/groups/default.tt

    r148 r214  
    44[% ELSE %] 
    55     
    6 <div class=objectform> 
     6<div class="objectform" id="objectform"> 
    77[% INCLUDE 'groups/menu.tt' %] 
    88 
     
    1111    form_uri = c.uri_for(groupname, subform) %] 
    1212</div> 
     13</div> 
    1314[% END %] 
  • LATMOS-Accounts-Web/root/html/groups/menu.tt

    r157 r214  
    11<!-- $Id$ --> 
    2 <div> 
     2<div id="omenu"> 
    33    <table border="0"> 
    44    <tr><td> 
     
    88    <td>    
    99    [% groupname | html %]<br> 
    10     </td></tr> 
    11     <tr><td colspan=2> 
    12         <a href="[% c.uri_for(groupname) %]">SystÚme</a> :: 
    13         <a href="[% c.uri_for(groupname, 'users') %]">Utilisateurs</a> 
    14     </td></tr> 
    1510    </table> 
     11        <a href="[% c.uri_for(groupname) %]"><span [% 'id="oactive"' IF subform == '' %]>SystÚme</span></a> 
     12        <a href="[% c.uri_for(groupname, 'users') %]"><span [% 'id="oactive"' IF subform == '' %]>Utilisateurs</span></a> 
    1613</div> 
  • LATMOS-Accounts-Web/root/html/groups/users.tt

    r157 r214  
    77[% INCLUDE 'groups/menu.tt' %] 
    88 
     9<div id="oform"> 
    910<table border=1> 
    1011<tr><th>Membres</th></tr> 
     
    1920[% END %] 
    2021</table> 
     22</div> 
    2123 
    2224</div> 
  • LATMOS-Accounts-Web/root/html/includes/form.tt

    r174 r214  
    22[% FOREACH attr =  form.attributes %] 
    33[% IF loop.first %] 
     4<div id="oform"> 
    45<form action="[% form_uri | html %]" method="POST"> 
    56<table border=1> 
     
    1314</table> 
    1415</form> 
     16</div> 
    1517[% END %] 
    1618[% END %] 
  • LATMOS-Accounts-Web/root/html/includes/header.tt

    r204 r214  
    1515    Gestion des Utilisateurs du LATMOS 
    1616</div> 
    17  
    18 <div style="float: left" id="mainmenu" class="pmenu"> 
    19     <p><a href="[% c.uri_for('/users') %]">Utilisateurs</a></p> 
    20     <p><a href="[% c.uri_for('/create/user') %]">Créer un Utilisateurs</a></p> 
    21     <p><a href="[% c.uri_for('/groups') %]">Groupes</a></p> 
    22     <p><a href="[% c.uri_for('/departments') %]">Département</a></p> 
    23     <p><a href="[% c.uri_for('/sites') %]">Sites</a></p> 
     17<div id="mainmenu" class="pmenu"> 
     18    [% mainmenu %] 
    2419</div> 
  • LATMOS-Accounts-Web/root/html/sites/default.tt

    r148 r214  
    44[% ELSE %] 
    55     
    6 <div class=objectform> 
     6<div class="objectform" id="objectform"> 
    77[% INCLUDE 'sites/menu.tt' %] 
    88 
  • LATMOS-Accounts-Web/root/html/sites/menu.tt

    r148 r214  
    11<!-- $Id: user_menu.tt 443 2009-05-18 03:52:21Z nanardon $ --> 
    2 <div> 
     2<div id="omenu"> 
    33    <table border="0"> 
    44    <tr><td> 
     
    1010    [% user.get_c_field('l') | html %] 
    1111    </td></tr> 
    12     <!-- 
    13     <tr><td colspan=2> 
    14         <a href="[% c.uri_for(sitename) %]">SystÚme</a> 
    15     </td></tr> 
    16     --> 
    1712    </table> 
    1813</div> 
  • LATMOS-Accounts-Web/root/html/users/default.tt

    r148 r214  
    44[% ELSE %] 
    55     
    6 <div class=objectform> 
     6<div id="objectform" class="objectform"> 
    77[% INCLUDE 'users/menu.tt' %] 
    88 
  • LATMOS-Accounts-Web/root/html/users/groups.tt

    r149 r214  
    44[% ELSE %] 
    55     
    6 <div class=objectform> 
     6<div id="objectform" class="objectform"> 
    77[% INCLUDE 'users/menu.tt' %] 
    88 
     9<div id="oform"> 
    910<table border="1"> 
    1011<tr> 
     
    3536 
    3637</div> 
     38</div> 
    3739[% END %] 
  • LATMOS-Accounts-Web/root/html/users/menu.tt

    r179 r214  
    11<!-- $Id$ --> 
    2 <div> 
    3     <table border="0"> 
    4     <tr><td> 
    5     <img src="[% c.uri_for('/static', 'icons', 'user-properties.png') %]" 
    6     alt="[% "User " _ username %]"> 
    7     </td> 
    8     <td>    
    9     [% username | html %]<br> 
    10     [% user.get_c_field('sn') | html %] 
    11     [% user.get_c_field('givenName') | html %] 
    12     </td></tr> 
    13     <tr><td colspan=2> 
    14         <a href="[% c.uri_for(username) %]">SystÚme</a> :: 
    15         <a href="[% c.uri_for(username, 'address') %]">Adresse</a> :: 
    16         <a href="[% c.uri_for(username, 'status') %]">Status</a> :: 
    17         <a href="[% c.uri_for(username, 'groups') %]">Groupes</a> :: 
    18         <a href="[% c.uri_for(username, 'passwd') %]">Mot de passe</a> 
    19     </td></tr> 
    20     </table> 
     2<div id="omenu"> 
     3<table border="0"> 
     4<tr><td> 
     5<img src="[% c.uri_for('/static', 'icons', 'user-properties.png') %]" 
     6alt="[% "User " _ username %]"> 
     7</td> 
     8<td>    
     9[% username | html %]<br> 
     10[% user.get_c_field('sn') | html %] 
     11[% user.get_c_field('givenName') | html %] 
     12</td></tr> 
     13</table> 
     14        <a href="[% c.uri_for(username) %]"><span [% 'id="oactive"' IF subform == '' %]>SystÚme</span></a> 
     15        <a href="[% c.uri_for(username, 'address') %]"><span [% 'id="oactive"' IF subform == 'address' %]>Adresse</span></a> 
     16        <a href="[% c.uri_for(username, 'status') %]"><span [% 'id="oactive"' IF subform == 'status' %]>Status</span></a> 
     17        <a href="[% c.uri_for(username, 'groups') %]"><span [% 'id="oactive"' IF subform == 'groups' %]>Groupes</span></a> 
     18        <a href="[% c.uri_for(username, 'passwd') %]"><span [% 'id="oactive"' IF subform == 'passwd' %]>Mot de passe</span></a> 
    2119</div> 
  • LATMOS-Accounts-Web/root/html/users/passwd.tt

    r179 r214  
    44[% ELSE %] 
    55     
    6 <div class=objectform> 
     6<div id="objectform" class="objectform"> 
    77[% INCLUDE 'users/menu.tt' %] 
    88 
     9<div id="oform"> 
    910<form action="[% c.uri_for(username, subform) %]" method="POST"> 
    1011<table border="1"> 
     
    3031</form> 
    3132</div> 
     33</div> 
    3234[% END %] 
  • LATMOS-Accounts-Web/root/static/style.css

    r160 r214  
    22    border: none; 
    33    vertical-align: middle; 
     4} 
     5 
     6.pmenu { 
     7    background-color: #7DB4D8; 
     8    padding: 0.5em; 
    49} 
    510 
     
    813} 
    914 
    10 #mainmenu { 
     15#mainmenu a { 
    1116    font-size: 80%; 
     17    overflow: hidden; 
     18    text-decoration: none; 
    1219} 
    1320 
    14 .pmenu { 
    15     background-color: #6666CC; 
    16     padding: 0.5em; 
     21#mainmenu span { 
     22    border-style: outset; 
     23    padding-left: 1em; 
     24    padding-right: 1em; 
     25    text-decoration: none; 
    1726} 
     27 
     28#mainmenu span#actif { 
     29    border-style: inset; 
     30    border-size: 1px; 
     31    padding-left: 1em; 
     32    padding-right: 1em; 
     33    text-decoration: none; 
     34} 
     35 
     36.objectform { 
     37    border-style: outset; 
     38    margin-left: 20%; 
     39    margin-right: 20%; 
     40} 
     41 
     42#objectform table { 
     43    margin: 1em; 
     44} 
     45 
     46#omenu a:hover { 
     47} 
     48 
     49#omenu a { 
     50    text-decoration: none; 
     51} 
     52 
     53#omenu td { 
     54    padding-left: 0.5em; 
     55    padding-right: 0.5em; 
     56} 
     57 
     58#omenu span { 
     59    padding-left: 1em; 
     60    padding-right: 1em; 
     61    margin: 0; 
     62    border: groove thin; 
     63    text-decoration: none; 
     64} 
     65 
     66#omenu span#oactive { 
     67    margin: 0; 
     68    padding-left: 1em; 
     69    padding-right: 1em; 
     70    border: outset; 
     71    border-bottom-style: none; 
     72    text-decoration: none; 
     73} 
     74 
     75#oform { 
     76    border: inset; 
     77} 
     78 
     79#oform table { 
     80    margin-left: 20%; 
     81    margin-right: 20%; 
     82} 
Note: See TracChangeset for help on using the changeset viewer.