RFE: Add a cancel button to the edit profile screen

This commit is contained in:
Colin Kuskie 2008-09-16 19:01:27 +00:00
parent 6bf0464713
commit bcc66cb6cb
3 changed files with 8 additions and 3 deletions

View file

@ -56,6 +56,7 @@
- rfe: Added sort order to Folder assets
- rfe: Added canEdit and canAddFile template vars to Folder assets
- rfe: Add logged-in time to Login History
- rfe: cancel button (for edit profile screen)
7.5.22
- fixed: Layout template now gets prepared correctly

View file

@ -225,12 +225,16 @@ sub www_editProfile {
});
}
push(@array, {
'profile.form.category' => $category->getLabel,
'profile.form.category.loop' => \@temp
});
'profile.form.category' => $category->getLabel,
'profile.form.category.loop' => \@temp
});
}
$vars->{'profile.form.elements'} = \@array;
$vars->{'profile.form.submit'} = WebGUI::Form::submit($session,{});
$vars->{'profile.form.cancel'} = WebGUI::Form::button($session,{
value => $i18n->get('cancel'),
extras=>q|onclick="history.go(-1);" class="backwardButton"|,
});
$vars->{'profile.accountOptions'} = WebGUI::Operation::Shared::accountOptions($session);
return $session->style->userStyle(WebGUI::Asset::Template->new($session, $session->setting->get('editUserProfileTemplate'))->process($vars));
}