Changeset 151
- Timestamp:
- 05/21/09 01:09:14 (15 years ago)
- Location:
- LATMOS-Accounts-Web
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
LATMOS-Accounts-Web/lib/LATMOS/Accounts/Web/Model/AttrForms.pm
r148 r151 19 19 uidNumber => [ 'UID' ], 20 20 gidNumber => [ 'GID', 'select:group:gidNumber' ], 21 manager => [ 'Responsable', 'select-N:user:uid' ], 21 22 sn => [ 'Nom' ], 22 23 givenName => [ 'Prénom' ], … … 30 31 postalCode => [ 'Code postal' ], 31 32 postOfficeBox => [ 'BP' ], 32 department => [ 'Département' ],33 department => [ 'Département', 'select-N:department' ], 33 34 streetAddress => [ 'Rue', 'textarea' ], 34 35 st => [ 'Etat' ], … … 64 65 attrs => [ qw( 65 66 company 67 manager 66 68 department 67 69 title … … 80 82 cell => { 81 83 name => 'Cellule', 82 attrs => [qw(description ) ],84 attrs => [qw(description manager) ], 83 85 }, 84 86 department => { 85 87 name => 'Département', 86 attrs => [qw(description ) ],88 attrs => [qw(description manager) ], 87 89 }, 88 90 team => { … … 178 180 $self->attr_raw_value($attr) 179 181 ); 180 /^select:([^:]+):(.*)$/ and do { 181 my $otype = $1; 182 my $keyfield = $2; 182 /^select(-\w+)?:([^:]+)(?::(.*))?$/ and do { 183 my $options = $1 || ''; 184 my $otype = $2; 185 my $keyfield = $3; 183 186 my $select = sprintf('<select name="%s">', 184 187 $self->escape($attr)) . "\n"; 185 my $value = $self->attr_raw_value($attr); 188 $select .= '<option value="">--</option>' . "\n" if ($options =~ /N/); 189 my $value = $self->attr_raw_value($attr) || ''; 186 190 foreach my $id ($self->base->list_objects($otype)) { 187 191 my $obj = $self->base->get_object($otype, $id) or next; -
LATMOS-Accounts-Web/root/html/cells/index.tt
r148 r151 31 31 32 32 <table border="0"> 33 <table border="0"> 34 <tr><td colspan="2">[% cellslist.size %] Cellules</td></tr> 35 <tr><th>Nom</th><th>Description</th></tr> 33 36 [% FOREACH cellname = cellslist %] 34 37 [% cell = db.get_object('cell', cellname) %] … … 36 39 <td>[% cell.get_c_field('name') | html %]</td> 37 40 <td> 38 [% cell.get_c_field(' l') | html %]41 [% cell.get_c_field('description') | truncate(30) | html %] 39 42 <a href="[% c.uri_for('/cells', cellname) %]"> 40 43 <img src="[% c.uri_for('/static', 'icons', 'arrow-right.png') %]" -
LATMOS-Accounts-Web/root/html/departments/index.tt
r148 r151 31 31 32 32 <table border="0"> 33 <table border="0"> 34 <tr><td colspan="2">[% departmentslist.size %] Départements</td></tr> 35 <tr><th>Nom</th><th>Description</th></tr> 33 36 [% FOREACH departmentname = departmentslist %] 34 37 [% department = db.get_object('department', departmentname) %] … … 36 39 <td>[% department.get_c_field('name') | html %]</td> 37 40 <td> 38 [% department.get_c_field(' l') | html %]41 [% department.get_c_field('description') | truncate(30) | html %] 39 42 <a href="[% c.uri_for('/departments', departmentname) %]"> 40 43 <img src="[% c.uri_for('/static', 'icons', 'arrow-right.png') %]" -
LATMOS-Accounts-Web/root/html/includes/header.tt
r134 r151 21 21 <p><a href="[% c.uri_for('/users') %]">Utilisateurs</a></p> 22 22 <p><a href="[% c.uri_for('/groups') %]">Groupes</a></p> 23 <p><a href="[% c.uri_for('/departments') %]">Département</a></p> 24 <p><a href="[% c.uri_for('/teams') %]">Ãquipes</a></p> 25 <p><a href="[% c.uri_for('/cells') %]">Cellules</a></p> 23 26 <p><a href="[% c.uri_for('/sites') %]">Sites</a></p> 24 27 </div> -
LATMOS-Accounts-Web/root/html/sites/index.tt
r134 r151 31 31 32 32 <table border="0"> 33 <table border="0"> 34 <tr><td colspan="2">[% siteslist.size %] Sites</td></tr> 35 <tr><th>Nom</th><th>Ville</th></tr> 33 36 [% FOREACH sitename = siteslist %] 34 37 [% site = db.get_object('site', sitename) %] -
LATMOS-Accounts-Web/root/html/teams/index.tt
r148 r151 31 31 32 32 <table border="0"> 33 <table border="0"> 34 <tr><td colspan="2">[% teamslist.size %] Ãquipes</td></tr> 35 <tr><th>Nom</th><th>Description</th></tr> 33 36 [% FOREACH teamname = teamslist %] 34 37 [% team = db.get_object('team', teamname) %] … … 36 39 <td>[% team.get_c_field('name') | html %]</td> 37 40 <td> 38 [% team.get_c_field(' l') | html %]41 [% team.get_c_field('description') | truncate(30) | html %] 39 42 <a href="[% c.uri_for('/teams', teamname) %]"> 40 43 <img src="[% c.uri_for('/static', 'icons', 'arrow-right.png') %]"
Note: See TracChangeset
for help on using the changeset viewer.