Ignore:
Timestamp:
20 Jan 2012, 09:26:25 (13 years ago)
Author:
Henrik Bettermann
Message:

Tweak pages for anonymous users with mobile browsers.

Location:
main/waeup.sirp/trunk/src/waeup/sirp
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/applicants/browser.py

    r7489 r7493  
    6565    def update(self):
    6666        super(ApplicantsRootPage, self).update()
    67         datatable.need()
     67        #datatable.need()
    6868        return
    6969
     
    227227    @property
    228228    def label(self):
    229         return "Applicants Container: %s" % self.context.title
     229        return "%s" % self.context.title
    230230
    231231class ApplicantsContainerManageFormPage(SIRPEditFormPage):
  • main/waeup.sirp/trunk/src/waeup/sirp/applicants/browser_templates/applicantsrootpage.pt

    r7464 r7493  
    1 <table class="display dataTable">
     1<table>
    22  <thead>
    33    <tr>
    4       <th>Year</th><th>Code</th><th>Title</th>
     4      <th>Year</th><th>Code</th><th>Title</th><th>Application Period</th>
    55    </tr>
    66  </thead>
     
    99      <td tal:content="entry/year">Year
    1010      </td>     
     11      <td tal:content="entry/__name__">Code
     12      </td>
    1113      <td>
    1214             <a href=""
    1315           tal:attributes="href python:view.url(entry)"
    14            tal:content="entry/__name__">Code</a>
     16           tal:content="entry/title">Title</a>
    1517      </td>
    16       <td tal:content="entry/title">Title
     18      <td>
     19      <span tal:content="python: layout.formatDate(entry.startdate)">Start</span>
     20      -
     21      <span tal:content="python: layout.formatDate(entry.enddate)">End</span>
    1722      </td>
    1823    </tr>
  • main/waeup.sirp/trunk/src/waeup/sirp/browser/layout.py

    r7459 r7493  
    285285            return None
    286286
     287    def formatDate(self,dateobj):
     288        if isinstance(dateobj, date):
     289            return dateobj.strftime("%d/%m/%Y")
     290        else:
     291            return None
     292
    287293    def update(self):
    288294        """Include the resources required by the chosen skin/theme.
  • main/waeup.sirp/trunk/src/waeup/sirp/browser/static/mobile.css

    r7465 r7493  
    44
    55body {
    6   padding-top: 70px;
     6  padding-top: 100px;
    77}
    88
    99select {
    10   width: 60px;
     10  width: 50px;
    1111}
    1212
    1313.dataTables_length {
    14     float: left;
    15     width: 40%;
     14  float: left;
     15  width: 50%;
    1616}
    1717
    1818.dataTables_filter {
    19     float: right;
    20     text-align: right;
    21     width: 60%;
     19  float: right;
     20  text-align: right;
     21  width: 50%;
    2222}
     23
     24.topbar h3 a, .topbar .brand  {
     25  margin-left: -25px;
     26  padding-bottom: 5px;
     27  padding-left: 20px;
     28  padding-right: 20px;
     29  padding-top: 2px;
     30}
     31
     32input, textarea,
     33textarea.span9 {
     34  width: 70%;
     35}
  • main/waeup.sirp/trunk/src/waeup/sirp/browser/templates/studentsitelayout.pt

    r7469 r7493  
    8383        </div>
    8484        <div class="footer">
    85           <p class="pull-right"><a href="#">Back to top</a></p>
    8685          <p>
    8786            Student Information and Registration Portal<br />
Note: See TracChangeset for help on using the changeset viewer.