Changeset 7449


Ignore:
Timestamp:
11 Jan 2012, 09:49:58 (13 years ago)
Author:
Henrik Bettermann
Message:

Backup

Location:
main/waeup.sirp/branches/henrik-bootstrap/src/waeup/sirp
Files:
18 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/branches/henrik-bootstrap/src/waeup/sirp/applicants/browser.py

    r7438 r7449  
    3838from waeup.sirp.browser.interfaces import ICaptchaManager
    3939from waeup.sirp.browser.breadcrumbs import Breadcrumb
    40 from waeup.sirp.browser.layout import NullValidator, jsaction
     40from waeup.sirp.browser.layout import NullValidator, jsaction, action
    4141from waeup.sirp.browser.pages import add_local_role, del_local_roles
    4242from waeup.sirp.browser.resources import datepicker, tabs, datatable, warning
     
    120120        return
    121121
    122     @grok.action('Add applicants container', validator=NullValidator)
     122    @action('Add applicants container', validator=NullValidator)
    123123    def addApplicantsContainer(self, **data):
    124124        self.redirect(self.url(self.context, '@@add'))
    125125        return
    126126
    127     @grok.action('Cancel', validator=NullValidator)
     127    @action('Cancel', validator=NullValidator)
    128128    def cancel(self, **data):
    129129        self.redirect(self.url(self.context))
    130130        return
    131131
    132     @grok.action('Add local role', validator=NullValidator)
     132    @action('Add local role', validator=NullValidator)
    133133    def addLocalRole(self, **data):
    134134        return add_local_role(self,2, **data)
    135135
    136     @grok.action('Remove selected local roles')
     136    @action('Remove selected local roles')
    137137    def delLocalRoles(self, **data):
    138138        return del_local_roles(self,2,**data)
     
    156156        return super(ApplicantsContainerAddFormPage, self).update()
    157157
    158     @grok.action('Add applicants container')
     158    @action('Add applicants container')
    159159    def addApplicantsContainer(self, **data):
    160160        year = data['year']
     
    178178        return
    179179
    180     @grok.action('Cancel', validator=NullValidator)
     180    @action('Cancel', validator=NullValidator)
    181181    def cancel(self, **data):
    182182        self.redirect(self.url(self.context, '@@manage') + '#tab-1')
     
    280280        return get_users_with_local_roles(self.context)
    281281
    282     @grok.action('Save')
     282    @action('Save')
    283283    def apply(self, **data):
    284284        self.applyData(self.context, **data)
     
    310310        return
    311311
    312     @grok.action('Add applicant', validator=NullValidator)
     312    @action('Add applicant', validator=NullValidator)
    313313    def addApplicant(self, **data):
    314314        self.redirect(self.url(self.context, 'addapplicant'))
    315315        return
    316316
    317     @grok.action('Cancel', validator=NullValidator)
     317    @action('Cancel', validator=NullValidator)
    318318    def cancel(self, **data):
    319319        self.redirect(self.url(self.context))
    320320        return
    321321
    322     @grok.action('Add local role', validator=NullValidator)
     322    @action('Add local role', validator=NullValidator)
    323323    def addLocalRole(self, **data):
    324324        return add_local_role(self,3, **data)
    325325
    326     @grok.action('Remove selected local roles')
     326    @action('Remove selected local roles')
    327327    def delLocalRoles(self, **data):
    328328        return del_local_roles(self,3,**data)
     
    345345        return "Applicants Container: %s" % self.context.title
    346346
    347     @grok.action('Create application record')
     347    @action('Create application record')
    348348    def addApplicant(self, **data):
    349349        applicant = createObject(u'waeup.Applicant')
     
    671671            dict(name=x, title=y) for x, y in allowed_transitions]
    672672
    673     @grok.action('Save')
     673    @action('Save')
    674674    def save(self, **data):
    675675        form = self.request.form
     
    739739    # We explicitely want the forms to be validated before payment tickets
    740740    # can be created. If no validation is requested, use
    741     # 'validator=NullValidator' in the grok.action directive
    742     @grok.action('Add online payment ticket')
     741    # 'validator=NullValidator' in the action directive
     742    @action('Add online payment ticket')
    743743    def addPaymentTicket(self, **data):
    744744        self.redirect(self.url(self.context, '@@addafp'))
     
    808808    # We explicitely want the forms to be validated before payment tickets
    809809    # can be created. If no validation is requested, use
    810     # 'validator=NullValidator' in the grok.action directive
    811     @grok.action('Add online payment ticket')
     810    # 'validator=NullValidator' in the action directive
     811    @action('Add online payment ticket')
    812812    def addPaymentTicket(self, **data):
    813813        self.redirect(self.url(self.context, '@@addafp'))
     
    820820        return
    821821
    822     @grok.action('Save')
     822    @action('Save')
    823823    def save(self, **data):
    824824        if self.passport_changed is False:  # False is not None!
     
    828828        return
    829829
    830     @grok.action('Final Submit')
     830    @action('Final Submit')
    831831    def finalsubmit(self, **data):
    832832        if self.passport_changed is False:  # False is not None!
     
    903903        return
    904904
    905     @grok.action('Get login credentials')
     905    @action('Get login credentials')
    906906    def register(self, **data):
    907907        if not self.captcha_result.is_valid:
  • main/waeup.sirp/branches/henrik-bootstrap/src/waeup/sirp/applicants/browser_templates/applicantdisplaypage.pt

    r7448 r7449  
    1313<img src="" tal:attributes="src view/passport_url" />
    1414
    15 <table class="zebra">
     15<table class="form-table">
    1616  <tbody>
    1717    <tal:block repeat="widget view/widgets">
     
    4444</table>
    4545<h3 i18n:translate="">Acceptance Fee Payment Tickets</h3>
    46 <table class="zebra">
     46<table>
    4747  <thead>
    4848    <tr>
  • main/waeup.sirp/branches/henrik-bootstrap/src/waeup/sirp/applicants/browser_templates/applicanteditpage.pt

    r7447 r7449  
    1414  </div>
    1515
    16   <div class="form-status"
     16  <div class="alert-message error"
    1717    tal:define="status view/status"
    1818    tal:condition="status">
     
    2323  </div>
    2424
    25   <table class="zebra">
     25  <table class="form-table">
    2626    <tbody>
    2727      <tal:block repeat="widget view/widgets">
    2828        <tr>
    29           <td class="label">
    30             <label tal:attributes="for widget/name">
    31               <span class="required" tal:condition="widget/required">*</span>
    32               <span i18n:translate="" tal:content="widget/label">label</span>:
    33             </label>
     29          <td class="fieldname">
     30            <span tal:condition="widget/required">*</span>
     31            <span i18n:translate="" tal:content="widget/label">label</span>:
    3432          </td>
    35           <td class="field">
    36             <span class="widget" tal:content="structure widget">
     33          <td>
     34            <span tal:content="structure widget">
    3735              <input type="text" />
    3836            </span>
     
    4139            </tal:error>
    4240            <tal:hint tal:condition="widget/hint">
    43               <span class="hint" tal:content="structure widget/hint">hint</span>
     41              <span tal:content="structure widget/hint">hint</span>
    4442            </tal:hint>
    4543          </td>
     
    4745      </tal:block>
    4846      <tr>
    49         <td class="label">
    50           <label i18n:translate="" for="form.passport">Photograph</label>
     47        <td class="fieldname">
     48          Photograph
    5149        </td>
    52         <td class="field">
    53           <span class="widget">
    54             <img src="passport.jpg" /><br />
    55             <input type="file" name="form.passport" />
    56             <br />
    57             <span i18n:translate="">
    58               Max. file size:
    59               <span tal:replace="view/max_upload_size">10 KB</span>
    60             </span>
     50        <td>
     51          <img src="passport.jpg" /><br />
     52          <input type="file" name="form.passport" />
     53          <br />
     54          <span i18n:translate="">
     55            Max. file size:
     56            <span tal:replace="view/max_upload_size">10 KB</span>
    6157          </span>
    6258      </tr>
    6359      <tr tal:condition="view/manage_applications">
    64         <td class="label"><label>Password:</label></td>
     60        <td class="fieldname">Password:</td>
    6561        <td>
    6662          <input name="password" type="password"  />
     
    6864      </tr>
    6965      <tr tal:condition="view/manage_applications">
    70         <td class="label"><label>Retype password:</label></td>
     66        <td class="fieldname">Retype password:</td>
    7167        <td>
    7268          <input name="control_password" type="password" />
     
    7470      </tr>
    7571      <tr tal:condition="view/manage_applications">
    76         <td class="label"><label>Application Transition:</label></td>
     72        <td class="fieldname">Application Transition:</td>
    7773        <td>
    7874          <select id="transition" name="transition">
     
    8884
    8985  <div tal:condition="not: view/manage_applications">
    90     <input class="checkboxType" id="confirm_passport" name="confirm_passport"
     86    <input id="confirm_passport" name="confirm_passport"
    9187           type="checkbox" value="True"/>
    9288    I confirm that the Passport Photograph uploaded on this form is a
     
    9490  </div>
    9591
    96   <div class="actionButtons" tal:condition="view/availableActions">
     92  <div tal:condition="view/availableActions">
    9793    <span tal:repeat="action view/actions"
    9894          tal:omit-tag="">
     
    105101  <h3 i18n:translate="">Acceptance Fee Payment Tickets</h3>
    106102
    107   <table class="display dataTableManage">
     103  <table>
    108104    <thead>
    109105    <tr>
     
    136132  </table>
    137133
    138   <div class="actionButtons" tal:condition="view/availableActions">
     134  <div tal:condition="view/availableActions">
    139135    <span tal:repeat="action view/actions"
    140136          tal:omit-tag="">
  • main/waeup.sirp/branches/henrik-bootstrap/src/waeup/sirp/applicants/browser_templates/applicantregister.pt

    r7381 r7449  
    11<form action="." tal:attributes="action request/URL" method="post"
    2       class="edit-form" enctype="multipart/form-data">
     2      enctype="multipart/form-data">
    33
    44  <h2 i18n:translate=""
     
    66    tal:content="view/label">Label</h2>
    77
    8   <div class="form-status"
     8  <div class="alert-message error"
    99    tal:define="status view/status"
    1010    tal:condition="status">
     
    1515  </div>
    1616
    17   <table class="zebra">
     17  <table class="form-table">
    1818    <tbody>
    1919      <tal:block repeat="widget view/widgets">
    2020        <tr>
    21           <td class="label">
    22             <label tal:attributes="for widget/name">
    23               <span class="required" tal:condition="widget/required">*</span>
    24               <span i18n:translate="" tal:content="widget/label">label</span>:
    25             </label>
     21          <td class="fieldname">
     22            <span tal:condition="widget/required">*</span>
     23            <span i18n:translate="" tal:content="widget/label">label</span>:
    2624          </td>
    27           <td class="field">
    28             <span class="widget" tal:content="structure widget">
     25          <td>
     26            <span tal:content="structure widget">
    2927              <input type="text" />
    3028            </span>
     
    3331            </tal:error>
    3432            <tal:hint tal:condition="widget/hint">
    35               <span class="hint" tal:content="structure widget/hint">hint</span>
     33              <span tal:content="structure widget/hint">hint</span>
    3634            </tal:hint>
    3735          </td>
     
    5452    credentials will be sent to the address provided.
    5553  </p>
    56   <div class="actionButtons" tal:condition="view/availableActions">
     54  <div tal:condition="view/availableActions">
    5755    <input tal:repeat="action view/actions"
    5856           tal:replace="structure action/render"
  • main/waeup.sirp/branches/henrik-bootstrap/src/waeup/sirp/applicants/browser_templates/applicantscontaineraddpage.pt

    r6756 r7449  
    66    tal:content="view/label">Label</h2>
    77
    8   <div class="form-status"
     8  <div class="alert-message error"
    99    tal:define="status view/status"
    1010    tal:condition="status">
     
    1515  </div>
    1616
    17   <table class="zebra">
     17  <table class="form-table">
    1818    <tbody>
    1919      <tal:block repeat="widget view/widgets">
    2020        <tr>
    21           <td class="label">
    22             <label tal:attributes="for widget/name">
    23               <span class="required" tal:condition="widget/required">*</span>
    24               <span i18n:translate="" tal:content="widget/label">label</span>:
    25             </label>
     21          <td class="fieldname">
     22            <span tal:condition="widget/required">*</span>
     23            <span i18n:translate="" tal:content="widget/label">label</span>:
    2624          </td>
    27           <td class="field">
    28             <span class="widget" tal:content="structure widget">
     25          <td>
     26            <span tal:content="structure widget">
    2927              <input type="text" />
    3028            </span>
     
    3331            </tal:error>
    3432            <tal:hint tal:condition="widget/hint">
    35               <span class="hint" tal:content="structure widget/hint">hint</span>
     33              <span tal:content="structure widget/hint">hint</span>
    3634            </tal:hint>
    3735          </td>
     
    4139  </table>
    4240
    43   <div class="actionButtons" tal:condition="view/availableActions">
     41  <div tal:condition="view/availableActions">
    4442    <input tal:repeat="action view/actions"
    4543             tal:replace="structure action/render"
  • main/waeup.sirp/branches/henrik-bootstrap/src/waeup/sirp/applicants/browser_templates/applicantscontainermanagepage.pt

    r7364 r7449  
    11<form action="." tal:attributes="action request/URL" method="POST"  class="edit-form" enctype="multipart/form-data">
    22  <h2 i18n:translate="" tal:condition="view/label" tal:content="view/label">Label</h2>
    3   <div class="form-status"  tal:define="status view/status"  tal:condition="status"> Form Status:
     3  <div class="alert-message error"  tal:define="status view/status"  tal:condition="status"> Form Status:
    44    <span i18n:translate="" tal:content="view/status"> Form status summary
    55    </span>
    66  </div>
    7   <div id="tabs">
    8     <ul>
    9       <li>
    10       <a href="#tab-1">
    11         <span>Settings
    12         </span></a>
    13       </li>
    14       <li>
    15       <a href="#tab-2">
    16         <span>Applicants
    17         </span></a>
    18       </li>
    19       <li>
    20       <a href="#tab-3">
    21         <span>Local Roles
    22         </span></a>
    23       </li>
    24     </ul>
    25     <div id="tab-1">
    26       <table class="zebra">
     7  <ul class="tabs" data-tabs="tabs">
     8    <li class="active">
     9    <a href="#tab-1">
     10      <span>Settings
     11      </span></a>
     12    </li>
     13    <li>
     14    <a href="#tab-2">
     15      <span>Applicants
     16      </span></a>
     17    </li>
     18    <li>
     19    <a href="#tab-3">
     20      <span>Local Roles
     21      </span></a>
     22    </li>
     23  </ul>
     24  <div class="tab-content">
     25    <div id="tab-1" class="active">
     26      <table class="form-table">
    2727        <tbody>
    2828          <tal:block repeat="widget view/widgets">
    2929            <tr>
    30               <td class="label">
    31                 <label tal:attributes="for widget/name">
    32                   <span class="required" tal:condition="widget/required">*
    33                   </span>
    34                   <span i18n:translate="" tal:content="widget/label">label
    35                   </span>:
    36                 </label> </td>
    37               <td class="field">
    38                 <span class="widget" tal:content="structure widget">
     30              <td class="fieldname">
     31                <span tal:condition="widget/required">*
     32                </span>
     33                <span i18n:translate="" tal:content="widget/label">label
     34                </span>:
     35              </td>
     36              <td>
     37                <span tal:content="structure widget">
    3938                  <input type="text" />
    4039                </span>
     
    4443                </tal:error>
    4544                <tal:hint tal:condition="widget/hint">
    46                   <span class="hint" tal:content="structure widget/hint">hint
     45                  <span tal:content="structure widget/hint">hint
    4746                  </span>
    4847                </tal:hint> </td>
     
    5150        </tbody>
    5251      </table>
    53       <div class="actionButtons" tal:condition="view/availableActions">
     52      <div tal:condition="view/availableActions">
    5453        <span tal:repeat="action view/actions" tal:omit-tag="">
    5554          <input tal:condition="python:action.label in view.taboneactions"
     
    9897        </tbody>
    9998      </table>
    100       <div class="actionButtons" tal:condition="view/availableActions">
     99      <div tal:condition="view/availableActions">
    101100        <span tal:repeat="action view/actions" tal:omit-tag="">
    102101          <input tal:condition="python:action.label in view.tabtwoactions"
     
    120119        </thead>
    121120        <tbody>
    122           <tr tal:repeat="entry view/getUsersWithLocalRoles" class="gradeB"> <td>
     121          <tr tal:repeat="entry view/getUsersWithLocalRoles" class="gradeC"> <td>
    123122              <input type="checkbox" name="role_id"
    124123                tal:attributes="value python: entry['user_name']+'|'+entry['local_role']" /> </td>
     
    129128        </tbody>
    130129      </table>
    131       <div class="actionButtons" tal:condition="view/availableActions">
     130      <div tal:condition="view/availableActions">
    132131        <span tal:repeat="action view/actions" tal:omit-tag="">
    133132          <input tal:condition="python:action.label in view.tabthreeactions1"
     
    135134        </span>
    136135      </div> <br /><br />
    137       <table class="zebra">
     136      <table class="form-table">
    138137        <tr> <td>
    139138            <select id="user" name="user">
  • main/waeup.sirp/branches/henrik-bootstrap/src/waeup/sirp/applicants/browser_templates/applicantscontainerpage.pt

    r6509 r7449  
    55<br />
    66
    7 <table class="zebra" tal:condition="layout/isAuthenticated">
     7<table class="form-table" tal:condition="layout/isAuthenticated">
    88  <tbody>
    99    <tal:block repeat="widget view/widgets">
     
    1313          <tal:block replace="python:widget.label"/>:
    1414        </td>
    15         <td class="field">
     15        <td>
    1616          <tal:block tal:replace="structure widget" />
    1717        </td>
  • main/waeup.sirp/branches/henrik-bootstrap/src/waeup/sirp/applicants/browser_templates/applicantsrootmanagepage.pt

    r7213 r7449  
    11<h2 i18n:translate="" tal:condition="view/label" tal:content="view/label">Label</h2>
    2 <div class="form-status" tal:define="status view/status" tal:condition="status">
     2<div tal:define="status view/status" tal:condition="status" class="alert-message error">
    33  <div i18n:translate="" tal:content="view/status"> Form status summary
    44  </div>
     
    1010  </ul>
    1111</div>
    12 <form action="." tal:attributes="action request/URL" method="POST"  class="edit-form" enctype="multipart/form-data">
    13   <div id="tabs">
    14     <ul>
    15       <li>
    16       <a href="#tab-1">
    17         <span tal:content="view/subunits">Contents
    18         </span></a>
    19       </li>
    20       <li>
    21       <a href="#tab-2">
    22         <span>Local Roles
    23         </span></a>
    24       </li>
    25     </ul>
    26     <div id="tab-1">
     12<form action="." tal:attributes="action request/URL" method="POST"  enctype="multipart/form-data">
     13  <ul class="tabs" data-tabs="tabs">
     14    <li class="active">
     15    <a href="#tab-1">
     16      <span tal:content="view/subunits">Contents
     17      </span></a>
     18    </li>
     19    <li>
     20    <a href="#tab-2">
     21      <span>Local Roles
     22      </span></a>
     23    </li>
     24  </ul>
     25  <div class="tab-content">
     26    <div id="tab-1" class="active">
    2727      <h3 tal:content="view/subunits">Applicants Containers</h3>
    2828      <table class="display dataTableManage">
     
    4040        </thead>
    4141        <tbody>
    42           <tr tal:repeat="entry context/values"         class="gradeB"> <td>
     42          <tr tal:repeat="entry context/values"         class="gradeC"> <td>
    4343              <input type="checkbox" name="val_id"   tal:attributes="value entry/__name__" /> </td>
    4444            <td tal:content="entry/year">Year </td> <td>
     
    4848        </tbody>
    4949      </table>
    50       <div class="actionButtons" tal:condition="view/availableActions">
     50      <div tal:condition="view/availableActions">
    5151        <span tal:repeat="action view/actions" tal:omit-tag="">
    5252          <input tal:condition="python:action.label in view.taboneactions"   tal:replace="structure action/render"/>
     
    6969        </thead>
    7070        <tbody>
    71           <tr tal:repeat="entry view/getUsersWithLocalRoles" class="gradeB">  <td>
     71          <tr tal:repeat="entry view/getUsersWithLocalRoles" class="gradeC">  <td>
    7272              <input type="checkbox" name="role_id" tal:attributes="value python: entry['user_name']+'|'+entry['local_role']" />  </td>
    7373            <td tal:content="entry/user_name"> USERNAME   </td>
     
    7777        </tbody>
    7878      </table>
    79       <div class="actionButtons" tal:condition="view/availableActions">
     79      <div tal:condition="view/availableActions">
    8080        <span tal:repeat="action view/actions" tal:omit-tag="">
    8181          <input tal:condition="python:action.label in view.tabtwoactions1" tal:replace="structure action/render"/>
    8282        </span>
    8383      </div> <br /><br />
    84       <table class="zebra">
     84      <table class="form-table">
    8585        <tr> <td>
    8686            <select id="user" name="user">
  • main/waeup.sirp/branches/henrik-bootstrap/src/waeup/sirp/applicants/browser_templates/applicantsrootpage.pt

    r6756 r7449  
    1010  </thead>
    1111  <tbody>
    12     <tr tal:repeat="entry context/values"
    13         class="gradeB">
     12    <tr tal:repeat="entry context/values" class="gradeC">
    1413      <td tal:content="entry/year">Year
    1514      </td>     
    1615      <td>
    17         <a href=""
    18            tal:attributes="href python:view.url(entry)"
    19            tal:content="entry/__name__">Code</a>
     16             <a href=""
     17           tal:attributes="href python:view.url(entry)"
     18           tal:content="entry/__name__">Code</a>
    2019      </td>
    2120      <td tal:content="entry/title">Title
  • main/waeup.sirp/branches/henrik-bootstrap/src/waeup/sirp/browser/static/mobile.css

    r6690 r7449  
    1 #primary-navigation li a {
    2   font-size:100%;
    3   padding-bottom: 0.5em;
    4   padding-left: 0.5em;
    5   padding-right: 0.5em;
    6   padding-top: 0.5em;
     1.container {
     2  width: 420px;
    73}
    84
    9 #user-navigation li a {
    10   font-size: 86%;
    11   padding-bottom: 0.5em;
    12   padding-left: 0.5em;
    13   padding-right: 0.5em;
    14   padding-top: 0.8em;
     5body {
     6  padding-top: 120px;
    157}
    16 
    17 #hd {
    18   padding-left:0.3em;
    19   padding-right:0.3em;
    20 }
    21 
    22 #bd {
    23   padding:0.6em;
    24 }
  • main/waeup.sirp/branches/henrik-bootstrap/src/waeup/sirp/browser/static/waeup-base.css

    r7447 r7449  
    44'waeuptheme-<SOME-NAME>.css' and include a utility and a resource in theming.py
    55and resources.py respectively. */
     6
     7/* bootstrap.min customizations */
    68
    79body {
     
    1921}
    2022
    21 .form-table td {
    22   padding: 5px 5px 4px;
    23   border-top: none;
    24 }
    25 
    26 .error {
    27   color: red;
    28 }
    2923
    3024select {
     
    3226}
    3327
     28 /* IE doesn't like the footer tag*/
     29.footer {
     30  padding-top: 17px;
     31  border-top: 1px solid #eee;
     32  margin-top: 50px;
     33}
    3434
    3535 /* dataTables stuff */
     
    4040}
    4141
     42table.display {
     43    margin-top: 25px;
     44}
     45
    4246 /* SIRP stuff */
     47
     48.error {
     49  color: red;
     50}
    4351
    4452.form-table {
     
    4654}
    4755
     56.form-table td {
     57  padding: 5px 5px 4px;
     58  border-top: none;
     59}
     60
    4861.fieldname {
    4962  width: 25%;
    5063}
     64
     65.workflow {
     66  border:1px solid #1fdf00;
     67  background-color:#bbffb6;
     68  font-family: courier;
     69  font-size: 80%;
     70  padding: 4px;
     71  margin-bottom: 8px;
     72  line-height: 16px;
     73}
  • main/waeup.sirp/branches/henrik-bootstrap/src/waeup/sirp/browser/templates/staffsitelayout.pt

    r7443 r7449  
    6464        </div>
    6565      </div>
    66       <div class="content">
    67         <div class="row">
    68           <div class="span12"
    69               tal:define="message context/@@messages"
    70               tal:condition="python: len(message)>11">
    71             <div tal:content="structure message">
    72             </div>
    73           </div>
    74           <div class="span12" tal:condition="provider:actionbar">
    75             <span tal:replace="structure provider:actionbar" />
    76             <br /><br />
    77           </div>
    78           <div class="span12" tal:content="structure view/content"> THE CONTENT
     66      <div class="span12 content">
     67        <div
     68            tal:define="message context/@@messages"
     69            tal:condition="python: len(message)>11">
     70          <div tal:content="structure message">
    7971          </div>
    8072        </div>
    81         <footer>
    82           <p>Student Information and Registration Portal<br />
    83               Copyright &copy; WAeUP Group, 2008-2012
     73        <div class="span12" tal:condition="provider:actionbar">
     74          <span tal:replace="structure provider:actionbar" />
     75          <br /><br />
     76        </div>
     77        <div tal:content="structure view/content"> THE CONTENT
     78        </div>
     79        <div class="footer">
     80          <p class="pull-right"><a href="#">Back to top</a></p>
     81          <p>
     82            Student Information and Registration Portal<br />
     83            Copyright &copy; WAeUP Group, 2008-2012
    8484          </p>
    85         </footer>
     85        </div>
    8686      </div>
    8787    </div>
  • main/waeup.sirp/branches/henrik-bootstrap/src/waeup/sirp/browser/templates/studentsitelayout.pt

    r7240 r7449  
    1616        tal:attributes="title string:RSS feed of ${layout/getAppTitle};
    1717            href python: view.url(layout.site, 'feed.rss')" />
    18 
    1918  </head>
    20   <body class="rounded yui-skin-sam">
    21     <div id="doc3" class="yui-t7">
    22       <div id="hd" role="banner">
    23         <div id="hd">
    24           <h1 id="logo">
    25             <a href="" tal:attributes="href view/application_url">
    26               <span class="uni-logo">
    27               </span> </a>
    28             <span id="uni-title" tal:content="layout/getAppTitle"> Sample University
    29             </span> </h1>
    30           <div id="navigation" class="yui-navset" style="text-align:right;">
    31             <ul id="primary-navigation">
     19  <body>
     20    <div class="topbar" data-scrollspy="scrollspy" >
     21      <div class="topbar-inner">
     22        <div  class="container">
     23          <a class="brand" href="#">Acronym</a>
     24          <ul class="nav">
    3225              <tal:primary_nav content="structure provider:primary_nav" />
    3326              <tal:primary_nav content="structure provider:primary_nav_student" />
    34             </ul>
    35             <ul id="user-navigation">
    36               <li tal:condition="not: layout/isAuthenticated">
    37               <a href="#" tal:attributes="href python: view.url(layout.site, 'login')">
    38                   Login
    39               </a>
    40               </li>
    41               <li tal:condition="layout/isAuthenticated">
    42               <a href="#" tal:attributes="href python: view.url(layout.site, '@@contactadmin')">
    43                   Contact
    44               </a>
    45               </li>
    46               <li tal:condition="layout/isAuthenticated">
    47               <a href="#" tal:attributes="href python: view.url(context, '@@logout')">Logout</a>
    48               </li>
    49             </ul>
    50             <div class="clear">
    51             </div>
     27          </ul>
     28          <ul class="nav secondary-nav">
     29            <li tal:condition="not: layout/isAuthenticated">
     30            <a href="#" tal:attributes="href python: view.url(layout.site, 'login')">
     31                Login
     32            </a>
     33            </li>
     34            <li tal:condition="layout/isAuthenticated">
     35            <a href="#" tal:attributes="href python: view.url(layout.site, '@@contactadmin')">
     36                Contact
     37            </a>
     38            </li>
     39            <li tal:condition="layout/isAuthenticated">
     40            <a href="#" tal:attributes="href python: view.url(context, '@@logout')">Logout</a>
     41            </li>
     42          </ul>
     43        </div>
     44      </div>
     45    </div>
     46
     47    <div class="container">
     48      <div class="content">
     49        <div tal:define="message context/@@messages"
     50             tal:condition="python: len(message)>11">
     51          <div tal:content="structure message">
    5252          </div>
    5353        </div>
    54       </div>
    55       <div id="bd" role="main">
    56 
    57         <div class="yui-b">
    58           <div class="block" >
    59             <div class="studentmenu">
    60               <div tal:condition="layout/getStudentName"
    61                    tal:replace="structure provider:top_student">
    62                 Student Links
    63               </div>
    64               <div tal:content="structure provider:actionbar">
    65                 Student Actions
    66               </div>
    67             </div>
    68           </div>
     54        <div tal:condition="provider:actionbar">
     55          <span tal:replace="structure provider:actionbar" />
     56          <br /><br />
    6957        </div>
    70 
    71         <div id="yui-main">
    72           <div class="yui-b">
    73             <div class="yui-g">
    74               <div class="block">
    75                 <div class="bd">
    76                   <div class="actionbar">
    77                     <span tal:condition="layout/getStudentName" class="wfstatus">
    78                     Id:
    79                     <span tal:replace="python:context.getStudent().student_id"
    80                         class="wfstatus">Id</span>
    81                     &nbsp;&nbsp;
    82                     State:
    83                     <span tal:replace="python:context.getStudent().state"
    84                         class="wfstatus">State</span>
    85                     </span>
    86                   </div>
    87                   <div class="alert warning ui-state-error"
    88                       tal:define="message context/@@messages"
    89                       tal:condition="python: len(message)>11">
    90                     <span class="ui-icon ui-icon-alert">A
    91                     </span>
    92                     <span tal:content="structure message">
    93                     </span>
    94                   </div>
    95                   <div tal:replace="structure view/content"> THE CONTENT
    96                   </div>
    97                 </div>
    98               </div>
    99             </div>
    100           </div>
     58        <div tal:content="structure view/content"> THE CONTENT
    10159        </div>
    102 
    103       </div>
    104       <div id="ft" role="contentinfo">
    105         <p>Student Information and Registration Portal<br />
    106             Copyright &copy; WAeUP Group, 2008-2011
    107         </p>
     60        <div class="footer">
     61          <p class="pull-right"><a href="#">Back to top</a></p>
     62          <p>
     63            Student Information and Registration Portal<br />
     64            Copyright &copy; WAeUP Group, 2008-2012
     65          </p>
     66        </div>
    10867      </div>
    10968    </div>
     69
    11070  </body>
    11171</html>
  • main/waeup.sirp/branches/henrik-bootstrap/src/waeup/sirp/browser/templates/universitypage.pt

    r6907 r7449  
    1 <h2 tal:content="view/label">Title</h2>
     1<h1 tal:content="view/label">Title</h1>
    22
    33<span tal:replace="structure view/frontpage">Frontpage</span>
  • main/waeup.sirp/branches/henrik-bootstrap/src/waeup/sirp/students/browser_templates/studenthistory.pt

    r7447 r7449  
    33    tal:content="view/label">Label</h2>
    44
    5 <div class="alert-message block-message success">
    6   <font face="Courier">
     5<div class="workflow">
    76  <div tal:repeat="msg context/history/messages">
    8     <span tal:replace="msg">message</span>
     7    <span tal:replace="msg">message</span><br />
    98  </div>
    10   </font>
    119</div>
  • main/waeup.sirp/branches/henrik-bootstrap/src/waeup/sirp/students/browser_templates/studyleveleditpage.pt

    r7447 r7449  
    3030  </thead>
    3131  <tbody>
    32     <tr tal:repeat="value context/values">
     32    <tr tal:repeat="value context/values" class="gradeC">
    3333       <td>
    3434        <input type="checkbox" name="val_id"
  • main/waeup.sirp/branches/henrik-bootstrap/src/waeup/sirp/students/browser_templates/studylevelmanagepage.pt

    r7447 r7449  
    7272      </thead>
    7373      <tbody>
    74         <tr tal:repeat="value context/values">
     74        <tr tal:repeat="value context/values" class="gradeC">
    7575          <td>
    7676            <input type="checkbox" name="val_id"
  • main/waeup.sirp/branches/henrik-bootstrap/src/waeup/sirp/students/browser_templates/studylevelpage.pt

    r7447 r7449  
    3030<h3>Course Tickets</h3>
    3131
    32 <table class="display dataTable" >
     32<table class="display dataTable">
    3333  <thead>
    3434    <tr>
     
    4545  </thead>
    4646  <tbody>
    47     <tr tal:repeat="value context/values">
     47    <tr tal:repeat="value context/values" class="gradeC">
    4848      <td tal:content="value/semester">SEMESTER</td>
    4949      <td> <a tal:attributes="href value/__name__">
Note: See TracChangeset for help on using the changeset viewer.