Documents: Add document page icons

Add icons to the document page image and document page reset
views.

Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
Roberto Rosario
2018-11-16 21:58:10 -04:00
parent 3b247bfb5f
commit 21a6ed4756
3 changed files with 12 additions and 2 deletions

View File

@@ -14,6 +14,8 @@
- Appearance: Allow subclassing the text area widget.
- Documents: Add transformation support to document image API with serialized
transformations.
- Documents: Add icons to the document page image and document page reset
views.
3.1.9 (2018-11-01)
==================

View File

@@ -52,13 +52,18 @@ icon_document_page_rotate_left = Icon(
icon_document_page_rotate_right = Icon(
driver_name='fontawesome', symbol='redo'
)
icon_document_page_view = Icon(
driver_name='fontawesome', symbol='image'
)
icon_document_page_view_reset = Icon(
driver_name='fontawesome', symbol='sync'
)
icon_document_page_zoom_in = Icon(
driver_name='fontawesome', symbol='search-plus'
)
icon_document_page_zoom_out = Icon(
driver_name='fontawesome', symbol='search-minus'
)
icon_document_pages = Icon(driver_name='fontawesome', symbol='copy')
icon_document_preview = Icon(driver_name='fontawesome', symbol='eye')
icon_document_properties = Icon(driver_name='fontawesome', symbol='info')

View File

@@ -14,7 +14,8 @@ from .icons import (
icon_document_page_navigation_first, icon_document_page_navigation_last,
icon_document_page_navigation_next, icon_document_page_navigation_previous,
icon_document_page_return, icon_document_page_rotate_left,
icon_document_page_rotate_right, icon_document_page_zoom_in,
icon_document_page_rotate_right, icon_document_page_view,
icon_document_page_view_reset, icon_document_page_zoom_in,
icon_document_page_zoom_out, icon_document_pages, icon_document_preview,
icon_document_properties, icon_document_type_create,
icon_document_type_delete, icon_document_type_edit,
@@ -286,10 +287,12 @@ link_document_page_rotate_right = Link(
text=_('Rotate right'), view='documents:document_page_rotate_right',
)
link_document_page_view = Link(
icon_class=icon_document_page_view,
permissions=(permission_document_view,), text=_('Page image'),
view='documents:document_page_view', args='resolved_object.pk'
)
link_document_page_view_reset = Link(
icon_class=icon_document_page_view_reset,
permissions=(permission_document_view,), text=_('Reset view'),
view='documents:document_page_view_reset', args='resolved_object.pk'
)