Changeset 7459 for main/waeup.sirp/trunk/src/waeup/sirp/accesscodes
- Timestamp:
- 12 Jan 2012, 16:19:57 (13 years ago)
- Location:
- main/waeup.sirp/trunk/src/waeup/sirp/accesscodes
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/accesscodes/browser.py
r7321 r7459 32 32 ) 33 33 from waeup.sirp.accesscodes.catalog import search 34 from waeup.sirp.browser.layout import action 34 35 35 36 grok.context(ISIRPObject) … … 66 67 grok.require('waeup.manageACBatches') 67 68 68 title= 'Create Access Code Batch'69 label = 'Create Access Code Batch' 69 70 pnav = 0 70 71 … … 72 73 'prefix', 'entry_num', 'cost') 73 74 74 @ grok.action('Cancel')75 @action('Cancel') 75 76 def cancel(self, *args, **kw): 76 77 self.flash('Batch creation cancelled.') 77 78 self.redirect(self.url(self.context)) 78 79 79 @ grok.action('Create batch')80 @action('Create batch') 80 81 def createBatch(self, **data): 81 82 creator = self.request.principal.id -
main/waeup.sirp/trunk/src/waeup/sirp/accesscodes/browser.txt
r7372 r7459 58 58 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 59 59 ... 60 <h2>Access Code Batches</h2>60 ...<h2>Access Code Batches</h2> 61 61 ... 62 62 ... The following batches are available: … … 106 106 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 107 107 ... 108 <h2>Access Code Batches</h2>108 ...<h2>Access Code Batches</h2> 109 109 ... 110 110 ... The following batches are available: … … 155 155 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 156 156 ... 157 < li ...>Archived APP-2 (APP-2_archive-...-zope.mgr.csv)</li>157 <div ...>Archived APP-2 (APP-2_archive-...-zope.mgr.csv)</div> 158 158 ... 159 159 … … 165 165 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 166 166 ... 167 < li ...>No batch selected.</li>167 <div ...>No batch selected.</div> 168 168 ... 169 169 … … 345 345 >>> print browser.contents 346 346 <!DOCTYPE html ... 347 <li class="message">APP-1-<10-DIGITS> disabled.</li>347 ...APP-1-<10-DIGITS> disabled.</div> 348 348 ... 349 349 … … 355 355 >>> print browser.contents 356 356 <!DOCTYPE html ... 357 < li ...>APP-1-<10-DIGITS>: Disable transition not allowed.</li>357 <div ...>APP-1-<10-DIGITS>: Disable transition not allowed.</div> 358 358 ... 359 359 … … 365 365 >>> print browser.contents 366 366 <!DOCTYPE html ... 367 <li class="message">APP-1-<10-DIGITS> (re-)enabled.</li>367 ...APP-1-<10-DIGITS> (re-)enabled.</div> 368 368 ... 369 369 … … 375 375 >>> print browser.contents 376 376 <!DOCTYPE html ... 377 < li ...>APP-1-<10-DIGITS>: Re-enable transition not allowed.</li>377 <div ...>APP-1-<10-DIGITS>: Re-enable transition not allowed.</div> 378 378 ... 379 379 -
main/waeup.sirp/trunk/src/waeup/sirp/accesscodes/browser_templates/admintaskacbatches.pt
r5082 r7459 2 2 <a href="" 3 3 tal:attributes="href viewlet/link_target" 4 tal:content="viewlet/link_title">Manage Users</a>4 tal:content="viewlet/link_title">Manage</a> 5 5 </p> -
main/waeup.sirp/trunk/src/waeup/sirp/accesscodes/browser_templates/batchcontainer.pt
r7198 r7459 15 15 </thead> 16 16 <tbody> 17 <tr tal:repeat="batch context/values" 18 tal:attributes="class python: repeat['batch'].odd() and 'even' or 'odd'"> 17 <tr tal:repeat="batch context/values"> 19 18 <td> 20 19 <input type="checkbox" name="batches" value="batch/prefix" … … 42 41 </tbody> 43 42 </table> 44 <input type="submit" name="archive" value="Archive" />45 <input type="submit" name="delete" value="Archive and Delete" />43 <input type="submit" class="btn" name="archive" value="Archive" /> 44 <input type="submit" class="btn" name="delete" value="Archive and Delete" /> 46 45 </form> -
main/waeup.sirp/trunk/src/waeup/sirp/accesscodes/browser_templates/reimportbatchpage.pt
r7198 r7459 1 1 <h3>Reimport Access Code Batches</h3> 2 <p> 3 Please select the files to reimport. Please note, that batches with 4 same name have to be deleted before. 2 <p> Please select the files to reimport. Please note, that batches with same name have to be deleted before. 5 3 </p> 6 4 <form method="POST"> … … 8 6 <thead> 9 7 <tr> 10 <th> </th> 11 <th>File</th> 8 <th> 9 </th> 10 <th>File 11 </th> 12 12 </tr> 13 13 </thead> 14 14 <tbody> 15 <tr tal:repeat="filename context/getImportFiles" 16 tal:attributes="class python: repeat['filename'].odd() and 'even' or 'odd'"> 17 <td> 18 <input type="checkbox" name="filenames" value="filename" 19 tal:attributes="value filename" /> 20 </td> 21 <td tal:content="filename">file.name</td> 15 <tr tal:repeat="filename context/getImportFiles" tal:attributes="class python: repeat['filename'].odd() and 'even' or 'odd'"> <td> 16 <input type="checkbox" name="filenames" value="filename" tal:attributes="value filename" /> </td> 17 <td tal:content="filename">file.name</td> 22 18 </tr> 23 19 <tr tal:condition="python: len(list(context.getImportFiles())) == 0"> 24 <td colspan="5"><b>No import batches available</b></td>20 <td colspan="5"><b>No import batches available</b></td> 25 21 </tr> 26 22 </tbody> 27 23 </table> 28 29 <input type="submit" name="cancel" value="Cancel" /> 30 <input type="submit" name="reimport" value="Reimport" /> 24 <input type="submit" class="btn primary" name="reimport" value="Reimport" /> 25 <input type="submit" class="btn" name="cancel" value="Cancel" /> 31 26 </form> -
main/waeup.sirp/trunk/src/waeup/sirp/accesscodes/browser_templates/searchpage.pt
r7198 r7459 3 3 <br /> 4 4 5 <input type="submit" name="search" value="Search" />5 <input type="submit" class="btn primary" name="search" value="Search" /> 6 6 for access codes 7 7 … … 46 46 </tbody> 47 47 </table> 48 <div class="actionButtons">49 <input type="submit" name="disable" value="Disable ACs" />50 <input type="submit" name="enable" value="Enable ACs" />48 <div> 49 <input type="submit" class="btn" name="disable" value="Disable ACs" /> 50 <input type="submit" class="btn" name="enable" value="Enable ACs" /> 51 51 </div> 52 52
Note: See TracChangeset for help on using the changeset viewer.