add css class to report meta
This commit is contained in:
parent
40cc2c4079
commit
888fb8d62c
5 changed files with 8 additions and 8 deletions
|
@ -966,7 +966,7 @@ class LoggedIn(object):
|
|||
code = 'error'
|
||||
message = self.messages[code]
|
||||
return self.request.response.redirect(self.nextUrl(message, code))
|
||||
|
||||
|
||||
def nextUrl(self, message, code):
|
||||
camefrom = self.request.form.get('camefrom', '').strip('?')
|
||||
url = camefrom or self.request.URL[-1]
|
||||
|
|
|
@ -199,7 +199,7 @@ class BaseRelationView(BaseView):
|
|||
|
||||
@Lazy
|
||||
def relationInfo(self):
|
||||
predInfo = ', ' .join(p.title for p in self.predicates
|
||||
predInfo = ', ' .join(p.title for p in self.predicates
|
||||
if p != self.defaultPredicate)
|
||||
return ' | '.join(t for t in (self.description, predInfo) if t)
|
||||
|
||||
|
@ -210,7 +210,7 @@ class ConceptView(BaseView):
|
|||
templateName = 'concept.standard'
|
||||
macroName = 'conceptdata'
|
||||
partPrefix = 'part_'
|
||||
defaultParts = ('title', 'fields',
|
||||
defaultParts = ('title', 'fields',
|
||||
'children', 'resources', 'workitems', 'comments',)
|
||||
|
||||
def childViewFactory(self, *args, **kw):
|
||||
|
|
|
@ -158,7 +158,7 @@ class NodeView(BaseView):
|
|||
# check if there are any available actions;
|
||||
# store list of actions in macro object (evaluate only once)
|
||||
actions = [act for act in self.getAllowedActions('portlet',
|
||||
target=self.virtualTarget)
|
||||
target=self.virtualTarget)
|
||||
if act.condition]
|
||||
if actions:
|
||||
cm.register('portlet_right', 'actions', title=_(u'Actions'),
|
||||
|
@ -551,14 +551,14 @@ class NodeView(BaseView):
|
|||
self.registerDojoFormAll()
|
||||
if target is None:
|
||||
target = self.virtualTarget
|
||||
#target = self.getViewForTarget(self.virtualTargetObject,
|
||||
#target = self.getViewForTarget(self.virtualTargetObject,
|
||||
# setup=False)
|
||||
if category in self.actions:
|
||||
actions.extend(self.actions[category](self, target=target))
|
||||
if target is not None and self.setupTarget:
|
||||
actions.extend(target.getActions(
|
||||
category, page=self, target=target))
|
||||
if target is not None and target.context != self.virtualTargetObject:
|
||||
if target is not None and target.context != self.virtualTargetObject:
|
||||
# self view must be used directly for target
|
||||
actions.extend(self.view.getAdditionalActions(
|
||||
category, self, target))
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
reportView nocall:item"
|
||||
tal:attributes="class string:content-$level;">
|
||||
<metal:block use-macro="view/concept_macros/concepttitle" />
|
||||
<form method="post" name="report_data">
|
||||
<form method="post" name="report_data" class="report-meta">
|
||||
<tal:hidden define="params item/dynamicParams"
|
||||
tal:condition="nothing">
|
||||
<input type="hidden"
|
||||
|
|
|
@ -89,7 +89,7 @@ class RelationFieldInstance(FieldInstance, BaseRelationFieldInstance):
|
|||
|
||||
def marshall(self, value):
|
||||
if value:
|
||||
return dict(title=value.title,
|
||||
return dict(title=value.title,
|
||||
uid=util.getUidForObject(baseObject(value)))
|
||||
|
||||
def display(self, value):
|
||||
|
|
Loading…
Add table
Reference in a new issue