Changeset 145
- Timestamp:
- 05/20/09 02:28:27 (15 years ago)
- Location:
- LATMOS-Accounts-Web
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
LATMOS-Accounts-Web/lib/LATMOS/Accounts/Web/Model/AttrForms.pm
r144 r145 33 33 streetAddress => [ 'Rue', 'textarea' ], 34 34 st => [ 'Etat' ], 35 title => [ 'Fonction' ], 35 36 }; 36 37 … … 64 65 company 65 66 department 67 title 66 68 ) ], 67 69 }, … … 169 171 $self->escape($attr)) . "\n"; 170 172 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; 173 175 my $val = $keyfield ? $obj->get_c_field($keyfield) : $id; 174 176 $select .= sprintf( -
LATMOS-Accounts-Web/root/html/create/user.tt
r144 r145 4 4 <input type="hidden" name="step" value="2"> 5 5 Login: <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> 9 9 <input type="submit"> 10 10 </form> -
LATMOS-Accounts-Web/root/html/users/groups.tt
r136 r145 15 15 <td valign="TOP"> 16 16 [% 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"> 18 18 <input type="hidden" name="delgroup" value="[% g | html %]"> 19 19 <input type="image" src="[% c.uri_for('/static', 'icons', 'user-group-delete.png') %]" width="24" height="24"> … … 24 24 <td valign="TOP"> 25 25 [% FOREACH g = othergroups %] 26 <form action="[% c.uri_for(username, subform) %]" >26 <form action="[% c.uri_for(username, subform) %]" method="POST"> 27 27 <input type="hidden" name="addgroup" value="[% g | html %]"> 28 28 <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.