]> err.no Git - scalable-opengroupware.org/blob - UI/Templates/MailPartViewers/UIxMailPartMessageViewer.wox
e42ccbfd4d524164e5fd1be3413afa322ab900ca
[scalable-opengroupware.org] / UI / Templates / MailPartViewers / UIxMailPartMessageViewer.wox
1 <?xml version="1.0" standalone="yes"?>
2 <div xmlns="http://www.w3.org/1999/xhtml"
3      xmlns:var="http://www.skyrix.com/od/binding"
4      xmlns:label="OGo:label"
5      class="linked_attachment_frame"
6 >
7   <div class="linked_attachment_body">
8
9   <!-- TODO: the table is a DUP to UIxMailView, own component? -->
10   <table class="mailer_fieldtable">
11     <tr class="mailer_fieldrow">
12       <td class="mailer_fieldname" ><var:string label:value="Subject"/>:</td>
13       <td class="mailer_subjectfieldvalue">
14         <var:string value="envelope.subject"
15                     formatter="context.mailSubjectFormatter"/>
16 <!--
17         <a var:href="pathToAttachment"
18            var:title="filenameForDisplay"
19            >(<var:string label:value="download" />)</a>
20 -->
21       </td>
22     </tr>
23     <tr class="mailer_fieldrow">
24       <td class="mailer_fieldname" ><var:string label:value="From"/>:</td>
25       <td class="mailer_fieldvalue">
26         <!-- compose link? -->
27         <var:foreach list="envelope.from" item="currentAddress">
28           <a var:href="currentAddressLink">
29             <var:string value="currentAddress"
30                  formatter="context.mailEnvelopeFullAddressFormatter" /></a>
31         </var:foreach>
32       </td>
33     </tr>
34     <tr class="mailer_fieldrow">
35       <td class="mailer_fieldname" ><var:string label:value="Date"/>:</td>
36       <td class="mailer_fieldvalue">
37         <var:string value="envelope.date" 
38                     formatter="context.mailDateFormatter"/>
39       </td>
40     </tr>
41
42     <tr class="mailer_fieldrow">
43       <td class="mailer_fieldname" ><var:string label:value="To"/>:</td>
44       <td class="mailer_fieldvalue">
45         <!-- compose link? -->
46         <var:foreach list="envelope.to" item="currentAddress">
47           <a var:href="currentAddressLink">
48             <var:string value="currentAddress"
49                  formatter="context.mailEnvelopeFullAddressFormatter" /></a>
50         </var:foreach>
51       </td>
52     </tr>
53     <var:if condition="envelope.hasCC">
54       <tr class="mailer_fieldrow">
55         <td class="mailer_fieldname" ><var:string label:value="CC"/>:</td>
56         <td class="mailer_fieldvalue">
57           <!-- compose link? -->
58           <var:foreach list="envelope.cc" item="currentAddress">
59           <a var:href="currentAddressLink">
60               <var:string value="currentAddress"
61                    formatter="context.mailEnvelopeFullAddressFormatter" /></a>
62             <br /> <!-- TODO: better to use li+CSS -->
63           </var:foreach>
64         </td>
65       </tr>
66     </var:if>
67   </table>
68   
69   <div class="mailer_mailcontent">
70     <var:component value="contentViewerComponent"
71                    bodyInfo="contentInfo" 
72                    partPath="contentPartPath" />
73   </div>
74
75 <!-- debug
76     <pre><var:string value="envelope"/></pre>
77     <pre><var:string value="bodyInfo.body"/></pre>
78 -->
79   </div>
80 </div>