]> err.no Git - scalable-opengroupware.org/blob - UIxMailView.wox
a91268aea3e8d9c60ef016ffbab74dd351f08898
[scalable-opengroupware.org] / 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="messageSubject"/>
17         </td>
18       </tr>
19       <tr class="mailer_fieldrow">
20         <td class="mailer_fieldname" ><var:string label:value="From"/>:</td>
21         <td class="mailer_fieldvalue">
22           <var:foreach list="clientObject.fromEnvelopeAddresses"
23             item="currentAddress">
24             <a var:href="currentAddressLink">
25               <var:string value="currentAddress"
26                 formatter="context.mailEnvelopeFullAddressFormatter" /></a>
27           </var:foreach>
28         </td>
29       </tr>
30       <tr class="mailer_fieldrow">
31         <td class="mailer_fieldname"><var:string label:value="Date"/>:</td>
32         <td class="mailer_fieldvalue">
33           <var:string value="clientObject.date" 
34             formatter="context.mailDateFormatter"/>
35
36           <!-- TODO:
37           (<a rsrc:href="tbird_073_viewer.png">screenshot</a>)
38           -->
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           <var:foreach list="clientObject.toEnvelopeAddresses"
46             item="currentAddress"
47             ><a var:href="currentAddressLink">
48               <var:string value="currentAddress"
49                 formatter="context.mailEnvelopeFullAddressFormatter"
50                 /></a>
51           </var:foreach>
52         </td>
53       </tr>
54       <var:if condition="hasCC">
55         <tr class="mailer_fieldrow">
56           <td class="mailer_fieldname"><var:string label:value="CC"/>:</td>
57           <td class="mailer_fieldvalue">
58             <var:foreach list="clientObject.ccEnvelopeAddresses" 
59               item="currentAddress">
60               <a var:href="currentAddressLink"
61                 ><var:string value="currentAddress"
62                   formatter="context.mailEnvelopeFullAddressFormatter"
63                   /></a>
64               <!-- TODO: better to use li+CSS -->
65             </var:foreach>
66           </td>
67         </tr>
68       </var:if>
69       <var:if condition="hasReplyTo">
70         <tr class="mailer_fieldrow">
71           <td class="mailer_fieldname"><var:string label:value="Reply-To"/>:</td>
72           <td class="mailer_fieldvalue">
73             <var:foreach list="clientObject.replyToEnvelopeAddresses" 
74               item="currentAddress">
75               <a var:href="currentAddressLink"
76                 ><var:string value="currentAddress"
77                   formatter="context.mailEnvelopeFullAddressFormatter"
78                   /></a>
79             </var:foreach>
80           </td>
81         </tr>
82       </var:if>
83     </table>
84
85     <div class="mailer_mailcontent">
86       <var:component value="contentViewerComponent"
87         bodyInfo="clientObject.bodyStructure" />
88     </div>
89
90   </container>