Commit 0c2035a3 authored by Wolfgang's avatar Wolfgang

Generated app: fix filter/sort dropdown and next/previous page keyboard navigation

parent 1fbabebb
......@@ -235,7 +235,11 @@
<section class="panels">
<paper-card class="documents" heading="i18n(documents)">
<div class="card-content">
<pb-browse-docs id="document-loader" url="templates/documents.html"
<pb-browse-docs id="document-loader" url="templates/documents.html" sort-label="i18n(sort-by)"
sort-options='[{"label": "Title", "value": "title"},{"label": "Author", "value": "author"},{"label": "Modification Date", "value": "default"}]'
sort-by="title"
filter-options='[{"label": "Title", "value": "title"},{"label": "Author", "value": "author"},{"label": "File name", "value": "file"}]'
filter-by="title"
container="#document-list" auto="auto" history="history" login="login">
<pb-paginate slot="toolbar" id="paginate" per-page="10" range="5" found-label="i18n(browsing)"></pb-paginate>
</pb-browse-docs>
......
......@@ -2,11 +2,11 @@
<paper-icon-button id="tocToggle" class="toc-toggle" icon="icons:view-list"/>
<pb-zoom emit="transcription" direction="in" icon="icons:zoom-in"/>
<pb-zoom emit="transcription" direction="out" icon="icons:zoom-out"/>
<pb-navigation emit="transcription"
<pb-navigation emit="transcription" keyboard="left"
subscribe="transcription" direction="backward" unit="page">
<paper-icon-button icon="icons:chevron-left"/>
</pb-navigation>
<pb-navigation emit="transcription"
<pb-navigation emit="transcription" keyboard="right"
subscribe="transcription" direction="forward" unit="page">
<paper-icon-button icon="icons:chevron-right"/>
</pb-navigation>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment