major cleanup:
[mir.git] / templates / admin / message.template
1 <html>
2   <head>
3     <title>${config["Mir.Name"]} | ${lang("message.htmltitle")}</title>
4     <link rel="stylesheet" type="text/css" href="${config.docRoot}/style/admin.css">
5   <head>
6
7   <body marginwidth="0" marginheight="0" topmargin="0" leftmargin="0">
8     <include "FUNCTIONS.template">
9     <include "head.template">
10   
11       <if new=="1">
12         <assign method="insert">
13       <else>
14         <assign method="update">
15       </if>
16       
17       
18       <call EditStart(["module", "id", "do"], [module, entity.id, method])>
19          
20         <call EditReadonlyTextNormal(lang("message.id"), entity.id)>
21         <call EditReadonlyTextNormal(lang("message.date"), entity.creationdate.format(config["Mir.DefaultDateTimeFormat"]))>
22         <call EditTextNormal(lang("message.title"), 30, 30, "title", entity.title)>
23         <call EditTextNormal(lang("message.creator"), 30, 30, "creator", entity.creator)>
24
25         <call EditTextAreaNormal(lang("message.text"), "", "50", "5", "description", entity.description)>\r
26       
27         <if new=="1">
28           <call EditSubmitButtonNormal(lang("insert"), "save")>
29         <else>
30           <call EditSubmitButtonNormal(lang("save"), "save")>
31         </if> 
32
33       <call EditEnd()>
34       
35       <if returnurl>
36         <call showBack(returnurl)>
37       <else>
38         <call showBack("module="+module+"&amp;do=list")>
39       </if>
40
41     <include "foot.template">
42   </body>
43 </html>