]> err.no Git - scalable-opengroupware.org/blob - UI/Templates/MailerUI/UIxMailView.wox
git-svn-id: http://svn.opengroupware.org/SOGo/inverse/trunk@1180 d1b88da0-ebda-0310...
[scalable-opengroupware.org] / UI / Templates / MailerUI / UIxMailView.wox
1 <?xml version='1.0' standalone='yes'?>
2   <container xmlns="http://www.w3.org/1999/xhtml"
3     xmlns:var="http://www.skyrix.com/od/binding"
4     xmlns:const="http://www.skyrix.com/od/constant"
5     xmlns:uix="OGo:uix"
6     xmlns:rsrc="OGo:url"
7     xmlns:label="OGo:label">
8     <var:if var:condition="mailIsDraft"
9       ><input const:name="editDraftButton" const:id="editDraftButton"
10         type="button" class="button" label:value="Edit Draft..."
11         /></var:if>
12     <table class="mailer_fieldtable">
13       <tr class="mailer_fieldrow">
14         <td class="mailer_fieldname" ><var:string label:value="Subject"/>:</td>
15         <td class="mailer_subjectfieldvalue">
16           <var:string value="clientObject.subject"
17             formatter="context.mailSubjectFormatter"/>
18         </td>
19       </tr>
20       <tr class="mailer_fieldrow">
21         <td class="mailer_fieldname" ><var:string label:value="From"/>:</td>
22         <td class="mailer_fieldvalue">
23           <var:foreach list="clientObject.fromEnvelopeAddresses"
24             item="currentAddress">
25             <a var:href="currentAddressLink">
26               <var:string value="currentAddress"
27                 formatter="context.mailEnvelopeFullAddressFormatter" /></a>
28           </var:foreach>
29         </td>
30       </tr>
31       <tr class="mailer_fieldrow">
32         <td class="mailer_fieldname"><var:string label:value="Date"/>:</td>
33         <td class="mailer_fieldvalue">
34           <var:string value="clientObject.date" 
35             formatter="context.mailDateFormatter"/>
36
37           <!-- TODO:
38           (<a rsrc:href="tbird_073_viewer.png">screenshot</a>)
39           -->
40         </td>
41       </tr>
42
43       <tr class="mailer_fieldrow">
44         <td class="mailer_fieldname"><var:string label:value="To"/>:</td>
45         <td class="mailer_fieldvalue">
46           <var:foreach list="clientObject.toEnvelopeAddresses"
47             item="currentAddress"
48             ><a var:href="currentAddressLink">
49               <var:string value="currentAddress"
50                 formatter="context.mailEnvelopeFullAddressFormatter"
51                 /></a>
52           </var:foreach>
53         </td>
54       </tr>
55       <var:if condition="hasCC">
56         <tr class="mailer_fieldrow">
57           <td class="mailer_fieldname"><var:string label:value="CC"/>:</td>
58           <td class="mailer_fieldvalue">
59             <var:foreach list="clientObject.ccEnvelopeAddresses" 
60               item="currentAddress">
61               <a var:href="currentAddressLink"
62                 ><var:string value="currentAddress"
63                   formatter="context.mailEnvelopeFullAddressFormatter"
64                   /></a>
65               <!-- TODO: better to use li+CSS -->
66             </var:foreach>
67           </td>
68         </tr>
69       </var:if>
70     </table>
71
72     <div class="mailer_mailcontent">
73       <var:component value="contentViewerComponent"
74         bodyInfo="clientObject.bodyStructure" />
75     </div>
76   </container>