Changeset 3076 for WAeUP_SRP/base/skins/waeup_pins
- Timestamp:
- 31 Jan 2008, 18:29:58 (17 years ago)
- Location:
- WAeUP_SRP/base/skins/waeup_pins
- Files:
-
- 2 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/skins/waeup_pins/pins_view.pt
r2766 r3076 56 56 <br /> 57 57 <h3>PIN Batches</h3> 58 <br /> 59 <form action="." method="get"> 58 <form action="." method="post" class="group" 59 tal:define="rows info/batches; 60 choosen_ids info/choosen_ids|python:[]" 61 > 62 <table class="contentListing" width="100%"> 63 <tr tal:repeat="line rows" 64 tal:attributes="class python:test(repeat['line'].even(), 'even ajaxtd', 'odd ajaxtd')"> 65 <span tal:repeat="row line"> 66 <td align="left" valign="middle" style="width: 5px;"> 67 <input type="checkbox" name="ids:list" value="" id="" class="noborder" 68 tal:define="id row" 69 tal:attributes="value id; 70 id python:'cb_' + id; 71 checked python:id in choosen_ids;" 72 /> 73 </td> 74 <td><a href="view" tal:attributes="href string:${context/absolute_url}/${row}"> 75 <strong tal:content="row" /></a> </td> 76 </span> 77 </tr> 78 </table> 79 <table width="100%" cellspacing="0" cellpadding="2" 80 class="folderButtons"> 81 <tr> 82 <td align="left" valign="top" rowspan="3"></td> 83 <td align="left" valign="top"> 84 <input tal:condition="nothing" type="button" value="button_select_all" class="context" 85 onclick="someJavaScriptFunctionThatWillBeReplaced" 86 i18n:attributes="value" 87 tal:attributes="onclick python:'toggleSelect(this, \'%s\', \'%s\')' 88 % (cpsmcat('button_select_all'), cpsmcat('button_deselect_all'))" 89 /> 90 <input type="submit" name="archive:method" value="archive" 91 class="destructive" i18n:attributes="value" 92 tal:attributes="onclick python:'return window.confirm(\'%s\')' % 93 ('confirm archive', )" 94 /> 95 <input type="submit" name="archive_delete:method" value="archive + delete" 96 class="destructive" i18n:attributes="value" 97 tal:attributes="onclick python:'return window.confirm(\'%s\')' % 98 ('confirm archive and delete', )" 99 /> 100 </td> 101 </tr> 102 </table> 103 </form> 104 <form action="." method="get" tal:condition="nothing"> 60 105 <select class="form-element" name=":action" 61 106 tal:attributes="onChange string:location.href='${context/absolute_url}/'+this.options[this.selectedIndex].value" -
WAeUP_SRP/base/skins/waeup_pins/search_pins.py
r2766 r3076 12 12 list Students for ClearanceOfficers 13 13 """ 14 try: 15 from Products.zdb import set_trace 16 except: 17 def set_trace(): 18 pass 14 19 15 20 request = REQUEST … … 111 116 batches = context.objectIds() 112 117 batches.sort() 113 info['batches'] = batches 118 l = [] 119 cols = 6 120 rows,rest = divmod(len(batches),cols) 121 for r in range(rows): 122 von = r*cols 123 l += batches[von:von+cols], 124 if rest: 125 von = r*cols + cols 126 l += batches[von:von+rest], 127 info['batches'] = l 114 128 view = context.pins_view 115 129 if psm == '':
Note: See TracChangeset for help on using the changeset viewer.