Changeset 138 for waeup_product/trunk


Ignore:
Timestamp:
2 Nov 2005, 05:01:40 (19 years ago)
Author:
joachim
Message:

=henriks table view

Location:
waeup_product/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • waeup_product/trunk/skins/waeup_default/layout_waeup_view.pt

    r137 r138  
    1 <metal:block use-macro="here/waeup_layout_lib/macros/div_view" />
     1<metal:block use-macro="here/waeup_layout_lib/macros/table_view" />
  • waeup_product/trunk/skins/waeup_default/temporary_view_all.pt

    r137 r138  
    1818    <h1> <span tal:content="context/title_or_id" /></h1>     
    1919 
    20     <p>This is a temporary view of the object with id <em tal:content="here/id" /> which can be customized according to the customers needs.</p>       
     20    <p>This is a temporary view of the object of type <em tal:content="here/portal_type" /> with id <em tal:content="here/id" /> which can be customized according to the customers needs.</p>       
    2121 
    2222    <br />
     
    3434  <tal:block condition="python: len(items)">
    3535    <p tal:repeat="item items">
    36           <span tal:content="item/portal_type" />   
    3736            <a href="jamb"
    3837               tal:attributes="href item/absolute_url"
    3938               tal:content="item/title_or_id"></a>
     39            (Type: <span tal:content="item/portal_type" />)
    4040      </p>
    4141      </tal:block>
    4242      <tal:block condition="python: not len(items)">
    43         (No items contained here !)
     43        (No items contained here!)
    4444      </tal:block>
    4545 
  • waeup_product/trunk/skins/waeup_default/waeup_layout_lib.pt

    r137 r138  
    2929<metal:block define-macro="table_view"
    3030             tal:define="layout options/layout">
    31   <table>
     31<table border="1">
    3232    <tal:block repeat="row layout/rows">
    3333      <tr>
     
    4040                 >
    4141              <tal:block condition="widget/label">
    42                 <td class="dlabel" i18n:translate="" tal:condition="widget/is_i18n"
    43                     tal:content="widget/label">label</td>
    44                 <td class="dlabel" tal:condition="not:widget/is_i18n"
    45                     tal:content="widget/label">label</td>
     42              <td valign="top">
     43                <span class="dlabel" i18n:translate="" tal:condition="widget/is_i18n"
     44                    tal:content="widget/label">label</span>
     45                <span class="dlabel" tal:condition="not:widget/is_i18n"
     46                    tal:content="widget/label">label</span>
     47              </td>
    4648              </tal:block>
    47               <td tal:content="structure cell/widget_rendered"></td>
     49              <tal:block condition="not: widget/label">
     50              <td>
     51                <span class="dlabel" valign="top"> no label </span>
     52              </td>
     53              </tal:block>             
     54              <td>
     55               <span tal:condition="cell" tal:content="structure cell/widget_rendered"></span>
     56               <span tal:condition="not:cell/widget_rendered"> none </span>
     57             </td>
    4858            </div>
    4959          </tal:block>
Note: See TracChangeset for help on using the changeset viewer.