mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
Use themed forms
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@39038 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
d53ea72c34
commit
a8ed557d99
@ -11,7 +11,7 @@ class Unsubscribe_Controller extends Page_Controller {
|
||||
|
||||
function index() {
|
||||
Session::clear("loggedInAs");
|
||||
Requirements::css(project()."/css/form.css");
|
||||
Requirements::themedCSS("form");
|
||||
// if the email address is given
|
||||
$emailAddress = addslashes( $this->urlParams['Email'] );
|
||||
$mailingListID = addslashes( $this->urlParams['MailingList'] );
|
||||
@ -170,7 +170,7 @@ class Unsubscribe_Successful extends Form {
|
||||
parent::__construct($controller, $name, $fields, $actions);
|
||||
}
|
||||
function setSuccessfulMessage($email, $newsletterTypes) {
|
||||
Requirements::css(project() . "/css/form.css");
|
||||
Requirements::themedCSS("form");
|
||||
$this->setMessage("Thank you. $email will no longer receive the $newsletterTypes.", "good");
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user