Changeset 12345


Ignore:
Timestamp:
30 Dec 2014, 17:14:14 (10 years ago)
Author:
Henrik Bettermann
Message:

Render content title below state/history box.

Location:
main/waeup.ikoba/trunk/src/waeup/ikoba/customers
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.ikoba/trunk/src/waeup/ikoba/customers/browser.py

    r12337 r12345  
    857857    grok.template('documentpage')
    858858    pnav = 4
     859    label = None  # We render the context title in the documentpage template
    859860
    860861    @property
    861862    def form_fields(self):
    862863        return grok.AutoFields(self.context.form_fields_interface)
    863 
    864     @property
    865     def label(self):
    866         return self.context.title
    867 
    868864
    869865class DocumentManageFormPage(IkobaEditFormPage):
     
    12581254    grok.template('contractpage')
    12591255    pnav = 4
     1256    label = None  # We render the context title in the contractpage template
    12601257
    12611258    @property
     
    12661263                form_fields[field.__name__].custom_widget = HREFDisplayWidget
    12671264        return form_fields
    1268 
    1269     @property
    1270     def label(self):
    1271         return self.context.title
    12721265
    12731266
  • main/waeup.ikoba/trunk/src/waeup/ikoba/customers/browser_templates/contractpage.pt

    r12097 r12345  
     1<br />
    12<div class="wfstatus-sub"  i18n:domain="waeup.ikoba">
    23  Contract State: <span tal:replace="context/translated_state">
     
    910  </div>
    1011</div>
     12
     13<h1 class="ikoba-content-label"
     14    tal:condition="context/title|nothing"
     15    tal:content="context/title">TITLE</h1>
    1116
    1217<table class="form-table" i18n:domain="waeup.ikoba">
  • main/waeup.ikoba/trunk/src/waeup/ikoba/customers/browser_templates/documentpage.pt

    r12090 r12345  
     1<br />
    12<div class="wfstatus-sub"  i18n:domain="waeup.ikoba">
    23  Document State: <span tal:replace="context/translated_state">
     
    910  </div>
    1011</div>
     12
     13<h1 class="ikoba-content-label"
     14    tal:condition="context/title|nothing"
     15    tal:content="context/title">TITLE</h1>
    1116
    1217<table class="form-table" i18n:domain="waeup.ikoba"
  • main/waeup.ikoba/trunk/src/waeup/ikoba/customers/tests/test_browser.py

    r12343 r12345  
    850850
    851851        # Document can be edited
    852         self.browser.getLink(docid).click()
     852        self.browser.getLink(docid[:6]).click()
    853853        self.browser.getLink("Manage").click()
    854854        self.browser.getControl(name="form.title").value = 'My second doc'
     
    931931
    932932        # Document can be edited ...
    933         self.browser.getLink(docid).click()
     933        self.browser.getLink(docid[:6]).click()
    934934        self.browser.open(self.documents_path + '/' + docid + '/edit')
    935935        #self.browser.getLink("Edit").click()
Note: See TracChangeset for help on using the changeset viewer.