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>
|
||||
<th style="white-space: nowrap"
|
||||
tal:repeat="col results/displayedColumns">
|
||||
<a tal:define="colName col/name"
|
||||
tal:attributes="href python:
|
||||
item.getSortUrl(tableName, colName)"
|
||||
tal:omit-tag="python:not item.isSortableColumn(tableName, colName)">
|
||||
<a title="tooltip_sort_column"
|
||||
tal:define="colName col/name"
|
||||
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"
|
||||
tal:attributes="class col/cssClass"
|
||||
i18n:translate="" />
|
||||
|
|
Binary file not shown.
|
@ -3,7 +3,7 @@ msgstr ""
|
|||
|
||||
"Project-Id-Version: 0.13.1\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"
|
||||
"Language-Team: loops developers <helmutm@cy55.de>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
|
@ -89,6 +89,9 @@ msgstr "Thema ändern"
|
|||
msgid "Please correct the indicated errors."
|
||||
msgstr "Bitte berichtigen Sie die angezeigten Fehler."
|
||||
|
||||
msgid "tooltip_sort_column"
|
||||
msgstr "Nach dieser Spalte sortieren"
|
||||
|
||||
# expert (reporting)
|
||||
|
||||
msgid "Download Data"
|
||||
|
@ -509,6 +512,8 @@ msgstr "Wer?"
|
|||
msgid "When?"
|
||||
msgstr "Wann?"
|
||||
|
||||
# personal stuff
|
||||
|
||||
msgid "Favorites"
|
||||
msgstr "Lesezeichen"
|
||||
|
||||
|
@ -533,6 +538,8 @@ msgstr "Anmelden"
|
|||
msgid "Presence"
|
||||
msgstr "Anwesenheit"
|
||||
|
||||
# general
|
||||
|
||||
msgid "Actions"
|
||||
msgstr "Aktionen"
|
||||
|
||||
|
|
|
@ -154,7 +154,7 @@ party = TargetField('userName', u'Party',
|
|||
executionSteps=['query', 'sort', 'output'])
|
||||
workTitle = Field('title', u'Title',
|
||||
description=u'The short description of the work.',
|
||||
executionSteps=['output'])
|
||||
executionSteps=['sort', 'output'])
|
||||
workDescription = Field('description', u'Description',
|
||||
description=u'The long description of the work.',
|
||||
executionSteps=['output'])
|
||||
|
@ -209,19 +209,10 @@ class WorkRow(BaseRow):
|
|||
value = self.getDuration(attr)
|
||||
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,
|
||||
dayStart=getStart, dayEnd=getEnd,
|
||||
dayFrom=getDay, dayTo=getDay,
|
||||
duration=getDuration, effort=getEffort,)
|
||||
#partyState=getPartyState)
|
||||
|
||||
|
||||
class WorkReportInstance(ReportInstance):
|
||||
|
|
Loading…
Add table
Reference in a new issue