Ignore:
Timestamp:
01/06/16 16:02:29 (9 years ago)
Author:
nanardon
Message:

Replace vertical menu by an horizontal top one

Location:
trunk/LATMOS-Accounts-Web
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LATMOS-Accounts-Web/lib/LATMOS/Accounts/Web/I18N/fr.po

    r1549 r1596  
    1717"Content-Transfer-Encoding: 8bit\n" 
    1818 
    19 #: root/html/includes/wrapper.tt:47 
     19#: root/html/includes/sidebar.tt:16 
     20msgid "Change my password" 
     21msgstr "Changer mon mot de passe" 
     22 
     23#: root/html/includes/sidebar.tt:9 
     24msgid "Connected as" 
     25msgstr "Connecté en tant que" 
     26 
     27#: root/html/includes/sidebar.tt:28 
     28msgid "Create" 
     29msgstr "Créer" 
     30 
     31#: root/html/includes/wrapper.tt:48 
    2032msgid "IT management" 
    2133msgstr "Gestion informatique" 
     34 
     35#: root/html/includes/sidebar.tt:21 
     36msgid "Logout" 
     37msgstr "Se déconnecter" 
     38 
     39#: root/html/includes/sidebar.tt:40 
     40msgid "Tools" 
     41msgstr "Outils" 
     42 
     43#: root/html/includes/sidebar.tt:65 
     44msgid "View" 
     45msgstr "Voir" 
  • trunk/LATMOS-Accounts-Web/lib/LATMOS/Accounts/Web/I18N/messages.pot

    r1546 r1596  
    1616"Content-Transfer-Encoding: 8bit\n" 
    1717 
    18 #: root/html/includes/wrapper.tt:47 
     18#: root/html/includes/sidebar.tt:16 
     19msgid "Change my password" 
     20msgstr "" 
     21 
     22#: root/html/includes/sidebar.tt:9 
     23msgid "Connected as" 
     24msgstr "" 
     25 
     26#: root/html/includes/sidebar.tt:28 
     27msgid "Create" 
     28msgstr "" 
     29 
     30#: root/html/includes/wrapper.tt:48 
    1931msgid "IT management" 
    2032msgstr "" 
     33 
     34#: root/html/includes/sidebar.tt:21 
     35msgid "Logout" 
     36msgstr "" 
     37 
     38#: root/html/includes/sidebar.tt:40 
     39msgid "Tools" 
     40msgstr "" 
     41 
     42#: root/html/includes/sidebar.tt:65 
     43msgid "View" 
     44msgstr "" 
  • trunk/LATMOS-Accounts-Web/root/html/includes/sidebar.tt

    r1481 r1596  
     1 
    12[% IF c.user.username %] 
    23<form action="[% c.uri_for('/search') %]"> 
     
    45<input type="image" name="" src="[% c.uri_for('/static', 'images', 'gtk-find.png') %]" height="16" width="16"> 
    56</form> 
     7<span> 
     8    <a href="[% c.uri_for('/users', c.user.username) %]"> 
     9    [% l('Connected as') %] 
     10    [% c.model('Accounts').db.get_object('user', c.user.username ) %] 
     11    </a> 
     12</span>, 
     13[% IF c.model('Accounts').db.check_acl('user', 'userPassword', 'w') %] 
     14    <span> 
     15    <a href="[% c.uri_for('/users', c.user.username, 'passwd') %]"> 
     16    [% l('Change my password') %] 
     17    </a> 
     18    </span>, 
     19[% END %] 
     20<span> 
     21    <a href="[% c.uri_for('/logout') %]">[% l('Logout') %]</a> 
     22</span> 
     23 
    624<ul id="menu"> 
    7  
    8 <li>Mon compte: 
    9     <ul> 
    10  
    11     <li> <a href="[% c.uri_for('/users', c.user.username) %]">Ma page</a></li> 
    12  
    13     [% IF c.model('Accounts').db.check_acl('user', 'userPassword', 'w') %] 
    14     <li><a href="[% c.uri_for('/users', c.user.username, 'passwd') %]">Changer mon mot de passe</a></li> 
    15     [% END %] 
    16  
    17     <li><a href="[% c.uri_for('/logout') %]">Se déconnecter</a></li> 
    18     </ul> 
    19 </li> 
    2025 
    2126<li><a href="[% c.uri_for('/search', 'adv') %]">Recherche avancée</a></li> 
    2227 
    23 <li>Outils: 
     28<li>[% l('Create') %] 
     29<ul> 
     30[% FOREACH obj = c.model('Accounts').db.list_supported_objects.sort %] 
     31[% label = c.model('Accounts').obj_to_label(obj) %] 
     32[% NEXT IF NOT label %] 
     33    <li><a href="[% c.uri_for('/create', obj) %]"> 
     34    [% label | html %] 
     35    </a></li> 
     36[% END %] 
     37</ul> 
     38</li> 
     39 
     40<li>[% l('Tools') %] 
    2441    <ul> 
    2542    [% IF c.config.features.offices_list %] 
     
    3552    [% IF loop.first %] 
    3653    <li><a href="[% c.uri_for('/stat') %]">Statistiques</a>: 
    37     <ul> 
    3854    [% END %] 
    3955    <li><a href="[% c.uri_for('/stat', stat) %]">[% ostat.get_attributes('description') || stat | html %]</a></li> 
    4056    [% IF loop.last %] 
    41     </ul> 
    4257    </li> 
    4358    [% END %] 
     
    4762</li> 
    4863 
     64 
     65<li>[% l('View') %] 
     66<ul> 
    4967[% FOREACH obj = c.model('Accounts').db.list_supported_objects.sort %] 
    5068[% label = c.model('Accounts').obj_to_label(obj) %] 
    5169[% NEXT IF NOT label %] 
    52 <li>[% label | html %] 
    53     <ul> 
    54     <li><a href="[% c.model('Accounts').obj_to_uri(obj) %]">Listes</a></li> 
    55     <li><a href="[% c.uri_for('/create', obj) %]">Créer...</a></li> 
    56     <li><a href="[% c.uri_for('/search/adv', { 'otype' => obj }) %]">Rechercher...</a></li> 
    57     </ul> 
     70    <li><a href="[% c.model('Accounts').obj_to_uri(obj) %]">[% label | html %]</a></li> 
     71[% END %] 
     72</ul> 
    5873</li> 
    59 [% END %] 
    6074 
    61 <ul> 
    6275<li><a href="[% c.uri_for('/admin') 
    6376%]">Gestion...</a></li> 
     
    6679<script> 
    6780$(function() { 
    68     $('#menu').menu(); 
    69 }); 
     81         $( "#menu" ).menu({ position: { my: "left top", at: "left-1 top+35" } }); 
     82});  
    7083</script> 
    7184[% END %] 
  • trunk/LATMOS-Accounts-Web/root/static/struct.css

    r1585 r1596  
    11/* $Id$ */ 
    22 
     3.ui-menu:after { 
     4    content: "."; 
     5    display: block; 
     6    clear: both; 
     7    visibility: hidden; 
     8    line-height: 0; 
     9    height: 0; 
     10} 
     11 
     12#menu>.ui-menu-item { 
     13    border: 1px solid #A6C9E2; 
     14    width: auto; 
     15} 
     16 
     17.ui-menu .ui-menu-item { 
     18    display: inline-block; 
     19    float: left; 
     20    margin: 0; 
     21    padding: 0; 
     22} 
     23 
    324#header  { 
    4     width: 100%; 
     25    width: auto; 
    526    padding: 0.2em; 
    627} 
    728 
    829#sidebar { 
    9     width: 180px; 
    10     padding: 0.1em; 
    11     float: left; 
    1230    font-size: 0.9em; 
    1331} 
     
    1735} 
    1836 
     37#sidebar form { 
     38    display: inline-block; 
     39} 
     40 
     41#sidebar>span { 
     42    padding-left: 20px; 
     43} 
     44 
    1945#mainbox { 
    20     width: 78%; 
    21     padding: 0em; 
    22     float: left; 
     46    width: auto; 
     47    padding: 1em; 
     48    border: groove 10px; 
    2349} 
    2450 
Note: See TracChangeset for help on using the changeset viewer.