Changeset 145


Ignore:
Timestamp:
05/20/09 02:28:27 (15 years ago)
Author:
nanardon
Message:
Location:
LATMOS-Accounts-Web
Files:
3 edited

Legend:

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

    r144 r145  
    3333    streetAddress => [ 'Rue', 'textarea' ], 
    3434    st => [ 'Etat' ], 
     35    title => [ 'Fonction' ], 
    3536}; 
    3637 
     
    6465            company 
    6566            department 
     67            title 
    6668        ) ], 
    6769    }, 
     
    169171                $self->escape($attr)) . "\n"; 
    170172            my $value = $self->attr_raw_value($attr); 
    171             foreach my $id ($self->{object}->base->list_objects($otype)) { 
    172                 my $obj = $self->{object}->base->get_object($otype, $id) or next; 
     173            foreach my $id ($self->base->list_objects($otype)) { 
     174                my $obj = $self->base->get_object($otype, $id) or next; 
    173175                my $val = $keyfield ? $obj->get_c_field($keyfield) : $id; 
    174176                $select .= sprintf( 
  • LATMOS-Accounts-Web/root/html/create/user.tt

    r144 r145  
    44<input type="hidden" name="step" value="2"> 
    55Login: <input type="text" name="id" value="[% c.req.param('id') | html %]"><br> 
    6 Nom: <input type="text" name="sn" value="[% c.req.param('sn') | html %]"><br> 
    7 Prenom: <input type="text" name="givenName" value="[% c.req.param('givenName') | html %]"><br> 
    8 GID: <input type="text" name="gidNumber" value="[% c.req.param('gidNumber') | html %]"><br> 
     6[% form.attr_label('sn') %] [% form.attr_field('sn') %]<br> 
     7[% form.attr_label('givenName') %] [% form.attr_field('givenName') %]<br> 
     8[% form.attr_label('gidNumber') %] [% form.attr_field('gidNumber') %]<br> 
    99<input type="submit"> 
    1010</form> 
  • LATMOS-Accounts-Web/root/html/users/groups.tt

    r136 r145  
    1515<td valign="TOP"> 
    1616[% FOREACH g = user.get_c_field('memberOf') %] 
    17 <form action="[% c.uri_for(username, subform) %]"> 
     17<form action="[% c.uri_for(username, subform) %]" method="POST"> 
    1818<input type="hidden" name="delgroup" value="[% g | html %]"> 
    1919<input type="image" src="[% c.uri_for('/static', 'icons', 'user-group-delete.png') %]" width="24" height="24"> 
     
    2424<td valign="TOP"> 
    2525[% FOREACH g = othergroups %] 
    26 <form action="[% c.uri_for(username, subform) %]"> 
     26<form action="[% c.uri_for(username, subform) %]" method="POST"> 
    2727<input type="hidden" name="addgroup" value="[% g | html %]"> 
    2828<input type="image" src="[% c.uri_for('/static', 'icons', 'user-group-new.png') %]" width="24" height="24"> 
Note: See TracChangeset for help on using the changeset viewer.