Move to sane directory structure. Don't make 'cms' the top level of the silverstripe...
[silverstripe-elijah.git] / silverstripe-gsoc / cms / templates / Includes / NewsletterAdmin_SiteTree.ss
blob68adef58fae0c7a9ea7c49ab9e1062ccb00eccf0
1 <% if NewsletterTypes %>
2         <ul id="sitetree" class="tree unformatted">
3         <% control NewsletterTypes %>
4                 <li id="mailtype_$ID" class="MailType">
5                         <a href="#">$Title</a>
6                         <ul>
7                                 <li id="drafts_$ID" class="DraftFolder nodelete"><a href="$baseURL/admin/showtype/$ID">Drafts</a>
8                                 <% if DraftNewsletters %>
9                                         <ul>
10                                                 <% control DraftNewsletters %>
11                                                 <li class="Draft" id="draft_{$ParentID}_{$ID}"><a href="$baseURL/admin/newsletter/shownewsletter/$ID">$Title</a></li>
12                                                 <% end_control %>
13                                         </ul>
14                                 <% end_if %>
15                                 </li>
16                                 <li id="sent_$ID" class="SentFolder nodelete"><a href="$baseURL/admin/showtype/$ID">Sent Items</a>
17                 <% if SentNewsletters %>
18                     <ul>
19                         <% control SentNewsletters %>
20                         <li class="Sent" id="sent_{$ParentID}_{$ID}"><a href="$baseURL/admin/newsletter/shownewsletter/$ID">$Title</a></li>
21                         <% end_control %>
22                     </ul>
23                 <% end_if %>
24                 </li>
25                 <li id="recipients_$ID" class="Recipients nodelete"><a href="$baseURL/admin/newsletter/showtype/$ID">Mailing List</a></li>
26             </ul>
27                 </li>
28         <% end_control %>
29         </ul>
30 <% else %>
31 <ul id="sitetree" class="tree unformatted">
32 </ul>
33 <% end_if %>