Changeset 8045 for main/waeup.kofa/trunk


Ignore:
Timestamp:
5 Apr 2012, 10:35:49 (13 years ago)
Author:
Henrik Bettermann
Message:

Insert headlines (separators) between groups of widgets. pdf version will follow.

Location:
main/waeup.kofa/trunk/src/waeup/kofa
Files:
4 edited

Legend:

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

    r8042 r8045  
    6060grok.context(IKofaObject) # Make IKofaObject the default context
    6161
     62SEPARATORS = {}
     63SEPARATORS['form.course1'] = _(u'Desired Courses')
     64SEPARATORS['form.screening_score'] = _(u'Process Data')
     65
    6266class ApplicantsRootPage(KofaPage):
    6367    grok.context(IApplicantsRoot)
     
    385389    label = _('Applicant')
    386390    pnav = 3
     391    separators = SEPARATORS
    387392
    388393    def update(self):
     
    625630    display_actions = [[_('Save'), _('Final Submit')],
    626631        [_('Add online payment ticket'),_('Remove selected tickets')]]
     632    separators = SEPARATORS
    627633
    628634    def update(self):
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/browser_templates/applicantdisplaypage.pt

    r7811 r8045  
    1313<table i18n:domain="waeup.kofa" class="form-table">
    1414  <tbody>
    15     <tal:block repeat="widget view/widgets">
    16       <tr>
    17         <td class="fieldname">
    18           <tal:block content="widget/label"/>:
    19         </td>
    20         <td>
    21           <span tal:replace="structure widget" />
    22         </td>
    23       </tr>
    24     </tal:block>
     15    <tal:widgets content="structure provider:widgets" />
    2516    <tr>
    2617      <td class="fieldname" i18n:translate="">
  • main/waeup.kofa/trunk/src/waeup/kofa/browser/static/waeup-base.css

    r7811 r8045  
    223223  color: #bfbfbf;
    224224}
     225
     226.separator {
     227  font-size: 16px;
     228  color: #404040;
     229  font-weight: bold;
     230  line-height: 36px;
     231}
  • main/waeup.kofa/trunk/src/waeup/kofa/browser/templates/widgets.pt

    r7872 r8045  
    11<tal:block repeat="widget view/widgets">
     2  <tr tal:define="separators view/separators|nothing"
     3      tal:condition="python: separators and separators.get(widget.name,None)">
     4    <td class="separator" colspan=2 tal:content="python: separators[widget.name]">
     5      HEADLINE
     6    </td>
     7  </tr>
    28  <tr>
    39    <td class="fieldname">
Note: See TracChangeset for help on using the changeset viewer.