backport changes from bbmaster2
This commit is contained in:
parent
129f4ba73d
commit
3721e5caf7
2 changed files with 6 additions and 2 deletions
|
@ -77,6 +77,10 @@ class Controller(object):
|
|||
IMemberInfoProvider)
|
||||
return provider is not None and provider.data or None
|
||||
|
||||
def setMainPage(self):
|
||||
# May be overridden by subclasse for setting special main index template
|
||||
pass
|
||||
|
||||
def getTemplateMacros(self, name, default):
|
||||
template = self.templates.get(name)
|
||||
if template is None:
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
<metal:form define-macro="form">
|
||||
<h1 i18n:translate=""
|
||||
tal:content="view/label | default">Edit</h1>
|
||||
tal:content="view/label|default">Edit</h1>
|
||||
<div>
|
||||
<form method="post">
|
||||
<input type="hidden" name="action" value="update" />
|
||||
|
@ -14,7 +14,7 @@
|
|||
<br />
|
||||
<input type="submit" name="submit" value="Save"
|
||||
i18n:attributes="value"
|
||||
tal:attributes="value view/label_submit | string:Save" />
|
||||
tal:attributes="value view/label_submit|string:Save" />
|
||||
</form>
|
||||
</div>
|
||||
</metal:form>
|
||||
|
|
Loading…
Add table
Reference in a new issue