Ignore:
Timestamp:
3 May 2011, 10:26:16 (14 years ago)
Author:
Henrik Bettermann
Message:

Use zebra table class also for edit form pages.

Use a customized version of the mgrok.layout default pagetemplates. default_waeup_display_form.pt is not yet used in waeup.sirp.

Extend the length of title fields.

Location:
main/waeup.sirp/trunk/src/waeup/sirp
Files:
2 added
9 edited

Legend:

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

    r6021 r6025  
    119119  >>> print browser.contents
    120120  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"...
    121   ...<span class="required">*</span><span>Name of Faculty</span>
     121  ...<span class="required">*</span><span>Name of faculty</span>
    122122  ...
    123123
     
    197197  >>> print browser.contents
    198198  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"...
    199   ...<span class="required">*</span><span>Name of Department</span>
     199  ...<span class="required">*</span><span>Name of department</span>
    200200  ...
    201201
  • main/waeup.sirp/trunk/src/waeup/sirp/browser/layout.py

    r5998 r6025  
    1313    # BBB
    1414    from zope.app.component.hooks import getSite
     15from zope.formlib.utility import setUpWidgets   
    1516from waeup.sirp.interfaces import IWAeUPObject
    1617from waeup.sirp.browser.interfaces import ITheme
     
    8485    """
    8586    grok.baseclass()
     87    grok.template('default_waeup_display_form')
    8688
    8789class WAeUPEditFormPage(EditForm, UtilityView):
     
    8991    """
    9092    grok.baseclass()
     93    grok.template('default_waeup_edit_form')
     94   
     95    def setUpWidgets(self,ignore_request=False):
     96        super(WAeUPEditFormPage,self).setUpWidgets(ignore_request)
     97        if self.widgets.get('title'):
     98            self.widgets['title'].displayWidth = 80
    9199
    92100class WAeUPAddFormPage(AddForm,  UtilityView):
     
    94102    """
    95103    grok.baseclass()
     104    grok.template('default_waeup_edit_form')
    96105
    97106class SiteLayout(WAeUPLayout):
  • main/waeup.sirp/trunk/src/waeup/sirp/browser/pages.py

    r6024 r6025  
    13581358    pnav = 1
    13591359    form_fields = grok.AutoFields(ICertificate)
     1360    grok.template('certificatepage')
    13601361
    13611362    @property
  • main/waeup.sirp/trunk/src/waeup/sirp/browser/static/waeuptheme-gray1.css

    r5999 r6025  
    103103}
    104104
     105form label span {
     106  font-size: 100%;
     107}
     108
     109td.label label span {
     110  color: #222222;
     111  font-weight: normal;
     112}
     113
    105114/* jquery-ui customizations */
    106115
  • main/waeup.sirp/trunk/src/waeup/sirp/browser/templates/certificatemanagepage.pt

    r6024 r6025  
    2929   
    3030<div id="tab-1">       
    31       <table class="form-fields">
     31      <table class="zebra">
    3232      <tbody>
    3333      <tal:block repeat="widget view/widgets">
     
    4545                >*</span><span i18n:translate=""
    4646                tal:content="widget/label">label</span>
    47         </label>
     47        </label>:
    4848          </td>
    4949          <td class="field">
  • main/waeup.sirp/trunk/src/waeup/sirp/browser/templates/departmentmanagepage.pt

    r6023 r6025  
    3030   
    3131<div id="tab-1">       
    32       <table class="form-fields">
     32      <table class="zebra">
    3333      <tbody>
    3434      <tal:block repeat="widget view/widgets">
     
    4646                >*</span><span i18n:translate=""
    4747                tal:content="widget/label">label</span>
    48         </label>
     48        </label>:
    4949          </td>
    5050          <td class="field">
     
    7474   
    7575<div id="tab-2"> 
     76    <br />
    7677    <table class="display dataTableManage">
    7778      <thead>
     
    110111
    111112<div id="tab-3"> 
     113    <br /> 
    112114    <table class="display dataTableManage">
    113115      <thead>
  • main/waeup.sirp/trunk/src/waeup/sirp/browser/templates/departmentpage.pt

    r6020 r6025  
    99    </ul>
    1010   
    11     <div id="tab-1"> 
     11    <div id="tab-1">
     12    <br />
    1213    <table class="display dataTable">
    1314      <thead>
     
    3334    </div>
    3435    <div id="tab-2">
     36    <br />
    3537    <table class="display dataTable">
    3638      <thead>
  • main/waeup.sirp/trunk/src/waeup/sirp/browser/templates/facultymanagepage.pt

    r6000 r6025  
    2929   
    3030<div id="tab-1">       
    31       <table class="form-fields">
     31      <table class="zebra">
    3232      <tbody>
    3333      <tal:block repeat="widget view/widgets">
     
    4545                >*</span><span i18n:translate=""
    4646                tal:content="widget/label">label</span>
    47         </label>
     47        </label>:
    4848          </td>
    4949          <td class="field">
  • main/waeup.sirp/trunk/src/waeup/sirp/university/interfaces.py

    r6008 r6025  
    2727
    2828    title = schema.TextLine(
    29         title = u'Name of Faculty',
     29        title = u'Name of faculty',
    3030        default = u'Unnamed',
    3131        required = True,
     
    3333
    3434    title_prefix = schema.Choice(
    35         title = u'Title prefix',
     35        title = u'Name prefix',
    3636        default = u'faculty',
    3737        vocabulary = inst_types,
     
    7777
    7878    title = schema.TextLine(
    79         title = u'Name of Department',
     79        title = u'Name of department',
    8080        default = u'Unnamed',
    8181        required = True,
     
    8383
    8484    title_prefix = schema.Choice(
    85         title = u'Title prefix',
     85        title = u'Name prefix',
    8686        vocabulary = inst_types,
    8787        default = u'department',
Note: See TracChangeset for help on using the changeset viewer.