mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +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() {
|
function index() {
|
||||||
Session::clear("loggedInAs");
|
Session::clear("loggedInAs");
|
||||||
Requirements::css(project()."/css/form.css");
|
Requirements::themedCSS("form");
|
||||||
// if the email address is given
|
// if the email address is given
|
||||||
$emailAddress = addslashes( $this->urlParams['Email'] );
|
$emailAddress = addslashes( $this->urlParams['Email'] );
|
||||||
$mailingListID = addslashes( $this->urlParams['MailingList'] );
|
$mailingListID = addslashes( $this->urlParams['MailingList'] );
|
||||||
@ -170,7 +170,7 @@ class Unsubscribe_Successful extends Form {
|
|||||||
parent::__construct($controller, $name, $fields, $actions);
|
parent::__construct($controller, $name, $fields, $actions);
|
||||||
}
|
}
|
||||||
function setSuccessfulMessage($email, $newsletterTypes) {
|
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");
|
$this->setMessage("Thank you. $email will no longer receive the $newsletterTypes.", "good");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user