Changeset 8922


Ignore:
Timestamp:
5 Jul 2012, 20:13:52 (12 years ago)
Author:
Henrik Bettermann
Message:

Do not show hint (field description) on display form pages by default.

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

Legend:

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

    r8853 r8922  
    495495    label = _('Applicant')
    496496    pnav = 3
     497    hide_hint = False
    497498
    498499    @property
  • main/waeup.kofa/trunk/src/waeup/kofa/browser/layout.py

    r8736 r8922  
    192192    grok.baseclass()
    193193    template = default_waeup_display_template
     194    hide_hint = True
    194195
    195196class KofaEditFormPage(UtilityView,EditForm):
     
    216217        if self.widgets.get('perm_address'):
    217218            self.widgets['perm_address'].cssClass = 'span8'
    218             self.widgets['perm_address'].height = 10
     219            self.widgets['perm_address'].height = 6
     220        if self.widgets.get('next_kin_address'):
     221            self.widgets['next_kin_address'].cssClass = 'span8'
     222            self.widgets['next_kin_address'].height = 6
    219223        if self.widgets.get('description'):
    220224            self.widgets['description'].cssClass = 'span12'
  • main/waeup.kofa/trunk/src/waeup/kofa/browser/templates/widgets.pt

    r8045 r8922  
    1818        <div tal:content="structure widget/error">ERROR</div>
    1919      </tal:error>
    20       <tal:hint tal:condition="widget/hint">
     20      <tal:hint
     21        tal:condition="python: widget.hint and not getattr(view,'hide_hint',False)">
    2122        <div class="hint" tal:content="structure widget/hint">HINT</div>
    2223      </tal:hint>
Note: See TracChangeset for help on using the changeset viewer.