Changeset 9641 for main/waeup.kofa
- Timestamp:
- 15 Nov 2012, 22:10:45 (12 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/browser/templates/datacenterlogspage.pt
r8529 r9641 34 34 <form method="POST"> 35 35 <button class="btn primary"> 36 <img tal:attributes="src static/actionicon_reload.png" /> 37 <span i18n:translate="">Reload Page</span> 36 <span i18n:translate="">Reload page</span> 38 37 </button> 39 38 <input i18n:translate="" type="submit" class="btn" name="back" -
main/waeup.kofa/trunk/src/waeup/kofa/browser/templates/reportscontainercreate.pt
r9633 r9641 1 <div i18n:domain="waeup.kofa"> 2 <h2 i18n:translate="">Create Report</h2> 3 <div class="row"> 4 <div class="span8 columns"> 5 <div class="span8 columns"> 6 <p i18n:translate=""> 7 Here you can create reports representing portal data. 8 </p> 9 <p i18n:translate=""> 10 Please pick the type of report you want to create from the 11 selection below. 12 </p> 13 <p i18n:translate=""> 14 Afterwards you can configure the report (do the settings). 15 The report data will be calculated and then made available 16 for you to view/download. 17 </p> 1 <form i18n:domain="waeup.kofa" method="POST"> 2 <p i18n:translate=""> 3 Here you can create reports representing portal data. 4 Please pick the type of report you want to create from the 5 selection below. 6 Afterwards you can configure the report (do the settings). 7 The report data will be calculated and then made available 8 for you to view/download. 9 </p> 10 <br /> 11 <div class="clearfix"> 12 <label for="generator">Report Type:</label> 13 <div class="input"> 14 <select name="generator"> 15 <span tal:repeat="items view/creators" tal:omit-tag=""> 16 <option 17 tal:define="name python: items[1]; title python: items[0]" 18 tal:attributes="value name"> 19 <span tal:replace="title">TITLE</span> 20 </option> 21 </span> 22 </select> 23 <div class="help-inline" i18n:translate=""> 24 Type of report to create 18 25 </div> 19 <form method="POST">20 <fieldset>21 22 <div class="clearfix">23 <label for="generator">Report Type:</label>24 <div class="input">25 <select name="generator">26 <span tal:repeat="items view/creators" tal:omit-tag="">27 <option28 tal:define="name python: items[1]; title python: items[0]"29 tal:attributes="value name">30 <span tal:replace="title">TITLE</span>31 </option>32 </span>33 </select>34 <span class="help-inline" i18n:translate="">35 Type of report to create36 </span>37 </div>38 39 </div>40 <div class="input">41 <input i18n:translate="" type="submit" class="btn primary"42 name="START_GENERATOR" value="Configure" />43 </div>44 45 </fieldset>46 </form>47 48 26 </div> 49 27 </div> 50 </div> 28 <div class="input"> 29 <input i18n:translate="" type="submit" class="btn primary" 30 name="START_GENERATOR" value="Configure" /> 31 <a class="btn secondary" href="" 32 tal:attributes="href python:view.url(context)">Cancel</a> 33 </div> 34 </form> -
main/waeup.kofa/trunk/src/waeup/kofa/browser/templates/reportscontainerpage.pt
r9640 r9641 1 <h2>Reports</h2> 2 <div class="span12"> 3 <form method="POST"> 4 <a href="" class="btn primary">Reload</a> 5 <a href="create" class="btn secondary">Create new</a> 6 </form> 7 </div> 8 <hr /> 9 <div tal:repeat="entry view/entries" class="row"> 1 <form method="POST" i18n:domain="waeup.kofa"> 2 <table> 3 <thead> 4 <tr> 5 <th i18n:translate="">Report Number</th> 6 <th i18n:translate="">Description</th> 7 <th i18n:translate="">Status</th> 8 <th> </th> 9 </tr> 10 </thead> 11 <tbody> 12 <tr tal:repeat="entry view/entries"> 13 <td> 14 <span tal:replace="python: entry[0]">12</span> 15 </td> 16 <td> 17 <span tal:replace="python: entry[1]">REPORT DESCRIPTION</span> 18 </td> 19 <td> 20 <span tal:replace="python: entry[2]">STATUS</span> 21 </td> 22 <td> 23 <form method="POST"> 24 <input type="hidden" name="job_id" 25 tal:attributes="value python: entry[0]" /> 26 <input type="submit" class="btn secondary" 27 name="DISCARD" value="Discard" 28 tal:condition="python: entry[3]" /> 29 <input type="submit" class="btn primary" 30 name="DOWNLOAD" value="Download" 31 tal:condition="python: entry[4]" /> 32 </form> 33 </td> 34 <td> 35 </td> 36 </tr> 37 </tbody> 38 </table> 39 10 40 <div class="span12"> 11 <form method="POST"> 12 <div class="span10"> 13 <b>Report <span tal:replace="python: entry[0]">12</span>:</b> 14 <span tal:replace="python: entry[1]">Report Description</span> 15 </div> 16 <div class="span10"> 17 status: 18 <b><span tal:replace="python: entry[2]">status</span></b> 19 </div> 20 <div class="span10"> 21 <input type="submit" class="btn secondary" 22 name="DISCARD" value="Discard" 23 tal:condition="python: entry[4]" /> 24 <input type="submit" class="btn secondary" 25 name="DOWNLOAD" value="Download" 26 tal:condition="python: entry[4]" /> 27 </div> 28 <div class="span6"> 29 <input type="hidden" name="job_id" 30 tal:attributes="value python: entry[0]" /> 31 </div> 32 <!-- span tal:replace="entry">ENRY</span --> 33 </form> 34 <hr /> 41 <a href="" class="btn primary">Reload page</a> 42 <a href="create" class="btn secondary">Create new report</a> 35 43 </div> 36 </div> 37 38 <div class="span12"> 39 <form method="POST"> 40 <a href="" class="btn primary">Reload</a> 41 <a href="create" class="btn secondary">Create new</a> 42 </form> 43 </div> 44 </form> -
main/waeup.kofa/trunk/src/waeup/kofa/reports.py
r9639 r9641 90 90 91 91 failed = schema.Bool( 92 title = u"`True` if fthe job finished and didn't provide a report.",92 title = u"`True` if the job finished and didn't provide a report.", 93 93 default = None, 94 94 ) -
main/waeup.kofa/trunk/src/waeup/kofa/students/browser_templates/studentreportgeneratorpage.pt
r9633 r9641 1 <div i18n:domain="waeup.kofa"> 2 <h2 i18n:translate="">Create Report: Students by Session</h2> 3 4 <div class="row"> 5 <div class="span8 columns"> 6 <div class="span8 columns"> 7 <p i18n:translate=""> 8 Please pick the session for which the report should be 9 generated. 10 </p> 11 <p i18n:translate=""> 12 The report data will be calculated and then made available 13 for you to view/download. 14 </p> 1 <form i18n:domain="waeup.kofa" method="POST"> 2 <p i18n:translate=""> 3 Please pick the session for which the report should be 4 generated. 5 The report data will be calculated and then made available 6 for you to view/download. 7 </p> 8 <br /> 9 <div class="clearfix"> 10 <label for="session">Academic Session:</label> 11 <div class="input"> 12 <select name="session"> 13 <span tal:repeat="items view/sessions" tal:omit-tag=""> 14 <option 15 tal:define="name python: items[1]; title python: items[0]" 16 tal:attributes="value name"> 17 <span tal:replace="title">TITLE</span> 18 </option> 19 </span> 20 </select> 21 <div class="help-inline" i18n:translate=""> 22 Academic session to report 15 23 </div> 16 <form method="POST">17 <fieldset>18 19 <div class="clearfix">20 <label for="session">Academic Session:</label>21 <div class="input">22 <select name="session">23 <span tal:repeat="items view/sessions" tal:omit-tag="">24 <option25 tal:define="name python: items[1]; title python: items[0]"26 tal:attributes="value name">27 <span tal:replace="title">TITLE</span>28 </option>29 </span>30 </select>31 <span class="help-inline" i18n:translate="">32 Academic session to report33 </span>34 </div>35 36 </div>37 <div class="input">38 <input i18n:translate="" type="submit" class="btn primary"39 name="CREATE" value="Create" />40 <a class="btn secondary" href=""41 tal:attributes="href view/parent_url">Abort</a>42 </div>43 44 </fieldset>45 </form>46 47 24 </div> 48 25 </div> 26 <div class="input"> 27 <input i18n:translate="" type="submit" class="btn primary" 28 name="CREATE" value="Create" /> 29 <a class="btn secondary" href="" 30 tal:attributes="href view/parent_url">Cancel</a> 31 </div> 32 </form> 49 33 50 </div> -
main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_browser.py
r9569 r9641 22 22 import tempfile 23 23 import pytz 24 import base64 24 25 from datetime import datetime, timedelta 25 26 from StringIO import StringIO … … 438 439 # manufacturers to support a "logout" user interface element ... 439 440 self.assertTrue('Manager' in self.browser.contents) 441 442 def test_basic_auth_base64(self): 443 auth_token = base64.b64encode('mgr:mgrpw') 444 self.browser.addHeader('Authorization', 'Basic %s' % auth_token) 445 self.browser.open(self.manage_container_path) 446 self.assertEqual(self.browser.headers['Status'], '200 Ok') 440 447 441 448 def test_manage_access(self):
Note: See TracChangeset for help on using the changeset viewer.