Commit efc094e6 authored by Ingo Schommer's avatar Ingo Schommer

3.1 compat (controller and templates)

parent 811f286d
......@@ -8,11 +8,11 @@
*/
class NewsletterAdmin extends ModelAdmin {
static $url_segment = 'newsletter';
static $menu_title = 'Newsletter';
static $menu_icon = 'newsletter/images/newsletter-icon.png';
private static $url_segment = 'newsletter';
private static $menu_title = 'Newsletter';
private static $menu_icon = 'newsletter/images/newsletter-icon.png';
public static $managed_models = array(
private static $managed_models = array(
"Newsletter" => array('title' => 'Newsletters'),
"Newsletter_Sent" => array('title' => 'Sent Newsletters'),
"MailingList" => array('title' => 'Mailing Lists'),
......
......@@ -106,9 +106,9 @@
<h5>We confirm that you have subscribed to:
</h5>
<ul>
<% control MailingLists %>
<% loop MailingLists %>
<li>$Title</li>
<% end_control %>
<% end_loop %>
</ul>
<% end_if %>
</div>
......
......@@ -22,18 +22,18 @@
<% if MemberInfoSection %>The following data was submitted:<br />
<ul>
<% control MemberInfoSection %>
<% loop MemberInfoSection %>
<li><% if Title %>$Title<% else %>$Name<% end_if %>: $EmailalbeValue</li>
<% end_control %>
<% end_loop %>
</ul>
<% end_if %>
<% if Newsletters %>
<p>You're subscribed to the following mailing lists:</p>
<ul>
<% control Newsletters %>
<% loop Newsletters %>
<li>$Title</li>
<% end_control %>
<% end_loop %>
</ul>
<% end_if %>
......
......@@ -113,16 +113,16 @@
<h5>Once your email address is verified, you will be subscribed to our mailing lists:
</h5>
<ul>
<% control MailingLists %>
<% loop MailingLists %>
<li>$Title</li>
<% end_control %>
<% end_loop %>
</ul>
<% if MemberInfoSection %><h5>With submitted data:</h5>
<ul>
<% control MemberInfoSection %>
<% loop MemberInfoSection %>
<li><% if Title %>$Title<% else %>$Name<% end_if %>: $EmailalbeValue</li>
<% end_control %>
<% end_loop %>
</ul>
<% end_if %>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment