description is now shown in the article list if the title isn't available
[mir.git] / templates / admin / contentlist.template
1 <comment>
2   if selectarticleurl is set, this list is used to select an article
3 </comment>
4
5 <if selectarticleurl && selectarticleurl!="">
6   <assign showsearch="1">
7   <assign showactions="0">
8 <else>
9   <assign showactions="1">
10   <assign showsearch="0">
11 </if>
12
13 <html>
14 <head>
15   <title>${config["Mir.Name"]} | ${lang("contentlist.htmltitle")} </title>
16   <link rel="stylesheet" type="text/css" href="${config.docRoot}/style/admin.css">
17 </head>
18
19 <body marginwidth="0" marginheight="0" topmargin="0" leftmargin="0">
20 <include "FUNCTIONS.template">
21 <include "head.template">
22
23 <if showsearch=="1">
24   <call ContentSearch ("layouted")>
25 </if>
26
27 <if entities>
28
29 <if showactions=="1">
30   <if config["Mir.Localizer.Admin.ListOperationsFlavor"]!="0">
31     <form method="post" action="${config.actionRoot}">
32       <input type="hidden" name="module" value="Localizer">
33       <input type="hidden" name="do" value="articleoperationbatch">
34       <input type="hidden" name="returnurl" value="${utility.encodeHTML(thisurl)}">
35       <p class="box">
36         <input type="submit" class="majorbutton" name="save" value="${lang("save")}"> &nbsp; (${lang("commentlist.activate")})
37       </p>
38   </if>    
39 </if>
40
41 <call showPrevNextLinks(prevurl, nexturl, "right")>
42
43 <table border="0" width="100%" cellspacing="3" cellpadding="2">
44   <tr>
45     <td class="table-head" valign="top">
46       <span class="small">    
47       ${lang("content.creationdate")}<br>
48       ${lang("content.modificationdate")}<br>
49       ${lang("content.status")}
50       </span>
51     </td>
52     <td class="table-head" valign="top">
53       ${lang("content.type")} - ${lang("content.title")} (id # )<br>
54       ${lang("content.creator")} (${lang("content.language")})
55     </td>
56     <td class="table-head" valign="top">
57       ${lang("content.comment")}
58     </td>
59     <td class="table-head" valign="top">&nbsp;</td>
60   </tr>
61
62 <assign grey="0">
63   <list entities as entry>
64     <tr <if grey=="1"><assign grey="0">class="listrow1"<else>class="listrow2"<assign grey="1"></if>>
65       <td class="x-small">
66           ${entry.creationdate.format(config["Mir.DefaultDateTimeFormat"])}<br>
67           ${entry.changedate.format(config["Mir.DefaultDateTimeFormat"])}<br>
68           <if entry.is_published!="0">Pub.<else>-</if> <if entry.is_html!="0">HTML<else>-</if>
69       </td>
70       <td>
71         ${lang("articletypes." + entry.article_type.name)} <b>
72         <if entry.title>${utility.prettyEncodeHTML(entry.title)}<else>${utility.prettyEncodeHTML(entry.description)}</if></b> (${entry.id})<br>
73         ${lang("by")} <i>${utility.prettyEncodeHTML(entry.creator)}</i> (${entry.language.name})<br>
74         <if showactions=="1">
75           <if config["Mir.Localizer.Admin.ListOperationsFlavor"]=="0">
76             <list entry.operations as op>
77               [ <a href="${config.actionRoot}?module=Localizer&do=articleoperation&operation=${op}&articleid=${entry.id}&returnurl=${utility.encodeURI(thisurl)}">${lang("content.operation."+op)}</a> ]
78             </list>
79           </if>
80         <if config["Mir.Localizer.Admin.ListOperationsFlavor"]=="1">
81           <list entry.operations as op>
82             [ <input type="checkbox" name="operation" value="${entry.id};${op}"> ${lang("content.operation."+op)} ]
83           </list>
84         </if>
85           <if config["Mir.Localizer.Admin.ListOperationsFlavor"]=="2">
86             <if entry.operations>
87               <br>
88               <select name="operation">
89                 <option value="" selected>&nbsp;</option>
90                 <list entry.operations as op>
91                   <option value="${entry.id};${op}">${lang("content.operation."+op)}</option>
92                 </list>
93               </select>
94             </if>
95           </if>
96           <if entry.operations> | </if>
97           <a href="${config.actionRoot}?module=Content&do=edit&id=${entry.id}&returnurl=${utility.encodeURI(thisurl)}">${lang("edit")}</a> |
98           <comment> <a href="${entry.publicurl}">${lang("preview")}</a> |</comment>
99           <a href="${config.actionRoot}?module=Comment&do=articlecomments&articleid=${entry.id}&returnurl=${utility.encodeURI(thisurl)}">${lang("contentlist.comments")}</a> (${entry.commentcount})
100         <else>
101           <span class="text">
102           <a href="${config.actionRoot}?${selectarticleurl}&id=${entry.id}">${lang("contentlist.select")}</a>
103         </if>
104       </td>
105       <td width="25%"  <if grey=="1">class="listrow3"<else>class="listrow4"</if> valign="top">
106         <span class="small">${utility.prettyEncodeHTML(entry.comment)}&nbsp;</span>
107       </td>
108       <td valign="top" class="listcommand">
109         <if showactions=="1">
110           <if config["Mir.Localizer.Admin.AllowDeleteArticle"]=="1">
111             <a href="${config.actionRoot}?module=Content&do=delete&id=${entry.id}&okurl=${utility.encodeURI(thisurl)}&cancelurl=${utility.encodeURI(thisurl)}">[${lang("delete")}]</a>
112           </if>
113         </if>
114       </td>
115   </tr>
116 </list>
117   <tr>
118     <td colspan="4" class="table-foot">
119       ${count} ${lang("records")} / ${lang("show_from_to", from, to)}
120     </td>
121   </tr>
122 </table>
123
124 <if showactions=="1">
125   <if config["Mir.Localizer.Admin.ListOperationsFlavor"]!="0">
126     <p class="box">
127       <input class="majorbutton" type="submit" name="save" value="${lang("save")}"> &nbsp; ( ${lang("commentlist.activate")})
128     </p>
129   </form> 
130   </if>  
131 </if>
132
133 <call showPrevNextLinks(prevurl, nexturl, "right")>
134
135 <else>
136 <p align="center" class="box">${lang("no_matches_found")}</p>
137 </if>
138
139 <include "foot.template">
140 </body>
141 </html>