work in progress: sortable tables
git-svn-id: svn://svn.cy55.de/Zope3/src/loops/trunk@2941 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
parent
31c4eae66f
commit
bb3b4b16ec
3 changed files with 18 additions and 6 deletions
|
@ -123,9 +123,13 @@
|
|||
<h2 i18n:translate="">Resources</h2>
|
||||
<table class="listing"
|
||||
metal:define-macro="resources">
|
||||
<tr>
|
||||
<tr tal:define="sortcol request/resources_sortcol|nothing;
|
||||
sortdir request/resources_sortdir|string:ascending">
|
||||
<th tal:condition="item/showCheckboxes|nothing"> </th>
|
||||
<th i18n:translate="">Title</th>
|
||||
<th i18n:translate="">Title
|
||||
<span tal:condition="python: sortcol == 'title'"
|
||||
tal:attributes="class sortdir">
|
||||
</span></th>
|
||||
<th i18n:translate="">Type</th>
|
||||
<th i18n:translate=""
|
||||
tal:condition="view/useVersioning">V</th>
|
||||
|
|
|
@ -60,6 +60,18 @@ table.listing-details tr.heading td h3 {
|
|||
border: none;
|
||||
}
|
||||
|
||||
table.listing th span.ascending {
|
||||
background-image: url(/++resource++cybertools.icons/arrowdown.gif);
|
||||
background-position: right;
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
|
||||
table.listing th span.descending {
|
||||
background-image: url(/++resource++cybertools.icons/arrowup.gif);
|
||||
background-position: right;
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
|
||||
dl.docutils dt {
|
||||
font-weight: bold;
|
||||
margin-top: 0.3em;
|
||||
|
|
|
@ -60,10 +60,6 @@ class BaseQueryView(BaseView):
|
|||
def listings(self):
|
||||
return concept_macros.macros
|
||||
|
||||
@property
|
||||
def listings(self):
|
||||
return concept_macros.macros
|
||||
|
||||
@Lazy
|
||||
def targetPredicate(self):
|
||||
return self.conceptManager['querytarget']
|
||||
|
|
Loading…
Add table
Reference in a new issue