Ignore:
Timestamp:
22 Feb 2014, 15:46:03 (11 years ago)
Author:
uli
Message:

Merge changes from uli-diazo-themed back into trunk. If this works, then a miracle happened.

Location:
main/waeup.kofa/trunk
Files:
14 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk

  • main/waeup.kofa/trunk/src/waeup/kofa

  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/browser.py

    r11253 r11254  
    4646from waeup.kofa.browser.interfaces import ICaptchaManager
    4747from waeup.kofa.browser.breadcrumbs import Breadcrumb
    48 from waeup.kofa.browser.resources import toggleall
    4948from waeup.kofa.browser.layout import (
    5049    NullValidator, jsaction, action, UtilityView, JSAction)
    5150from waeup.kofa.browser.pages import (
    5251    add_local_role, del_local_roles, doll_up, ExportCSVView)
    53 from waeup.kofa.browser.resources import datepicker, tabs, datatable, warning
    5452from waeup.kofa.interfaces import (
    5553    IKofaObject, ILocalRolesAssignable, IExtFileStore, IPDF,
     
    116114
    117115    def update(self, *args, **kw):
    118         datatable.need()
    119116        form = self.request.form
    120117        self.results = []
     
    127124        else:
    128125            if 'search' in form:
    129                 self.flash(_('Empty search string'))
     126                self.flash(_('Empty search string'), type='warning')
    130127            return
    131128        self.results = search(query=self.searchterm,
    132129            searchtype=self.searchtype, view=self)
    133130        if not self.results:
    134             self.flash(_('No applicant found.'))
     131            self.flash(_('No applicant found.'), type='warning')
    135132        return
    136133
     
    149146    subunits = _('Applicants Containers')
    150147
    151     def update(self):
    152         tabs.need()
    153         datatable.need()
    154         warning.need()
    155         self.tab1 = self.tab2 = self.tab3 = ''
    156         qs = self.request.get('QUERY_STRING', '')
    157         if not qs:
    158             qs = 'tab1'
    159         setattr(self, qs, 'active')
    160         return super(ApplicantsRootManageFormPage, self).update()
    161 
    162148    def getLocalRoles(self):
    163149        roles = ILocalRolesAssignable(self.context)
     
    180166            child_id = form['val_id']
    181167        else:
    182             self.flash(_('No container selected!'))
    183             self.redirect(self.url(self.context, '@@manage')+'?tab2')
     168            self.flash(_('No container selected!'), type='warning')
     169            self.redirect(self.url(self.context, '@@manage')+'#tab2')
    184170            return
    185171        if not isinstance(child_id, list):
     
    192178            except:
    193179                self.flash(_('Could not delete:') + ' %s: %s: %s' % (
    194                         id, sys.exc_info()[0], sys.exc_info()[1]))
     180                    id, sys.exc_info()[0], sys.exc_info()[1]), type='danger')
    195181        if len(deleted):
    196182            self.flash(_('Successfully removed: ${a}',
    197183                mapping = {'a':', '.join(deleted)}))
    198         self.redirect(self.url(self.context, '@@manage')+'?tab2')
     184        self.redirect(self.url(self.context, '@@manage')+'#tab2')
    199185        return
    200186
     
    235221    form_fields = grok.AutoFields(
    236222        IApplicantsContainerAdd).omit('code').omit('title')
    237 
    238     def update(self):
    239         datepicker.need() # Enable jQuery datepicker in date fields.
    240         return super(ApplicantsContainerAddFormPage, self).update()
    241223
    242224    @action(_('Add applicants container'))
     
    249231        if code in self.context.keys():
    250232            self.flash(
    251                 _('An applicants container for the same application type and entrance year exists already in the database.'))
     233              _('An applicants container for the same application '
     234                'type and entrance year exists already in the database.'),
     235                type='warning')
    252236            return
    253237        # Add new applicants container...
     
    378362        return False
    379363
    380     def update(self):
    381         datepicker.need() # Enable jQuery datepicker in date fields.
    382         tabs.need()
    383         toggleall.need()
    384         self.tab1 = self.tab2 = self.tab3 = ''
    385         qs = self.request.get('QUERY_STRING', '')
    386         if not qs:
    387             qs = 'tab1'
    388         setattr(self, qs, 'active')
    389         warning.need()
    390         datatable.need()  # Enable jQurey datatables for contents listing
    391         return super(ApplicantsContainerManageFormPage, self).update()
    392 
    393364    def getLocalRoles(self):
    394365        roles = ILocalRolesAssignable(self.context)
     
    436407            child_id = form['val_id']
    437408        else:
    438             self.flash(_('No applicant selected!'))
    439             self.redirect(self.url(self.context, '@@manage')+'?tab2')
     409            self.flash(_('No applicant selected!'), type='warning')
     410            self.redirect(self.url(self.context, '@@manage')+'#tab2')
    440411            return
    441412        if not isinstance(child_id, list):
     
    448419            except:
    449420                self.flash(_('Could not delete:') + ' %s: %s: %s' % (
    450                         id, sys.exc_info()[0], sys.exc_info()[1]))
     421                    id, sys.exc_info()[0], sys.exc_info()[1]), type='danger')
    451422        if len(deleted):
    452423            self.flash(_('Successfully removed: ${a}',
    453424                mapping = {'a':', '.join(deleted)}))
    454         self.redirect(self.url(self.context, u'@@manage')+'?tab2')
     425        self.redirect(self.url(self.context, u'@@manage')+'#tab2')
    455426        return
    456427
     
    461432            child_id = form['val_id']
    462433        else:
    463             self.flash(_('No applicant selected!'))
    464             self.redirect(self.url(self.context, '@@manage')+'?tab2')
     434            self.flash(_('No applicant selected!'), type='warning')
     435            self.redirect(self.url(self.context, '@@manage')+'#tab2')
    465436            return
    466437        if not isinstance(child_id, list):
     
    475446                mapping = {'a': len(created)}))
    476447        else:
    477             self.flash(_('No student could be created.'))
    478         self.redirect(self.url(self.context, u'@@manage')+'?tab2')
     448            self.flash(_('No student could be created.'), type='warning')
     449        self.redirect(self.url(self.context, u'@@manage')+'#tab2')
    479450        return
    480451
     
    612583    def update(self):
    613584        msg = self.context.createStudent(view=self)[1]
    614         self.flash(msg)
     585        self.flash(msg, type='warning')
    615586        self.redirect(self.url(self.context))
    616587        return
     
    652623                mapping = {'a': len(created)}))
    653624        else:
    654             self.flash(_('No student could be created.'))
     625            self.flash(_('No student could be created.'), type='warning')
    655626        self.redirect(self.url(self.context))
    656627        return
     
    672643            if ticket.p_state == 'paid':
    673644                  self.flash(
    674                       _('This type of payment has already been made.'))
     645                      _('This type of payment has already been made.'),
     646                      type='warning')
    675647                  self.redirect(self.url(self.context))
    676648                  return
     
    678650        container = self.context.__parent__
    679651        payment = createObject(self.factory)
    680         error = applicants_utils.setPaymentDetails(
     652        failure = applicants_utils.setPaymentDetails(
    681653            container, payment, self.context)
    682         if error is not None:
    683             self.flash(error)
     654        if failure is not None:
     655            self.flash(failure[0], type='danger')
    684656            self.redirect(self.url(self.context))
    685657            return
     
    731703                self.context.p_id, self.context.p_category,
    732704                self.context.amount_auth, self.context.r_code))
    733         self.flash(msg)
     705        self.flash(msg, type='warning')
    734706        return
    735707
     
    785757        if self.context.state in ('initialized', 'started', 'paid'):
    786758            self.flash(
    787                 _('Please pay and submit before trying to download the application slip.'))
     759                _('Please pay and submit before trying to download '
     760                  'the application slip.'), type='warning')
    788761            return self.redirect(self.url(self.context))
    789762        return
     
    806779    size = file_size(upload)
    807780    if size > MAX_UPLOAD_SIZE:
    808         view.flash(_('Uploaded image is too big!'))
     781        view.flash(_('Uploaded image is too big!'), type='danger')
    809782        return False
    810783    dummy, ext = os.path.splitext(upload.filename)
    811784    ext.lower()
    812785    if ext != '.jpg':
    813         view.flash(_('jpg file extension expected.'))
     786        view.flash(_('jpg file extension expected.'), type='danger')
    814787        return False
    815788    upload.seek(0) # file pointer moved when determining size
     
    851824
    852825    def update(self):
    853         datepicker.need() # Enable jQuery datepicker in date fields.
    854         warning.need()
    855826        super(ApplicantManageFormPage, self).update()
    856827        self.wf_info = IWorkflowInfo(self.context)
     
    894865            errors = validator.validate_password(password, password_ctl)
    895866            if errors:
    896                 self.flash( ' '.join(errors))
     867                self.flash( ' '.join(errors), type='danger')
    897868                return
    898869        if self.upload_success is False:  # False is not None!
     
    927898            child_id = form['val_id']
    928899        else:
    929             self.flash(_('No payment selected.'))
     900            self.flash(_('No payment selected.'), type='warning')
    930901            self.redirect(self.url(self.context))
    931902            return
     
    941912                except:
    942913                    self.flash(_('Could not delete:') + ' %s: %s: %s' % (
    943                             id, sys.exc_info()[0], sys.exc_info()[1]))
     914                      id, sys.exc_info()[0], sys.exc_info()[1]), type='danger')
    944915        if len(deleted):
    945916            self.flash(_('Successfully removed: ${a}',
     
    1013984
    1014985    def emit_lock_message(self):
    1015         self.flash(_('The requested form is locked (read-only).'))
     986        self.flash(_('The requested form is locked (read-only).'),
     987                   type='warning')
    1016988        self.redirect(self.url(self.context))
    1017989        return
     
    10541026            return
    10551027        if data.get('course1', 1) == data.get('course2', 2):
    1056             self.flash(_('1st and 2nd choice must be different.'))
     1028            self.flash(_('1st and 2nd choice must be different.'),
     1029                       type='warning')
    10571030            return
    10581031        self.applyData(self.context, **data)
     
    10651038            return # error during image upload. Ignore other values
    10661039        if self.dataNotComplete():
    1067             self.flash(self.dataNotComplete())
     1040            self.flash(self.dataNotComplete(), type='danger')
    10681041            return
    10691042        self.applyData(self.context, **data)
     
    10721045        # might have forgotten to lock the form after changing the state
    10731046        if state != self.submit_state:
    1074             self.flash(_('The form cannot be submitted. Wrong state!'))
     1047            self.flash(_('The form cannot be submitted. Wrong state!'),
     1048                       type='danger')
    10751049            return
    10761050        IWorkflowInfo(self.context).fireTransition('submit')
     
    11261100    def update(self):
    11271101        if self.context.expired:
    1128             self.flash(_('Outside application period.'))
     1102            self.flash(_('Outside application period.'), type='warning')
    11291103            self.redirect(self.url(self.context))
    11301104            return
     
    11641138                applicant = results[0]
    11651139                if getattr(applicant,'firstname',None) is None:
    1166                     self.flash(_('An error occurred.'))
     1140                    self.flash(_('An error occurred.'), type='danger')
    11671141                    return
    11681142                elif applicant.firstname.lower() != firstname.lower():
     
    11701144                    # know that a record was found and only the firstname
    11711145                    # verification failed.
    1172                     self.flash(_('No application record found.'))
     1146                    self.flash(_('No application record found.'), type='warning')
    11731147                    return
    11741148                elif applicant.password is not None and \
    11751149                    applicant.state != INITIALIZED:
    11761150                    self.flash(_('Your password has already been set and used. '
    1177                                  'Please proceed to the login page.'))
     1151                                 'Please proceed to the login page.'),
     1152                               type='warning')
    11781153                    return
    11791154                # Store email address but nothing else.
     
    11821157            else:
    11831158                # No record found, this is the truth.
    1184                 self.flash(_('No application record found.'))
     1159                self.flash(_('No application record found.'), type='warning')
    11851160                return
    11861161        else:
     
    12271202    grok.name('index.html')
    12281203    grok.template('exportjobsindex')
    1229     label = _('Applicant Data Exports')
     1204    label = _('Data Exports')
    12301205    pnav = 3
    12311206
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/browser_templates/applicantcontainerstatistics.pt

    r8643 r11254  
    11<tal:statistics define="stats context/statistics" i18n:domain="waeup.kofa">
    22  <h2 i18n:translate="">Container Statistics</h2>
    3   <table class="span8">
     3  <table class="table">
    44    <thead>
    55      <tr>
     
    1717    </tbody>
    1818  </table>
    19   <table class="span8" tal:condition="python: stats[1]">
     19  <table class="table" tal:condition="python: stats[1]">
    2020    <thead>
    2121      <tr>
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/browser_templates/applicantdisplaypage.pt

    r10353 r11254  
    4141    Application Fee Payment Tickets
    4242</h3>
    43 <table i18n:domain="waeup.kofa">
     43<table i18n:domain="waeup.kofa" class="table table-condensed">
    4444  <thead>
    4545    <tr>
     
    5454  <tbody>
    5555    <tr tal:repeat="value context/values">
    56       <td> <a tal:attributes="href value/__name__">
     56      <td> <a tal:attributes="href python:view.url(value)">
    5757      <span tal:content="value/p_id">PID</span></a></td>
    5858      <td tal:content="python: layout.formatDatetime(value.creation_date)">CREATION DATE</td>
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/browser_templates/applicanteditpage.pt

    r10353 r11254  
    3838        <td class="fieldname" i18n:translate="">Password:</td>
    3939        <td>
    40           <input name="password" type="password"  />
     40          <input class="form-control" name="password" type="password"  />
    4141        </td>
    4242      </tr>
     
    4444        <td class="fieldname" i18n:translate="">Retype Password:</td>
    4545        <td>
    46           <input name="control_password" type="password" />
     46          <input class="form-control" name="control_password" type="password" />
    4747        </td>
    4848      </tr>
     
    5050        <td class="fieldname" i18n:translate="">Application Transition:</td>
    5151        <td>
    52           <select id="transition" name="transition">
     52          <select id="transition" name="transition" class="form-control half">
    5353            <option tal:repeat="transition view/getTransitions"
    5454                    tal:attributes="value transition/name">
     
    8484  </h3>
    8585
    86   <table>
     86  <table i18n:domain="waeup.kofa" class="table table-condensed">
    8787    <thead>
    8888    <tr>
     
    104104         tal:condition="python: not view.unremovable(cl)" />
    105105        </td>
    106         <td> <a tal:attributes="href cl/__name__">
     106        <td> <a tal:attributes="href python:view.url(cl)">
    107107        <span tal:content="cl/p_id">PID</span></a></td>
    108108        <td tal:content="python: layout.formatDatetime(cl.creation_date)">CREATION DATE</td>
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/browser_templates/applicantregemailsent.pt

    r8855 r11254  
    1919<tal:credentials condition = "view/password" i18n:domain="waeup.kofa">
    2020  <h3 i18n:translate="">Your login credentials are:</h3>
    21   <table class="bordered-table span6">
     21  <table class="table-bordered">
    2222    <tr>
    2323      <td i18n:translate="">User Name:</td>
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/browser_templates/applicantscontaineraddpage.pt

    r7737 r11254  
    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  <table class="form-table">
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/browser_templates/applicantscontainermanagepage.pt

    r9339 r11254  
    11<form action="." tal:attributes="action request/URL" method="POST"
    2   i18n:domain="waeup.kofa" class="edit-form" enctype="multipart/form-data">
     2  i18n:domain="waeup.kofa" enctype="multipart/form-data">
    33
    4   <ul class="tabs" data-tabs="tabs">
    5     <li tal:attributes="class view/tab1">
    6     <a href="#tab-1">
     4 <ul class="tabs nav nav-tabs" data-tabs="tabs">
     5    <li class="active">
     6    <a href="#tab1" data-toggle="tab">
    77      <span i18n:translate="">Settings
    88      </span></a>
    99    </li>
    10     <li tal:attributes="class view/tab2">
    11     <a href="#tab-2">
     10    <li>
     11    <a href="#tab2" data-toggle="tab">
    1212      <span i18n:translate="">Applicants
    1313      </span></a>
    1414    </li>
    15     <li tal:attributes="class view/tab3">
    16     <a href="#tab-3">
     15    <li>
     16    <a href="#tab3" data-toggle="tab">
    1717      <span i18n:translate="">Local Roles
    1818      </span></a>
     
    2020  </ul>
    2121  <div class="tab-content">
    22     <div id="tab-1" tal:attributes="class view/tab1">
     22    <div id="tab1" class="active tab-pane">
     23      <br />
    2324      <table class="form-table">
    2425        <tbody>
     
    3334      </div>
    3435    </div>
    35     <div id="tab-2" tal:attributes="class view/tab2">
     36    <div id="tab2" class="tab-pane">
    3637    <tal:showApplicants  condition="view/showApplicants">
    37     <input type="checkbox" onClick="toggle(this, 'val_id')" />
    38     <span  i18n:translate="">Select all</span>
    39     <br /><br />
    40 
    41       <table class="display dataTableManage">
     38      <br />
     39      <table class="kofa-data-table dataTableManage">
    4240        <thead>
    4341          <tr>
     
    5553        </thead>
    5654        <tbody>
    57           <tr class="gradeC" tal:repeat="appl context/values">
     55          <tr tal:repeat="appl context/values">
    5856            <td>
    5957              <input type="checkbox" name="val_id" tal:attributes="value appl/__name__" />
     
    7876        </tbody>
    7977      </table>
     78      <input type="checkbox" onClick="toggle(this, 'val_id')" />
     79      <span  i18n:translate="">Select all</span>
     80      <br /><br />
    8081      <div tal:condition="view/availableActions">
    8182        <span tal:repeat="action view/actions" tal:omit-tag="">
     
    100101    </tal:showNoApplicants>
    101102    </div>
    102     <div id="tab-3" tal:attributes="class view/tab3"> <br />
    103       <table class="display dataTableManage">
     103    <div id="tab3" class="tab-pane"> <br />
     104      <table class="kofa-data-table dataTableManage">
    104105        <thead>
    105106          <tr>
     
    115116        </thead>
    116117        <tbody>
    117           <tr tal:repeat="entry view/getUsersWithLocalRoles" class="gradeC"> <td>
     118          <tr tal:repeat="entry view/getUsersWithLocalRoles"> <td>
    118119              <input type="checkbox" name="role_id"
    119120                tal:attributes="value python: entry['user_name']+'|'+entry['local_role']" /> </td>
     
    132133      <table class="form-table">
    133134        <tr> <td>
    134             <select id="user" name="user">
     135            <select id="user" name="user" class="form-control">
    135136              <option tal:repeat="user view/getUsers"
    136137                      tal:attributes="value user/name">
     
    139140              </option>
    140141            </select> </td> <td>
    141             <select id="local_role" name="local_role">
     142            <select id="local_role" name="local_role" class="form-control">
    142143              <option tal:repeat="localrole view/getLocalRoles"
    143144                      tal:attributes="value localrole/name">
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/browser_templates/applicantsrootmanagepage.pt

    r8547 r11254  
    11<form action="." tal:attributes="action request/URL"
    22  i18n:domain="waeup.kofa" method="POST"  enctype="multipart/form-data">
    3   <ul class="tabs" data-tabs="tabs">
    4     <li tal:attributes="class view/tab1">
    5     <a href="#tab-1">
     3  <ul class="tabs nav nav-tabs" data-tabs="tabs">
     4    <li class="active">
     5    <a href="#tab1" data-toggle="tab">
    66      <span i18n:translate="">Introduction
    77      </span></a>
    88    </li>
    9     <li tal:attributes="class view/tab2">
    10     <a href="#tab-2">
     9    <li>
     10    <a href="#tab2" data-toggle="tab">
    1111      <span tal:content="view/subunits">Contents
    1212      </span></a>
    1313    </li>
    14     <li tal:attributes="class view/tab3">
    15     <a href="#tab-3">
     14    <li>
     15    <a href="#tab3" data-toggle="tab">
    1616      <span i18n:translate="">Local Roles
    1717      </span></a>
     
    1919  </ul>
    2020  <div class="tab-content">
    21     <div id="tab-1" tal:attributes="class view/tab1">
     21    <div id="tab1" class="active tab-pane">
     22     <br />
    2223      <table class="form-table">
    2324        <tbody>
     
    2526        </tbody>
    2627      </table>
    27 
    2828      <div tal:condition="view/availableActions">
    2929        <span tal:repeat="action view/actions" tal:omit-tag="">
     
    3333      </div>
    3434    </div>
    35     <div id="tab-2" tal:attributes="class view/tab2">
    36       <h3 tal:content="view/subunits">SUBUNITS</h3>
    37 
     35    <div id="tab2" class="tab-pane">
     36      <br />
    3837      <p i18n:translate="note_armp">
    3938        Please note that containers will be opened in manage mode here.
     
    4241        Please be patient until all records have been loaded.
    4342      </p>
    44 
    45       <table class="display dataTableManage">
     43      <table class="kofa-data-table dataTableManage">
    4644        <thead>
    4745          <tr>
     
    5957        </thead>
    6058        <tbody>
    61           <tr tal:repeat="entry context/values"         class="gradeC"> <td>
     59          <tr tal:repeat="entry context/values"> <td>
    6260              <input type="checkbox" name="val_id"
    6361                tal:attributes="value entry/__name__" /> </td>
     
    7876      </div>
    7977    </div>
    80     <div id="tab-3" tal:attributes="class view/tab3">
     78    <div id="tab3" class="tab-pane">
    8179      <br />
    82       <table class="display dataTableManage">
     80      <table class="kofa-data-table dataTableManage">
    8381        <thead>
    8482          <tr>
     
    9492        </thead>
    9593        <tbody>
    96           <tr tal:repeat="entry view/getUsersWithLocalRoles" class="gradeC">
     94          <tr tal:repeat="entry view/getUsersWithLocalRoles">
    9795            <td> <input type="checkbox" name="role_id"
    9896                    tal:attributes="value python: entry['user_name']+'|'+entry['local_role']" />  </td>
     
    109107        </span>
    110108      </div> <br /><br />
    111       <table class="form-table">
    112         <tr> <td>
    113             <select id="user" name="user">
    114               <option tal:repeat="user view/getUsers"
    115                 tal:attributes="value user/name">
    116               <span tal:replace="user/val/title">USERTITLE
    117               </span>
    118               </option>
    119             </select> </td> <td>
    120             <select id="local_role" name="local_role">
    121               <option tal:repeat="localrole view/getLocalRoles"
    122                 tal:attributes="value localrole/name">
    123               <span tal:replace="localrole/title">LOCALROLETITLE
    124               </span>
    125               </option>
    126             </select> </td> <td>
    127             <div tal:condition="view/availableActions">
    128               <span tal:repeat="action view/actions" tal:omit-tag="">
    129                 <input tal:condition="python:action.label in view.tabthreeactions2"
    130                   tal:replace="structure action/render"/>
    131               </span>
    132             </div> </td>
    133         </tr>
    134       </table>
     109      <div class="form-inline">
     110        <br />
     111        <div class="form-group">
     112          <select id="user" name="user" class="form-control">
     113            <option tal:repeat="user view/getUsers"
     114                    tal:attributes="value user/name">
     115            <span tal:replace="user/val/title">USERTITLE
     116            </span>
     117            </option>
     118          </select>
     119        </div>
     120        <div class="form-group">
     121          <select id="local_role" name="local_role" class="form-control">
     122            <option tal:repeat="localrole view/getLocalRoles"
     123                    tal:attributes="value localrole/name">
     124            <span tal:replace="localrole/title">LOCALROLETITLE
     125            </span>
     126            </option>
     127          </select>
     128        </div>
     129        <div class="form-group" tal:condition="view/availableActions">
     130          <span tal:repeat="action view/actions" tal:omit-tag="">
     131            <input tal:condition="python:action.label in view.tabthreeactions2"
     132                   tal:replace="structure action/render"/>
     133          </span>
     134        </div>
     135      </div>
    135136    </div>
    136137  </div>
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/browser_templates/applicantsrootpage.pt

    r10097 r11254  
    44</span>
    55
    6 <table i18n:domain="waeup.kofa">
     6<table i18n:domain="waeup.kofa" class="table table-hover">
    77  <thead>
    88    <tr>
     
    1414  </thead>
    1515  <tbody>
    16     <tr tal:repeat="entry view/containers" class="gradeC">
     16    <tr tal:repeat="entry view/containers">
    1717      <td tal:content="entry/year">Year
    1818      </td>
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/browser_templates/applicantssearchpage.pt

    r10645 r11254  
    1 <form method="POST" i18n:domain="waeup.kofa">
     1<form method="POST" i18n:domain="waeup.kofa" class="form-inline">
    22<br />
    3   <input class="btn primary" type="submit" name="search"
    4     tal:attributes="value view/search_button" />
     3  <div class="form-group">
     4    <input class="btn btn-primary" type="submit" name="search"
     5      tal:attributes="value view/search_button" />
     6  </div>
     7  <div class="form-group">
     8    <select name="searchtype" class="form-control">
     9      <option i18n:translate="" value="applicant_id">with id</option>
     10      <option i18n:translate="" value="fullname">with name</option>
     11      <option i18n:translate="" value="reg_number">with registration number</option>
     12      <option i18n:translate="" value="email">with email address</option>
     13    </select>
     14  </div>
     15  <div class="form-group">
     16    <input type="text" class="form-control" name="searchterm" />
     17  </div>
    518
    6   <select name="searchtype">
    7     <option i18n:translate="" value="applicant_id">with id</option>
    8     <option i18n:translate="" value="fullname">with name</option>
    9     <option i18n:translate="" value="reg_number">with registration number</option>
    10     <option i18n:translate="" value="email">with email address</option>
    11   </select>
    12 
    13   <input type="text" name="searchterm" />
    14 
    15   <p>&nbsp;</p>
     19  <br /><br />
    1620  <div tal:condition="view/results">
    1721    <h3 i18n:translate="">Search Results</h3>
     
    2024    <input type="hidden" name="old_searchtype"
    2125         tal:attributes="value view/searchtype" />
    22     <table class="display dataTable">
     26    <table class="kofa-data-table dataTable">
    2327      <thead>
    2428      <tr>
     
    3034      </thead>
    3135      <tbody>
    32       <tr tal:repeat="item view/results" class="gradeC">
     36      <tr tal:repeat="item view/results">
    3337        <td> <a tal:attributes="href python:view.url(item)">
    3438          <span tal:content="item/applicant_id">XXXX_1234</span></a>
     
    4246      </tbody>
    4347    </table>
    44     <br />
    4548  </div>
    4649</form>
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/browser_templates/exportjobsindex.pt

    r10655 r11254  
    1 <table i18n:domain="waeup.kofa">
     1<table i18n:domain="waeup.kofa" class="table table-condensed table-hover">
    22  <thead>
    33    <tr>
     
    2525        <span tal:replace="job/creator">CREATOR</span>
    2626      </td>
    27       <td nowrap>
     27      <td>
    2828        <span tal:replace="job/start_time">DATETIME</span>
    2929      </td>
     
    3232      </td>
    3333      <td nowrap>
    34         <a href="" class="btn" i18n:translate=""
     34        <a href="" class="btn btn-default btn-xs" i18n:translate=""
    3535           tal:condition="job/show_refresh_button">
    36           <img tal:attributes="src static/actionicon_reload.png" />
     36          <img src="/static/img/actionicon_reload.png" />
    3737          Reload
    3838        </a>
    3939        <form method="POST">
    40           <a href="" class="btn primary small"
     40          <a href="" class="btn btn-primary btn-xs"
    4141                 tal:attributes="href job/download_url"
    4242                 tal:condition="job/show_download_button">
    4343            Download</a>
    44 
    4544          <input type="hidden" name="job_id"
    4645                 tal:attributes="value job/job" />
    47           <input type="submit" class="btn small"
     46          <input type="submit" class="btn btn-default btn-xs"
    4847                 name="DISCARD" value="Discard"
    4948                 tal:condition="job/show_discard_button" />
     
    5352  </tbody>
    5453</table>
     54
    5555<form method="POST" i18n:domain="waeup.kofa">
    56   <div class="span12">
    57 
    58   </div>
    59   <input class="btn primary" type="submit" name="CREATE"
     56  <input class="btn btn-primary" type="submit" name="CREATE"
    6057         value="Start new export"
    6158          />
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/utils.py

    r10843 r11254  
    5151            session_config = grok.getSite()['configuration'][session]
    5252        except KeyError:
    53             return _(u'Session configuration object is not available.')
     53            return _(u'Session configuration object is not available.'), None
    5454        payment.p_id = "p%s" % timestamp
    5555        payment.p_item = container.title
Note: See TracChangeset for help on using the changeset viewer.