Changeset 12345
- Timestamp:
- 30 Dec 2014, 17:14:14 (10 years ago)
- 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 857 857 grok.template('documentpage') 858 858 pnav = 4 859 label = None # We render the context title in the documentpage template 859 860 860 861 @property 861 862 def form_fields(self): 862 863 return grok.AutoFields(self.context.form_fields_interface) 863 864 @property865 def label(self):866 return self.context.title867 868 864 869 865 class DocumentManageFormPage(IkobaEditFormPage): … … 1258 1254 grok.template('contractpage') 1259 1255 pnav = 4 1256 label = None # We render the context title in the contractpage template 1260 1257 1261 1258 @property … … 1266 1263 form_fields[field.__name__].custom_widget = HREFDisplayWidget 1267 1264 return form_fields 1268 1269 @property1270 def label(self):1271 return self.context.title1272 1265 1273 1266 -
main/waeup.ikoba/trunk/src/waeup/ikoba/customers/browser_templates/contractpage.pt
r12097 r12345 1 <br /> 1 2 <div class="wfstatus-sub" i18n:domain="waeup.ikoba"> 2 3 Contract State: <span tal:replace="context/translated_state"> … … 9 10 </div> 10 11 </div> 12 13 <h1 class="ikoba-content-label" 14 tal:condition="context/title|nothing" 15 tal:content="context/title">TITLE</h1> 11 16 12 17 <table class="form-table" i18n:domain="waeup.ikoba"> -
main/waeup.ikoba/trunk/src/waeup/ikoba/customers/browser_templates/documentpage.pt
r12090 r12345 1 <br /> 1 2 <div class="wfstatus-sub" i18n:domain="waeup.ikoba"> 2 3 Document State: <span tal:replace="context/translated_state"> … … 9 10 </div> 10 11 </div> 12 13 <h1 class="ikoba-content-label" 14 tal:condition="context/title|nothing" 15 tal:content="context/title">TITLE</h1> 11 16 12 17 <table class="form-table" i18n:domain="waeup.ikoba" -
main/waeup.ikoba/trunk/src/waeup/ikoba/customers/tests/test_browser.py
r12343 r12345 850 850 851 851 # Document can be edited 852 self.browser.getLink(docid ).click()852 self.browser.getLink(docid[:6]).click() 853 853 self.browser.getLink("Manage").click() 854 854 self.browser.getControl(name="form.title").value = 'My second doc' … … 931 931 932 932 # Document can be edited ... 933 self.browser.getLink(docid ).click()933 self.browser.getLink(docid[:6]).click() 934 934 self.browser.open(self.documents_path + '/' + docid + '/edit') 935 935 #self.browser.getLink("Edit").click()
Note: See TracChangeset for help on using the changeset viewer.