Ignore:
Timestamp:
02/20/10 14:03:38 (2 years ago)
Author:
takanori
Message:

change to plone3 style template code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Products.ATGoogleMaps/trunk/Products/ATGoogleMaps/skins/ATGoogleMaps/gmarker_view.pt

    r265 r270  
    1717  <tal:main-macro metal:define-macro="main"> 
    1818 
    19     <div metal:use-macro="context/document_actions/macros/document_actions"> 
    20       Document actions (print, sendto etc) 
    21     </div> 
     19    <div tal:replace="structure provider:plone.abovecontenttitle" /> 
    2220 
    23     <h1 tal:content="context/pretty_title_or_id" class="documentFirstHeading"> 
    24       Title or id 
     21    <h1 class="documentFirstHeading">  
     22      <metal:field use-macro="python:context.widget('title', mode='view')"> 
     23        Title 
     24      </metal:field> 
    2525    </h1> 
    2626 
    27     <div metal:use-macro="context/document_byline/macros/byline"> 
    28       Get the byline - contains details about author and modification date. 
    29     </div> 
     27    <div tal:replace="structure provider:plone.belowcontenttitle" /> 
     28 
     29    <p class="documentDescription"> 
     30      <metal:field use-macro="python:context.widget('description', mode='view')"> 
     31        Description 
     32      </metal:field> 
     33    </p> 
     34 
     35    <div tal:replace="structure provider:plone.abovecontentbody" /> 
    3036 
    3137    <div style="float: right; margin: 5px;" 
     
    4551 
    4652    <metal:gmarker_macro define-macro="gmarker"> 
    47       <div class="documentDescription" 
    48            tal:content="context/Description" 
    49            tal:condition="context/Description"> 
    50         Description 
    51       </div> 
    52  
    5353      <div tal:condition="context/address"> 
    5454        <label i18n:translate="label_address">Address</label> 
    55         <span tal:replace="context/address" /> 
     55        <metal:field use-macro="python:context.widget('address', mode='view')"> 
     56          Address 
     57        </metal:field> 
    5658      </div> 
    5759 
    5860      <div tal:condition="context/phone"> 
    5961        <label i18n:translate="label_phone">Phone</label> 
    60         <span tal:replace="context/phone" /> 
     62        <metal:field use-macro="python:context.widget('phone', mode='view')"> 
     63          Phone 
     64        </metal:field> 
    6165      </div> 
    6266    </metal:gmarker_macro> 
     
    6468    <div tal:condition="context/url"> 
    6569      <label i18n:translate="URL">URL</label> 
     70      <metal:field use-macro="python:context.widget('url', mode='view')"> 
     71        Phone 
     72      </metal:field> 
    6673      <a href="" 
    6774         tal:content="context/url" 
     
    8188      show related items if they exist 
    8289    </div> 
    83  
     90     
     91    <div tal:replace="structure provider:plone.belowcontentbody" /> 
    8492  </tal:main-macro> 
    8593</metal:main> 
Note: See TracChangeset for help on using the changeset viewer.