fix check for showing tabview icon
This commit is contained in:
parent
4a6d5abefc
commit
5ef0c35ca0
1 changed files with 5 additions and 1 deletions
|
@ -42,7 +42,6 @@ template = ViewPageTemplateFile('view_macros.pt')
|
|||
|
||||
class SurveyView(ConceptView):
|
||||
|
||||
tabview = 'index.html'
|
||||
data = None
|
||||
errors = None
|
||||
|
||||
|
@ -51,6 +50,11 @@ class SurveyView(ConceptView):
|
|||
self.registerDojo()
|
||||
return template.macros['survey']
|
||||
|
||||
@Lazy
|
||||
def tabview(self):
|
||||
if self.editable:
|
||||
return 'index.html'
|
||||
|
||||
def results(self):
|
||||
result = []
|
||||
response = None
|
||||
|
|
Loading…
Add table
Reference in a new issue