Changeset 2326
- Timestamp:
- 8 Oct 2007, 08:28:43 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/skins/waeup_default/waeup_search_form.pt
r2308 r2326 4 4 <body> 5 5 <metal:block metal:fill-slot="main"> 6 <tal:block define="SearchableText python:request.get('SearchableText',''); 7 items python:here.waeup_search(query=request.form); 8 items_length python:len(items); 9 title_search request/title_search|nothing; 10 "> 6 11 7 12 8 <div style="text-align:left;" class="group"> … … 20 16 <input type="text" name="SearchableText" id="resultSearchText" 21 17 value="" class="focus" size="40" 22 tal:attributes="value SearchableText"/>18 /> 23 19 <input class="standalone searchButton" type="submit" value="button_ok" 24 20 i18n:attributes="value" /> 25 21 </div> 26 27 22 </form> 28 23 </div> 29 30 <h3 tal:condition="not:title_search"31 i18n:translate="heading_search_results">Search Results</h3>32 <h3 tal:condition="title_search"33 tal:content="title_search">Title for search results</h3>34 24 35 25 36 37 <table width="100%" cellspacing="0" cellpadding="2" 38 class="folderButtons" 39 tal:define="can_add python:checkPerm('Add portal content', here); 40 can_del python:checkPerm('Delete objects', here);"> 41 42 43 44 <thead> 45 <tr><td><strong>Title</strong></td><td><strong>Id</strong></td><td><strong>Type</strong></td> 46 <td><strong>Status</strong></td></tr> 47 </thead> 48 49 <tbody tal:repeat="item items"> 50 51 <tr><td></td><td></td><td></td></tr> 52 53 <tr tal:define="objURL string:${item/getURL}/view; 54 objPath item/getPath; 55 title item/Title; 56 "> 57 <td> 58 <a href="url" 59 tal:attributes="href objURL"> 60 <span tal:content="python: title or '(No title)'" /> 61 </a> 62 </td> 63 64 <td i18n:translate=""> 65 <span tal:replace="item/id" /> 66 </td> 67 68 <td> 69 <span tal:replace="item/portal_type" /> 70 </td> 71 72 <td> 73 <span tal:replace="item/review_state" /> 74 </td> 75 76 </tr> 77 </tbody> 78 </table> 79 <div style="text-align:right;" class="group"> 80 </div> 81 </tal:block> 82 26 27 <tal:block condition="python:request.form.has_key('SearchableText')"> 28 <h3 i18n:translate="heading_search_results">Search Results</h3> 29 30 <tal:block define="items python:here.waeup_search(query=request.form); 31 items_length python:len(items)"> 32 33 <table width="100%" cellspacing="0" cellpadding="2" 34 class="folderButtons" 35 tal:define="can_add python:checkPerm('Add portal content', here); 36 can_del python:checkPerm('Delete objects', here);"> 37 38 39 40 <thead> 41 <tr><td><strong>Title</strong></td><td><strong>Id</strong></td><td><strong>Type</strong></td> 42 <td><strong>Status</strong></td></tr> 43 </thead> 44 45 <tbody tal:repeat="item items"> 46 47 <tr><td></td><td></td><td></td></tr> 48 49 <tr tal:define="objURL string:${item/getURL}/view; 50 objPath item/getPath; 51 title item/Title; 52 "> 53 <td> 54 <a href="url" 55 tal:attributes="href objURL"> 56 <span tal:content="python: title or '(No title)'" /> 57 </a> 58 </td> 59 60 <td i18n:translate=""> 61 <span tal:replace="item/id" /> 62 </td> 63 64 <td> 65 <span tal:replace="item/portal_type" /> 66 </td> 67 68 <td> 69 <span tal:replace="item/review_state" /> 70 </td> 71 72 </tr> 73 </tbody> 74 </table> 75 </tal:block> 76 77 </tal:block> 78 83 79 </metal:block> 84 80 </body>
Note: See TracChangeset for help on using the changeset viewer.