From 661301f057b105dc101646a20e5d5fcfde1f2098 Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Fri, 6 Sep 2019 02:44:13 -0400 Subject: [PATCH] Finalize icon Signed-off-by: Roberto Rosario --- mayan/apps/control_codes/icons.py | 11 +++++------ mayan/apps/control_codes/tests/test_control_codes.py | 4 ++-- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/mayan/apps/control_codes/icons.py b/mayan/apps/control_codes/icons.py index 1bd8501d4a..384ea9a1d6 100644 --- a/mayan/apps/control_codes/icons.py +++ b/mayan/apps/control_codes/icons.py @@ -4,10 +4,9 @@ from mayan.apps.appearance.classes import Icon icon_control_sheet = Icon( driver_name='fontawesome-layers', data=[ - {'class': 'far fa-file ', 'transform': 'grow-4'}, + {'class': 'far fa-file'}, {'class': 'fas fa-barcode', 'transform': 'shrink-6'}, - ], - #shadow_class='far fa-file', + ], shadow_class='far fa-file', ) icon_control_sheet_create = Icon( driver_name='fontawesome-layers', data=[ @@ -23,7 +22,7 @@ icon_control_sheet_list = icon_control_sheet icon_control_sheet_preview = Icon(driver_name='fontawesome', symbol='eye') icon_control_sheet_print = Icon(driver_name='fontawesome', symbol='print') -icon_control_sheet_code = Icon(driver_name='fontawesome', symbol='qrcode') +icon_control_sheet_code = Icon(driver_name='fontawesome', symbol='barcode') icon_control_sheet_code_delete = Icon( driver_name='fontawesome', symbol='times' ) @@ -31,9 +30,9 @@ icon_control_sheet_code_edit = Icon( driver_name='fontawesome', symbol='pencil-alt' ) icon_control_sheet_code_list = Icon( - driver_name='fontawesome', symbol='qrcode' + driver_name='fontawesome', symbol='barcode' ) icon_control_sheet_code_select = Icon( - driver_name='fontawesome-dual', primary_symbol='qrcode', + driver_name='fontawesome-dual', primary_symbol='barcode', secondary_symbol='plus' ) diff --git a/mayan/apps/control_codes/tests/test_control_codes.py b/mayan/apps/control_codes/tests/test_control_codes.py index fd9ac2b26d..2306273944 100644 --- a/mayan/apps/control_codes/tests/test_control_codes.py +++ b/mayan/apps/control_codes/tests/test_control_codes.py @@ -5,6 +5,8 @@ from mayan.apps.storage.utils import fs_cleanup, mkstemp from ..control_codes import ControlCodeAttributeEdit +TEST_ATTRIBUTE_VALUE = 'test value' + class ControlCodeAttributeEditTestCase(GenericDocumentTestCase): auto_upload_document = False @@ -18,8 +20,6 @@ class ControlCodeAttributeEditTestCase(GenericDocumentTestCase): super(ControlCodeAttributeEditTestCase, self).tearDown() def test_control_code(self): - TEST_ATTRIBUTE_VALUE = 'test value' - with open(self.test_document_path, mode='wb') as file_object: control_code = ControlCodeAttributeEdit( name='label', value=TEST_ATTRIBUTE_VALUE