add title to sortable columns; + title on sort link
This commit is contained in:
parent
d317612187
commit
0316bafffc
4 changed files with 14 additions and 15 deletions
|
@ -51,10 +51,11 @@
|
||||||
<tr>
|
<tr>
|
||||||
<th style="white-space: nowrap"
|
<th style="white-space: nowrap"
|
||||||
tal:repeat="col results/displayedColumns">
|
tal:repeat="col results/displayedColumns">
|
||||||
<a tal:define="colName col/name"
|
<a title="tooltip_sort_column"
|
||||||
tal:attributes="href python:
|
tal:define="colName col/name"
|
||||||
item.getSortUrl(tableName, colName)"
|
tal:omit-tag="python:not item.isSortableColumn(tableName, colName)"
|
||||||
tal:omit-tag="python:not item.isSortableColumn(tableName, colName)">
|
tal:attributes="href python:item.getSortUrl(tableName, colName)"
|
||||||
|
i18n:attributes="title">
|
||||||
<span tal:content="col/title"
|
<span tal:content="col/title"
|
||||||
tal:attributes="class col/cssClass"
|
tal:attributes="class col/cssClass"
|
||||||
i18n:translate="" />
|
i18n:translate="" />
|
||||||
|
|
Binary file not shown.
|
@ -3,7 +3,7 @@ msgstr ""
|
||||||
|
|
||||||
"Project-Id-Version: 0.13.1\n"
|
"Project-Id-Version: 0.13.1\n"
|
||||||
"POT-Creation-Date: 2007-05-22 12:00 CET\n"
|
"POT-Creation-Date: 2007-05-22 12:00 CET\n"
|
||||||
"PO-Revision-Date: 2015-03-20 12:00 CET\n"
|
"PO-Revision-Date: 2015-03-22 12:00 CET\n"
|
||||||
"Last-Translator: Helmut Merz <helmutm@cy55.de>\n"
|
"Last-Translator: Helmut Merz <helmutm@cy55.de>\n"
|
||||||
"Language-Team: loops developers <helmutm@cy55.de>\n"
|
"Language-Team: loops developers <helmutm@cy55.de>\n"
|
||||||
"MIME-Version: 1.0\n"
|
"MIME-Version: 1.0\n"
|
||||||
|
@ -89,6 +89,9 @@ msgstr "Thema ändern"
|
||||||
msgid "Please correct the indicated errors."
|
msgid "Please correct the indicated errors."
|
||||||
msgstr "Bitte berichtigen Sie die angezeigten Fehler."
|
msgstr "Bitte berichtigen Sie die angezeigten Fehler."
|
||||||
|
|
||||||
|
msgid "tooltip_sort_column"
|
||||||
|
msgstr "Nach dieser Spalte sortieren"
|
||||||
|
|
||||||
# expert (reporting)
|
# expert (reporting)
|
||||||
|
|
||||||
msgid "Download Data"
|
msgid "Download Data"
|
||||||
|
@ -509,6 +512,8 @@ msgstr "Wer?"
|
||||||
msgid "When?"
|
msgid "When?"
|
||||||
msgstr "Wann?"
|
msgstr "Wann?"
|
||||||
|
|
||||||
|
# personal stuff
|
||||||
|
|
||||||
msgid "Favorites"
|
msgid "Favorites"
|
||||||
msgstr "Lesezeichen"
|
msgstr "Lesezeichen"
|
||||||
|
|
||||||
|
@ -533,6 +538,8 @@ msgstr "Anmelden"
|
||||||
msgid "Presence"
|
msgid "Presence"
|
||||||
msgstr "Anwesenheit"
|
msgstr "Anwesenheit"
|
||||||
|
|
||||||
|
# general
|
||||||
|
|
||||||
msgid "Actions"
|
msgid "Actions"
|
||||||
msgstr "Aktionen"
|
msgstr "Aktionen"
|
||||||
|
|
||||||
|
|
|
@ -154,7 +154,7 @@ party = TargetField('userName', u'Party',
|
||||||
executionSteps=['query', 'sort', 'output'])
|
executionSteps=['query', 'sort', 'output'])
|
||||||
workTitle = Field('title', u'Title',
|
workTitle = Field('title', u'Title',
|
||||||
description=u'The short description of the work.',
|
description=u'The short description of the work.',
|
||||||
executionSteps=['output'])
|
executionSteps=['sort', 'output'])
|
||||||
workDescription = Field('description', u'Description',
|
workDescription = Field('description', u'Description',
|
||||||
description=u'The long description of the work.',
|
description=u'The long description of the work.',
|
||||||
executionSteps=['output'])
|
executionSteps=['output'])
|
||||||
|
@ -209,19 +209,10 @@ class WorkRow(BaseRow):
|
||||||
value = self.getDuration(attr)
|
value = self.getDuration(attr)
|
||||||
return value
|
return value
|
||||||
|
|
||||||
def xx_getPartyState(self, attr):
|
|
||||||
party = util.getObjectForUid(self.context.party)
|
|
||||||
ptype = adapted(party.conceptType)
|
|
||||||
for std in IOptions(ptype)('organize.stateful') or []:
|
|
||||||
stf = getAdapter(party, IStateful, name=std)
|
|
||||||
return stf.state
|
|
||||||
return None
|
|
||||||
|
|
||||||
attributeHandlers = dict(day=getDay,
|
attributeHandlers = dict(day=getDay,
|
||||||
dayStart=getStart, dayEnd=getEnd,
|
dayStart=getStart, dayEnd=getEnd,
|
||||||
dayFrom=getDay, dayTo=getDay,
|
dayFrom=getDay, dayTo=getDay,
|
||||||
duration=getDuration, effort=getEffort,)
|
duration=getDuration, effort=getEffort,)
|
||||||
#partyState=getPartyState)
|
|
||||||
|
|
||||||
|
|
||||||
class WorkReportInstance(ReportInstance):
|
class WorkReportInstance(ReportInstance):
|
||||||
|
|
Loading…
Add table
Reference in a new issue