silverstripe-reports/templates/Includes/NewsletterAdmin_SiteTree.ss
Ingo Schommer ed0232eb71 elofgren: BUGFIX: Make adding newsletter types work again (was broken by r38923). Fix long-standing problem of whole page reloading when adding a Newsletter type. Now it is always added via AJAX.
(merged from branches/gsoc)


git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@42006 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-09-16 01:29:40 +00:00

34 lines
1.3 KiB
Scheme
Executable File

<% if NewsletterTypes %>
<ul id="sitetree" class="tree unformatted">
<% control NewsletterTypes %>
<li id="mailtype_$ID" class="MailType">
<a href="#">$Title</a>
<ul>
<li id="drafts_$ID" class="DraftFolder nodelete"><a href="$baseURL/admin/showtype/$ID">Drafts</a>
<% if DraftNewsletters %>
<ul>
<% control DraftNewsletters %>
<li class="Draft" id="draft_{$ParentID}_{$ID}"><a href="$baseURL/admin/newsletter/shownewsletter/$ID">$Title</a></li>
<% end_control %>
</ul>
<% end_if %>
</li>
<li id="sent_$ID" class="SentFolder nodelete"><a href="$baseURL/admin/showtype/$ID">Sent Items</a>
<% if SentNewsletters %>
<ul>
<% control SentNewsletters %>
<li class="Sent" id="sent_{$ParentID}_{$ID}"><a href="$baseURL/admin/newsletter/shownewsletter/$ID">$Title</a></li>
<% end_control %>
</ul>
<% end_if %>
</li>
<li id="recipients_$ID" class="Recipients nodelete"><a href="$baseURL/admin/newsletter/showtype/$ID">Mailing List</a></li>
</ul>
</li>
<% end_control %>
</ul>
<% else %>
<ul id="sitetree" class="tree unformatted">
</ul>
<% end_if %>