diff --git a/bt5/erp5_document_scanner/ActionTemplateItem/portal_types/Preference/document_scanner_preference.xml b/bt5/erp5_document_scanner/ActionTemplateItem/portal_types/Preference/document_scanner_preference.xml new file mode 100644 index 0000000000000000000000000000000000000000..7a0c764808b48d98dbeb70c83c0edbdbc2d42d0c --- /dev/null +++ b/bt5/erp5_document_scanner/ActionTemplateItem/portal_types/Preference/document_scanner_preference.xml @@ -0,0 +1,81 @@ + + + + + + + + + + action + + AAAAAAAAAAI= + + + + categories + + + action_type/object_view + + + + + category + object_view + + + condition + + + + description + + + + + + icon + + + + id + document_scanner_preference + + + permissions + + + View + + + + + priority + 4.0 + + + title + Document Scanner + + + visible + 1 + + + + + + + + + + + + text + string:${object_url}/Preference_viewDocumentScannerSettting + + + + + diff --git a/bt5/erp5_document_scanner/PathTemplateItem/portal_alarms/remove_outdated_active_process.xml b/bt5/erp5_document_scanner/PathTemplateItem/portal_alarms/remove_outdated_active_process.xml new file mode 100644 index 0000000000000000000000000000000000000000..b09b324212df421e4310f293451acef68317d28c --- /dev/null +++ b/bt5/erp5_document_scanner/PathTemplateItem/portal_alarms/remove_outdated_active_process.xml @@ -0,0 +1,95 @@ + + + + + + + + + + active_sense_method_id + Alarm_removeOutdatedActiveProcess + + + automatic_solve + 0 + + + description + + + + + + enabled + 1 + + + id + remove_outdated_active_process + + + periodicity_day_frequency + 1 + + + periodicity_hour + + + + + + periodicity_minute + + + + + + periodicity_month + + + + + + periodicity_month_day + + + + + + periodicity_start_date + + + + + + + + + + + 1167609600.0 + GMT + + + + + + + periodicity_week + + + + + + portal_type + Alarm + + + title + Remove Outdated Active Process + + + + + diff --git a/bt5/erp5_document_scanner/PathTemplateItem/web_page_module/rjs_gadget_document_scanner_css.css b/bt5/erp5_document_scanner/PathTemplateItem/web_page_module/rjs_gadget_document_scanner_css.css index 7bc0cceb982c68bdb4100f34afaad386f24cf0cb..4ec4d6f3318d1ef66acc6caf8400a60224caadea 100644 --- a/bt5/erp5_document_scanner/PathTemplateItem/web_page_module/rjs_gadget_document_scanner_css.css +++ b/bt5/erp5_document_scanner/PathTemplateItem/web_page_module/rjs_gadget_document_scanner_css.css @@ -1,13 +1,11 @@ -.device-selector { +div[data-gadget-url$="gadget_document_scanner.html"] { text-align: center; - font-size: 19px; } -div[data-gadget-scope="field_your_document_scanner_gadget"] { - text-align: center; -} - -.video, .photo, .camera-output { +div[data-gadget-url$="gadget_document_scanner.html"] .photo, +div[data-gadget-url$="gadget_document_scanner.html"] .video, +div[data-gadget-url$="gadget_document_scanner.html"] .camera-output, +div[data-gadget-url$="gadget_document_scanner.html"] .canvas { max-width: 100%; width: auto; max-height: 500px; @@ -15,69 +13,67 @@ div[data-gadget-scope="field_your_document_scanner_gadget"] { text-align: center; } -.camera-input, .camera-output { +div[data-gadget-url$="gadget_document_scanner.html"] .camera-input { min-height: 360px; - display: none; } -.canvas { - display: none; - filter: brightness(1); -} - -.page-number { +div[data-gadget-url$="gadget_document_scanner.html"] .page-number { display: inline; } -.camera-header { +div[data-gadget-url$="gadget_document_scanner.html"] .camera-header { font-size: 12pt; font-weight: 400; } -.camera-input, .camera-output, .camera-header, .edit-picture { +div[data-gadget-url$="gadget_document_scanner.html"] .camera-input, +div[data-gadget-url$="gadget_document_scanner.html"] .camera-output, +div[data-gadget-url$="gadget_document_scanner.html"] .camera-header, +div[data-gadget-url$="gadget_document_scanner.html"] .edit-picture { text-align: center; } -.camera, .camera-input, .camera-output { +div[data-gadget-url$="gadget_document_scanner.html"] .camera, +div[data-gadget-url$="gadget_document_scanner.html"] .camera-input { display: inline-block; } -.capture-button, .reset-button { - display: inline; - margin: 0 2em 0 2em; -} - -.startbutton { - display: block; - margin: 0 auto; -} - -.reset-btn, .confirm-btn, .edit-btn, .take-picture-btn, - .capture-btn, .change-camera-btn, .confirm-btn { +div[data-gadget-url$="gadget_document_scanner.html"] .reset-btn, +div[data-gadget-url$="gadget_document_scanner.html"] .confirm-btn, +div[data-gadget-url$="gadget_document_scanner.html"] .edit-btn, +div[data-gadget-url$="gadget_document_scanner.html"] .take-picture-btn, +div[data-gadget-url$="gadget_document_scanner.html"] .capture-btn, +div[data-gadget-url$="gadget_document_scanner.html"] .change-camera-btn, +div[data-gadget-url$="gadget_document_scanner.html"] .confirm-btn { color: #212529; padding: 3pt; border: 1px solid rgba(0, 0, 0, 0.14); border-radius: 0.325em; + display: "inline-block"; + margin-right: 6pt; } -.take-picture-btn, .capture-btn, .confirm-btn, - .reset-btn, .confirm-btn, .change-camera-btn, .edit-btn { - display: none; +div[data-gadget-url$="gadget_document_scanner.html"] .ui-btn-icon-left:before { + margin-right: 6pt; } -.contentarea { - font-size: 16px; - font-family: "Lucida Grande", "Arial", sans-serif; - width: 760px; +div[data-gadget-url$="gadget_document_scanner.html"] button:disabled, +div[data-gadget-url$="gadget_document_scanner.html"] button[disabled] { + color: #999999; } -button:disabled, -button[disabled]{ - color: #999999; +div[data-gadget-url$="gadget_document_scanner.html"] > .camera > .thumbnail-list { + padding-top: .5em; +} + +div[data-gadget-url$="gadget_document_scanner.html"] .show-img { + width: 21%; +} + +div[data-gadget-url$="gadget_document_scanner.html"] .upload-error { + border: 3px solid red; } -@media only screen and (max-width: 600px) { - body { - max-height: 360px; - } +div[data-gadget-url$="gadget_document_scanner.html"] .new-btn { + font-size: 26pt; } \ No newline at end of file diff --git a/bt5/erp5_document_scanner/PathTemplateItem/web_page_module/rjs_gadget_document_scanner_css.xml b/bt5/erp5_document_scanner/PathTemplateItem/web_page_module/rjs_gadget_document_scanner_css.xml index 5b92866dd88f0ec95832a8dcddc7adfa8d5f518e..bb3b92ec18252c443ec11ef4895afb21840eebc9 100644 --- a/bt5/erp5_document_scanner/PathTemplateItem/web_page_module/rjs_gadget_document_scanner_css.xml +++ b/bt5/erp5_document_scanner/PathTemplateItem/web_page_module/rjs_gadget_document_scanner_css.xml @@ -69,7 +69,9 @@ content_type - text/css + + + default_reference @@ -167,9 +169,7 @@ action - - - + publish_alive actor @@ -188,50 +188,11 @@ - + - - - 1574261202.27 - UTC - - - - - - - validation_state - draft - - - - - action - publish_alive - - - actor - zope - - - comment - - - - error_message - - - - time - - - - - - 1574261323.29 @@ -262,51 +223,6 @@ _log - - - action - edit - - - actor - zope - - - comment - - - - error_message - - - - serial - 0.0.0.0 - - - state - current - - - time - - - - - - - - - - - 1574261202.26 - UTC - - - - - - action @@ -328,7 +244,7 @@ serial - 979.60822.46188.23978 + 981.42527.16024.21179 state @@ -338,148 +254,15 @@ time - - - - - - - 1574261231.12 - UTC - - - - - - - - - action - edit - - - actor - zope - - - comment - - - - - - error_message - - - - serial - 979.60823.12148.22101 - - - state - current - - - time - - - - - - - - - 1574261265.43 - UTC - - - - - - - - - action - edit - - - actor - zope - - - comment - - - - - - error_message - - - - serial - 980.2211.58828.61730 - - - state - current - - - time - - - - - - - - - 1574688148.62 - UTC - - - - - - - - - action - edit - - - actor - zope - - - comment - - - - - - error_message - - - - serial - 980.2402.31270.49459 - - - state - current - - - time - - - + + + - 1574697983.15 + 1575027025.78 UTC diff --git a/bt5/erp5_document_scanner/PathTemplateItem/web_page_module/rjs_gadget_document_scanner_html.html b/bt5/erp5_document_scanner/PathTemplateItem/web_page_module/rjs_gadget_document_scanner_html.html index 33040111f811445a10895581d297b610fecd10f2..130264f3545bc98a414aa3d93de17554e89a95c8 100644 --- a/bt5/erp5_document_scanner/PathTemplateItem/web_page_module/rjs_gadget_document_scanner_html.html +++ b/bt5/erp5_document_scanner/PathTemplateItem/web_page_module/rjs_gadget_document_scanner_html.html @@ -3,10 +3,13 @@ @@ -14,30 +17,12 @@ + + Gadget Document Scanner - - - Page 1 - - - Webcam is not available - - - - - - - - - Reset - Take Picture - Confirm - Edit - Change Camera - - + -