/[pac]/pac/PACDefault/skins/pac_templates/actionrecipient_view.pt
ViewVC logotype

Diff of /pac/PACDefault/skins/pac_templates/actionrecipient_view.pt

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by tvon, Sun Oct 12 02:05:46 2003 UTC revision 1.3 by tvon, Mon Oct 27 06:56:10 2003 UTC
# Line 159  Line 159 
159                          </metal:block>                          </metal:block>
160                      </tbody>                      </tbody>
161                  </table>                  </table>
162    
163                    <table width="100%" class="listing"
164                        tal:condition="here/hasContactInformation">
165                        <thead>
166                            <tr>
167                                <th>&nbsp;Contact Information&nbsp;</th>
168                            </tr>
169                        </thead>
170                        <tbody>
171                            <metal:block tal:repeat="id here/hasContactInformation">
172                            <tr class="even"
173                                tal:define="oddrow repeat/id/odd"
174                                tal:attributes="class python:test(oddrow, 'even', 'odd')" >
175                                <td>
176                                    <div class="box"
177                                        tal:define="inf python:getattr(here, id)">
178                                        <!-- XXX
179                                        We are checking for address so we dont end up just rendering a
180                                        comma.  The question is, do we want to display just the
181                                        city/state/zip if that is all tinf is?  I think a test against
182                                        getCity and getState would make a bit more sense in the long
183                                        run.
184                                        -->
185                                        <address tal:condition="inf/getAddress">
186                                            <!-- XXX Not sure if splitting on \n will work properly on windows....? -->
187                                            <div tal:omit-tag=""
188                                                tal:repeat="addy python:inf.getAddress().split('\n')">
189                                                <span tal:content="addy"></span><br/>
190                                            </div>
191                                            <span tal:content="inf/getCity"></span> <span tal:content="inf/getState"></span>, <span tal:content="inf/getZip"></span>
192                                        </address>
193    
194                                        <div tal:condition="inf/getContactName">
195                                            <strong>Contact</strong>:<span tal:content="inf/getContactName"></span>&nbsp;&nbsp;<span tal:content="inf/getContactTitle"></span>
196                                        </div>
197                                        <div tal:condition="inf/getPhone1">
198                                            <strong>Phone</strong>:<span tal:content="inf/getPhone1"></span>
199                                        </div>
200                                        <div tal:condition="inf/getPhone2">
201                                            <strong>Phone (alt)</strong>:<span tal:content="inf/getPhone2"></span>
202                                        </div>
203                                        <div tal:condition="inf/getTtyd">
204                                            <strong>Phone (TTYD)</strong>:<span tal:content="inf/getTtyd"></span>
205                                        </div>
206                                        <div tal:condition="inf/getFax1">
207                                            <strong>Fax</strong>:<span tal:content="inf/getFax1"></span>
208                                        </div>
209                                        <div tal:condition="inf/getFax2">
210                                            <strong>Fax (alt)</strong>:<span tal:content="inf/getFax2"></span>
211                                        </div>
212                                        <div tal:condition="inf/getAdditional">
213                                            <strong>Additional Information</strong>:<br/>
214                                            <div tal:omit-tag=""
215                                                tal:repeat="addy python:inf.getAdditional().split('\n')">
216                                                <span tal:content="addy"></span><br/>
217                                            </div>
218                                        </div>
219                                    </div>
220                                </td>
221                            </tr>
222                            </metal:block>
223                        </tbody>
224                    </table>
225    
226              </div>              </div>
227    
228          </div>          </div>

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26