Changeset 790
- Timestamp:
- 02/03/10 17:43:13 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LATMOS-Accounts-Web/lib/LATMOS/Accounts/Web/Model/AttrForms.pm
r781 r790 39 39 sutype => [ 'Structure admin.', 'select-N:sutype' ], 40 40 exported => [ 'Propagé', 'label' ], 41 locked => [ 'Vérouillé', 'checkbox ' ],41 locked => [ 'Vérouillé', 'checkbox:l' ], 42 42 isMainAddress => [ 'Adresse principale', 'checkbox' ], 43 43 site => [ 'Site', 'select-N:site' ], … … 260 260 return $html; 261 261 }; 262 /^checkbox$/ and do { 263 return sprintf('<input type="checkbox" name="%s"%s>', 262 /^checkbox(?::(\w+))$/ and do { 263 my $options = $1; 264 my $text = sprintf('<input type="checkbox" name="%s"%s>', 264 265 $self->escape($htmlname), 265 266 $self->attr_raw_value($attr) ? ' checked="yes"' : '' 266 ) . sprintf('<input type="hidden" name="%s">', 267 ); 268 $text .= sprintf('<input type="hidden" name="%s">', 267 269 $self->escape($htmlname)); 270 if ($options =~ /l/) { 271 $text .= $self->attr_raw_value($attr) 272 ? ' ' . $self->attr_raw_value($attr) 273 : ''; 274 } 275 return $text; 268 276 }; 269 277 /^select(-\w+)?:([^:\/]+)(?:\/([^:]+))?(?::(.*))?/ and do {
Note: See TracChangeset
for help on using the changeset viewer.