Ignore:
Timestamp:
15 Nov 2012, 22:10:45 (12 years ago)
Author:
Henrik Bettermann
Message:

Rework pagetemplates.

Location:
main/waeup.kofa/trunk/src/waeup/kofa/students
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • 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
    1523      </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                 <option
    25                     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 report
    33             </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 
    4724    </div>
    4825  </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>
    4933
    50 </div>
  • main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_browser.py

    r9569 r9641  
    2222import tempfile
    2323import pytz
     24import base64
    2425from datetime import datetime, timedelta
    2526from StringIO import StringIO
     
    438439        # manufacturers to support a "logout" user interface element ...
    439440        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')
    440447
    441448    def test_manage_access(self):
Note: See TracChangeset for help on using the changeset viewer.