From c128209e7f55854c40e4673b9224f0aa123a081a Mon Sep 17 00:00:00 2001 From: Taka Date: Sat, 26 Jan 2019 08:36:59 +0000 Subject: [PATCH] Added support for BFP's "Blood & Jungle" and "Poland In Flames". --- .../default-template-pack/nationalities.json | 28 +- .../data/default-template-pack/ob_ordnance.j2 | 5 +- .../ob_ordnance_ma_notes.j2 | 2 + .../data/default-template-pack/ob_vehicles.j2 | 5 +- .../ob_vehicles_ma_notes.j2 | 2 + .../webapp/data/expected-multiple-images.json | 16 + .../webapp/data/extensions/bfp-cobra.json | 181 ++++ .../webapp/data/extensions/bfp-pif.json | 543 ++++++++++ .../webapp/data/extensions/bfp-v403.json | 938 ++++++++++++++++++ .../webapp/data/extensions/kgs-v1.1.json | 4 + .../data/ordnance/allied-minor/belgian.json | 5 +- .../data/ordnance/allied-minor/common.json | 6 +- .../webapp/data/ordnance/american.json | 9 +- .../data/ordnance/axis-minor/bulgarian.json | 6 +- .../data/ordnance/axis-minor/common.json | 6 +- .../data/ordnance/axis-minor/croatian.json | 3 +- .../data/ordnance/axis-minor/romanian.json | 9 +- .../data/ordnance/axis-minor/slovakian.json | 2 +- .../webapp/data/ordnance/british.json | 9 +- .../webapp/data/ordnance/chinese.json | 8 +- .../webapp/data/ordnance/chinese~gmd.json | 1 + .../data/ordnance/communist-forces/cvpa.json | 9 +- .../webapp/data/ordnance/finnish.json | 24 +- .../webapp/data/ordnance/french.json | 18 +- .../webapp/data/ordnance/german.json | 7 +- .../webapp/data/ordnance/italian.json | 12 +- .../webapp/data/ordnance/japanese.json | 14 +- .../webapp/data/ordnance/russian.json | 9 +- .../british-commonwealth-forces-korea.json | 2 +- .../data/ordnance/un-forces/common.json | 3 +- .../data/ordnance/un-forces/us-rok-ounc.json | 9 +- .../webapp/data/vasl-overrides.json | 31 + .../webapp/data/vehicles/chinese~gmd.json | 1 + vasl_templates/webapp/file_server/utils.py | 14 +- vasl_templates/webapp/file_server/vasl_mod.py | 22 +- vasl_templates/webapp/snippets.py | 32 +- .../webapp/static/css/edit-vo-dialog.css | 37 +- .../webapp/static/images/flags/anzac.png | Bin 0 -> 28355 bytes .../webapp/static/images/flags/burmese.png | Bin 0 -> 6382 bytes .../{chinese-gmd.png => chinese~gmd.png} | Bin .../webapp/static/images/flags/filipino.png | Bin 0 -> 33433 bytes .../webapp/static/images/flags/indonesian.png | Bin 0 -> 4264 bytes .../webapp/static/images/flags/polish.png | Bin 20842 -> 12512 bytes .../webapp/static/images/flags/slovakian.png | Bin 14143 -> 11768 bytes .../webapp/static/images/flags/thai.png | Bin 0 -> 7284 bytes .../webapp/static/images/spacer.png | Bin 0 -> 322 bytes vasl_templates/webapp/static/main.js | 10 +- vasl_templates/webapp/static/snippets.js | 94 +- vasl_templates/webapp/static/sortable.js | 1 + vasl_templates/webapp/static/utils.js | 2 +- vasl_templates/webapp/static/vo.js | 11 +- vasl_templates/webapp/static/vo2.js | 92 +- .../webapp/templates/edit-vo-dialog.html | 17 +- .../webapp/templates/vo-notes-report.html | 27 +- .../webapp/templates/vo-report.html | 4 +- .../data/default-template-pack/ob_ordnance.j2 | 3 +- .../data/default-template-pack/ob_vehicles.j2 | 3 +- .../tests/fixtures/data/vehicles/german.json | 4 + .../fixtures/vo-reports/landing-craft.txt | 4 +- .../ordnance/allied-minor-common/1940.txt | 8 +- .../ordnance/allied-minor-common/1941.txt | 8 +- .../ordnance/allied-minor-common/1942.txt | 8 +- .../ordnance/allied-minor-common/1943.txt | 8 +- .../ordnance/allied-minor-common/1944.txt | 8 +- .../ordnance/allied-minor-common/1945.txt | 8 +- .../vo-reports/ordnance/american/1940.txt | 11 +- .../vo-reports/ordnance/american/1941.txt | 11 +- .../vo-reports/ordnance/american/1942.txt | 11 +- .../vo-reports/ordnance/american/1943.txt | 11 +- .../vo-reports/ordnance/american/1944.txt | 11 +- .../vo-reports/ordnance/american/1945.txt | 11 +- .../ordnance/axis-minor-common/1940.txt | 8 +- .../ordnance/axis-minor-common/1941.txt | 8 +- .../ordnance/axis-minor-common/1942.txt | 8 +- .../ordnance/axis-minor-common/1943.txt | 8 +- .../ordnance/axis-minor-common/1944.txt | 8 +- .../ordnance/axis-minor-common/1945.txt | 8 +- .../vo-reports/ordnance/belgian/1940.txt | 8 +- .../vo-reports/ordnance/belgian/1941.txt | 8 +- .../vo-reports/ordnance/belgian/1942.txt | 8 +- .../vo-reports/ordnance/belgian/1943.txt | 8 +- .../vo-reports/ordnance/belgian/1944.txt | 8 +- .../vo-reports/ordnance/belgian/1945.txt | 8 +- .../vo-reports/ordnance/british/1940.txt | 10 +- .../vo-reports/ordnance/british/1941.txt | 10 +- .../vo-reports/ordnance/british/1942.txt | 10 +- .../vo-reports/ordnance/british/1943.txt | 10 +- .../vo-reports/ordnance/british/1944.txt | 10 +- .../vo-reports/ordnance/british/1945.txt | 10 +- .../vo-reports/ordnance/bulgarian/1940.txt | 20 +- .../vo-reports/ordnance/bulgarian/1941.txt | 20 +- .../vo-reports/ordnance/bulgarian/1942.txt | 20 +- .../vo-reports/ordnance/bulgarian/1943.txt | 20 +- .../vo-reports/ordnance/bulgarian/1944.txt | 20 +- .../vo-reports/ordnance/bulgarian/1945.txt | 20 +- .../vo-reports/ordnance/chinese/1940.txt | 10 +- .../vo-reports/ordnance/chinese/1941.txt | 10 +- .../vo-reports/ordnance/chinese/1942.txt | 10 +- .../vo-reports/ordnance/chinese/1943.txt | 10 +- .../vo-reports/ordnance/chinese/1944.txt | 10 +- .../vo-reports/ordnance/chinese/1945.txt | 10 +- .../vo-reports/ordnance/chinese~gmd/1940.txt | 40 + .../vo-reports/ordnance/chinese~gmd/1941.txt | 40 + .../vo-reports/ordnance/chinese~gmd/1942.txt | 40 + .../vo-reports/ordnance/chinese~gmd/1943.txt | 40 + .../vo-reports/ordnance/chinese~gmd/1944.txt | 40 + .../vo-reports/ordnance/chinese~gmd/1945.txt | 40 + .../vo-reports/ordnance/croatian/1940.txt | 8 +- .../vo-reports/ordnance/croatian/1941.txt | 8 +- .../vo-reports/ordnance/croatian/1942.txt | 8 +- .../vo-reports/ordnance/croatian/1943.txt | 8 +- .../vo-reports/ordnance/croatian/1944.txt | 8 +- .../vo-reports/ordnance/croatian/1945.txt | 8 +- .../vo-reports/ordnance/danish/1940.txt | 4 +- .../vo-reports/ordnance/danish/1941.txt | 4 +- .../vo-reports/ordnance/danish/1942.txt | 4 +- .../vo-reports/ordnance/danish/1943.txt | 4 +- .../vo-reports/ordnance/danish/1944.txt | 4 +- .../vo-reports/ordnance/danish/1945.txt | 4 +- .../vo-reports/ordnance/dutch/1940.txt | 11 +- .../vo-reports/ordnance/dutch/1941.txt | 11 +- .../vo-reports/ordnance/dutch/1942.txt | 11 +- .../vo-reports/ordnance/dutch/1943.txt | 11 +- .../vo-reports/ordnance/dutch/1944.txt | 11 +- .../vo-reports/ordnance/dutch/1945.txt | 11 +- .../vo-reports/ordnance/finnish/1940.txt | 20 +- .../vo-reports/ordnance/finnish/1941.txt | 20 +- .../vo-reports/ordnance/finnish/1942.txt | 20 +- .../vo-reports/ordnance/finnish/1943.txt | 20 +- .../vo-reports/ordnance/finnish/1944.txt | 20 +- .../vo-reports/ordnance/finnish/1945.txt | 20 +- .../vo-reports/ordnance/french/1940.txt | 46 +- .../vo-reports/ordnance/french/1941.txt | 46 +- .../vo-reports/ordnance/french/1942.txt | 46 +- .../vo-reports/ordnance/french/1943.txt | 46 +- .../vo-reports/ordnance/french/1944.txt | 46 +- .../vo-reports/ordnance/french/1945.txt | 46 +- .../vo-reports/ordnance/german/1940.txt | 68 +- .../vo-reports/ordnance/german/1941.txt | 68 +- .../vo-reports/ordnance/german/1942.txt | 68 +- .../vo-reports/ordnance/german/1943.txt | 68 +- .../vo-reports/ordnance/german/1944.txt | 68 +- .../vo-reports/ordnance/german/1945.txt | 68 +- .../vo-reports/ordnance/greek/1940.txt | 4 +- .../vo-reports/ordnance/greek/1941.txt | 4 +- .../vo-reports/ordnance/greek/1942.txt | 4 +- .../vo-reports/ordnance/greek/1943.txt | 4 +- .../vo-reports/ordnance/greek/1944.txt | 4 +- .../vo-reports/ordnance/greek/1945.txt | 4 +- .../vo-reports/ordnance/hungarian/1940.txt | 4 +- .../vo-reports/ordnance/hungarian/1941.txt | 4 +- .../vo-reports/ordnance/hungarian/1942.txt | 4 +- .../vo-reports/ordnance/hungarian/1943.txt | 4 +- .../vo-reports/ordnance/hungarian/1944.txt | 4 +- .../vo-reports/ordnance/hungarian/1945.txt | 4 +- .../vo-reports/ordnance/indonesian/1940.txt | 10 + .../vo-reports/ordnance/indonesian/1941.txt | 10 + .../vo-reports/ordnance/indonesian/1942.txt | 10 + .../vo-reports/ordnance/indonesian/1943.txt | 10 + .../vo-reports/ordnance/indonesian/1944.txt | 10 + .../vo-reports/ordnance/indonesian/1945.txt | 10 + .../vo-reports/ordnance/italian/1940.txt | 44 +- .../vo-reports/ordnance/italian/1941.txt | 44 +- .../vo-reports/ordnance/italian/1942.txt | 44 +- .../vo-reports/ordnance/italian/1943.txt | 44 +- .../vo-reports/ordnance/italian/1944.txt | 44 +- .../vo-reports/ordnance/italian/1945.txt | 44 +- .../vo-reports/ordnance/japanese/1940.txt | 62 +- .../vo-reports/ordnance/japanese/1941.txt | 62 +- .../vo-reports/ordnance/japanese/1942.txt | 62 +- .../vo-reports/ordnance/japanese/1943.txt | 62 +- .../vo-reports/ordnance/japanese/1944.txt | 62 +- .../vo-reports/ordnance/japanese/1945.txt | 62 +- .../vo-reports/ordnance/polish/1940.txt | 24 +- .../vo-reports/ordnance/polish/1941.txt | 24 +- .../vo-reports/ordnance/polish/1942.txt | 24 +- .../vo-reports/ordnance/polish/1943.txt | 24 +- .../vo-reports/ordnance/polish/1944.txt | 24 +- .../vo-reports/ordnance/polish/1945.txt | 24 +- .../vo-reports/ordnance/romanian/1940.txt | 48 +- .../vo-reports/ordnance/romanian/1941.txt | 48 +- .../vo-reports/ordnance/romanian/1942.txt | 48 +- .../vo-reports/ordnance/romanian/1943.txt | 48 +- .../vo-reports/ordnance/romanian/1944.txt | 48 +- .../vo-reports/ordnance/romanian/1945.txt | 48 +- .../vo-reports/ordnance/russian/1940.txt | 65 +- .../vo-reports/ordnance/russian/1941.txt | 65 +- .../vo-reports/ordnance/russian/1942.txt | 65 +- .../vo-reports/ordnance/russian/1943.txt | 65 +- .../vo-reports/ordnance/russian/1944.txt | 65 +- .../vo-reports/ordnance/russian/1945.txt | 65 +- .../vo-reports/ordnance/slovakian/1940.txt | 18 +- .../vo-reports/ordnance/slovakian/1941.txt | 18 +- .../vo-reports/ordnance/slovakian/1942.txt | 18 +- .../vo-reports/ordnance/slovakian/1943.txt | 18 +- .../vo-reports/ordnance/slovakian/1944.txt | 18 +- .../vo-reports/ordnance/slovakian/1945.txt | 18 +- .../vo-reports/ordnance/thai/1940.txt | 8 + .../vo-reports/ordnance/thai/1941.txt | 8 + .../vo-reports/ordnance/thai/1942.txt | 8 + .../vo-reports/ordnance/thai/1943.txt | 8 + .../vo-reports/ordnance/thai/1944.txt | 8 + .../vo-reports/ordnance/thai/1945.txt | 8 + .../vo-reports/ordnance/yugoslavian/1940.txt | 4 +- .../vo-reports/ordnance/yugoslavian/1941.txt | 4 +- .../vo-reports/ordnance/yugoslavian/1942.txt | 4 +- .../vo-reports/ordnance/yugoslavian/1943.txt | 4 +- .../vo-reports/ordnance/yugoslavian/1944.txt | 4 +- .../vo-reports/ordnance/yugoslavian/1945.txt | 4 +- .../vehicles/allied-minor-common/1940.txt | 4 +- .../vehicles/allied-minor-common/1941.txt | 4 +- .../vehicles/allied-minor-common/1942.txt | 4 +- .../vehicles/allied-minor-common/1943.txt | 4 +- .../vehicles/allied-minor-common/1944.txt | 4 +- .../vehicles/allied-minor-common/1945.txt | 4 +- .../vo-reports/vehicles/american/1940.txt | 33 +- .../vo-reports/vehicles/american/1941.txt | 33 +- .../vo-reports/vehicles/american/1942.txt | 33 +- .../vo-reports/vehicles/american/1943.txt | 33 +- .../vo-reports/vehicles/american/1944.txt | 33 +- .../vo-reports/vehicles/american/1945.txt | 33 +- .../vo-reports/vehicles/anzac/1940.txt | 8 + .../vo-reports/vehicles/anzac/1941.txt | 8 + .../vo-reports/vehicles/anzac/1942.txt | 8 + .../vo-reports/vehicles/anzac/1943.txt | 8 + .../vo-reports/vehicles/anzac/1944.txt | 8 + .../vo-reports/vehicles/anzac/1945.txt | 8 + .../vehicles/axis-minor-common/1940.txt | 4 +- .../vehicles/axis-minor-common/1941.txt | 4 +- .../vehicles/axis-minor-common/1942.txt | 4 +- .../vehicles/axis-minor-common/1943.txt | 4 +- .../vehicles/axis-minor-common/1944.txt | 4 +- .../vehicles/axis-minor-common/1945.txt | 4 +- .../vo-reports/vehicles/belgian/1940.txt | 4 +- .../vo-reports/vehicles/belgian/1941.txt | 4 +- .../vo-reports/vehicles/belgian/1942.txt | 4 +- .../vo-reports/vehicles/belgian/1943.txt | 4 +- .../vo-reports/vehicles/belgian/1944.txt | 4 +- .../vo-reports/vehicles/belgian/1945.txt | 4 +- .../vo-reports/vehicles/british/1940.txt | 4 +- .../vo-reports/vehicles/british/1941.txt | 4 +- .../vo-reports/vehicles/british/1942.txt | 4 +- .../vo-reports/vehicles/british/1943.txt | 4 +- .../vo-reports/vehicles/british/1944.txt | 4 +- .../vo-reports/vehicles/british/1945.txt | 4 +- .../vo-reports/vehicles/bulgarian/1940.txt | 4 +- .../vo-reports/vehicles/bulgarian/1941.txt | 4 +- .../vo-reports/vehicles/bulgarian/1942.txt | 4 +- .../vo-reports/vehicles/bulgarian/1943.txt | 4 +- .../vo-reports/vehicles/bulgarian/1944.txt | 4 +- .../vo-reports/vehicles/bulgarian/1945.txt | 4 +- .../vo-reports/vehicles/chinese/1940.txt | 55 +- .../vo-reports/vehicles/chinese/1941.txt | 55 +- .../vo-reports/vehicles/chinese/1942.txt | 55 +- .../vo-reports/vehicles/chinese/1943.txt | 55 +- .../vo-reports/vehicles/chinese/1944.txt | 55 +- .../vo-reports/vehicles/chinese/1945.txt | 55 +- .../vo-reports/vehicles/chinese~gmd/1940.txt | 34 + .../vo-reports/vehicles/chinese~gmd/1941.txt | 34 + .../vo-reports/vehicles/chinese~gmd/1942.txt | 34 + .../vo-reports/vehicles/chinese~gmd/1943.txt | 34 + .../vo-reports/vehicles/chinese~gmd/1944.txt | 34 + .../vo-reports/vehicles/chinese~gmd/1945.txt | 34 + .../vo-reports/vehicles/croatian/1940.txt | 4 +- .../vo-reports/vehicles/croatian/1941.txt | 4 +- .../vo-reports/vehicles/croatian/1942.txt | 4 +- .../vo-reports/vehicles/croatian/1943.txt | 4 +- .../vo-reports/vehicles/croatian/1944.txt | 4 +- .../vo-reports/vehicles/croatian/1945.txt | 4 +- .../vo-reports/vehicles/danish/1940.txt | 4 +- .../vo-reports/vehicles/danish/1941.txt | 4 +- .../vo-reports/vehicles/danish/1942.txt | 4 +- .../vo-reports/vehicles/danish/1943.txt | 4 +- .../vo-reports/vehicles/danish/1944.txt | 4 +- .../vo-reports/vehicles/danish/1945.txt | 4 +- .../vo-reports/vehicles/dutch/1940.txt | 24 +- .../vo-reports/vehicles/dutch/1941.txt | 24 +- .../vo-reports/vehicles/dutch/1942.txt | 24 +- .../vo-reports/vehicles/dutch/1943.txt | 24 +- .../vo-reports/vehicles/dutch/1944.txt | 24 +- .../vo-reports/vehicles/dutch/1945.txt | 24 +- .../vo-reports/vehicles/finnish/1940.txt | 4 +- .../vo-reports/vehicles/finnish/1941.txt | 4 +- .../vo-reports/vehicles/finnish/1942.txt | 4 +- .../vo-reports/vehicles/finnish/1943.txt | 4 +- .../vo-reports/vehicles/finnish/1944.txt | 4 +- .../vo-reports/vehicles/finnish/1945.txt | 4 +- .../vo-reports/vehicles/french/1940.txt | 4 +- .../vo-reports/vehicles/french/1941.txt | 4 +- .../vo-reports/vehicles/french/1942.txt | 4 +- .../vo-reports/vehicles/french/1943.txt | 4 +- .../vo-reports/vehicles/french/1944.txt | 4 +- .../vo-reports/vehicles/french/1945.txt | 4 +- .../vo-reports/vehicles/german/1940.txt | 251 ++--- .../vo-reports/vehicles/german/1941.txt | 251 ++--- .../vo-reports/vehicles/german/1942.txt | 251 ++--- .../vo-reports/vehicles/german/1943.txt | 251 ++--- .../vo-reports/vehicles/german/1944.txt | 251 ++--- .../vo-reports/vehicles/german/1945.txt | 251 ++--- .../vo-reports/vehicles/greek/1940.txt | 4 +- .../vo-reports/vehicles/greek/1941.txt | 4 +- .../vo-reports/vehicles/greek/1942.txt | 4 +- .../vo-reports/vehicles/greek/1943.txt | 4 +- .../vo-reports/vehicles/greek/1944.txt | 4 +- .../vo-reports/vehicles/greek/1945.txt | 4 +- .../vo-reports/vehicles/hungarian/1940.txt | 4 +- .../vo-reports/vehicles/hungarian/1941.txt | 4 +- .../vo-reports/vehicles/hungarian/1942.txt | 4 +- .../vo-reports/vehicles/hungarian/1943.txt | 4 +- .../vo-reports/vehicles/hungarian/1944.txt | 4 +- .../vo-reports/vehicles/hungarian/1945.txt | 4 +- .../vo-reports/vehicles/indonesian/1940.txt | 17 + .../vo-reports/vehicles/indonesian/1941.txt | 17 + .../vo-reports/vehicles/indonesian/1942.txt | 17 + .../vo-reports/vehicles/indonesian/1943.txt | 17 + .../vo-reports/vehicles/indonesian/1944.txt | 17 + .../vo-reports/vehicles/indonesian/1945.txt | 17 + .../vo-reports/vehicles/italian/1940.txt | 4 +- .../vo-reports/vehicles/italian/1941.txt | 4 +- .../vo-reports/vehicles/italian/1942.txt | 4 +- .../vo-reports/vehicles/italian/1943.txt | 4 +- .../vo-reports/vehicles/italian/1944.txt | 4 +- .../vo-reports/vehicles/italian/1945.txt | 4 +- .../vo-reports/vehicles/japanese/1940.txt | 30 +- .../vo-reports/vehicles/japanese/1941.txt | 30 +- .../vo-reports/vehicles/japanese/1942.txt | 30 +- .../vo-reports/vehicles/japanese/1943.txt | 30 +- .../vo-reports/vehicles/japanese/1944.txt | 30 +- .../vo-reports/vehicles/japanese/1945.txt | 30 +- .../vo-reports/vehicles/polish/1940.txt | 50 +- .../vo-reports/vehicles/polish/1941.txt | 50 +- .../vo-reports/vehicles/polish/1942.txt | 50 +- .../vo-reports/vehicles/polish/1943.txt | 50 +- .../vo-reports/vehicles/polish/1944.txt | 50 +- .../vo-reports/vehicles/polish/1945.txt | 50 +- .../vo-reports/vehicles/romanian/1940.txt | 4 +- .../vo-reports/vehicles/romanian/1941.txt | 4 +- .../vo-reports/vehicles/romanian/1942.txt | 4 +- .../vo-reports/vehicles/romanian/1943.txt | 4 +- .../vo-reports/vehicles/romanian/1944.txt | 4 +- .../vo-reports/vehicles/romanian/1945.txt | 4 +- .../vo-reports/vehicles/russian/1940.txt | 192 ++-- .../vo-reports/vehicles/russian/1941.txt | 192 ++-- .../vo-reports/vehicles/russian/1942.txt | 192 ++-- .../vo-reports/vehicles/russian/1943.txt | 192 ++-- .../vo-reports/vehicles/russian/1944.txt | 192 ++-- .../vo-reports/vehicles/russian/1945.txt | 192 ++-- .../vo-reports/vehicles/slovakian/1940.txt | 4 +- .../vo-reports/vehicles/slovakian/1941.txt | 4 +- .../vo-reports/vehicles/slovakian/1942.txt | 4 +- .../vo-reports/vehicles/slovakian/1943.txt | 4 +- .../vo-reports/vehicles/slovakian/1944.txt | 4 +- .../vo-reports/vehicles/slovakian/1945.txt | 4 +- .../vo-reports/vehicles/thai/1940.txt | 10 + .../vo-reports/vehicles/thai/1941.txt | 10 + .../vo-reports/vehicles/thai/1942.txt | 10 + .../vo-reports/vehicles/thai/1943.txt | 10 + .../vo-reports/vehicles/thai/1944.txt | 10 + .../vo-reports/vehicles/thai/1945.txt | 10 + .../vo-reports/vehicles/yugoslavian/1940.txt | 4 +- .../vo-reports/vehicles/yugoslavian/1941.txt | 4 +- .../vo-reports/vehicles/yugoslavian/1942.txt | 4 +- .../vo-reports/vehicles/yugoslavian/1943.txt | 4 +- .../vo-reports/vehicles/yugoslavian/1944.txt | 4 +- .../vo-reports/vehicles/yugoslavian/1945.txt | 4 +- .../webapp/tests/test_capabilities.py | 163 ++- .../webapp/tests/test_vasl_extensions.py | 158 ++- .../webapp/tests/test_vehicles_ordnance.py | 7 + vasl_templates/webapp/tests/test_vo_notes.py | 16 +- .../webapp/tests/test_vo_reports.py | 43 +- vasl_templates/webapp/tests/utils.py | 6 +- vasl_templates/webapp/utils.py | 2 +- vasl_templates/webapp/vo.py | 57 +- vasl_templates/webapp/vo_notes.py | 38 +- 374 files changed, 7354 insertions(+), 3402 deletions(-) create mode 100644 vasl_templates/webapp/data/extensions/bfp-cobra.json create mode 100644 vasl_templates/webapp/data/extensions/bfp-pif.json create mode 100644 vasl_templates/webapp/data/extensions/bfp-v403.json create mode 100644 vasl_templates/webapp/data/ordnance/chinese~gmd.json create mode 100644 vasl_templates/webapp/data/vehicles/chinese~gmd.json create mode 100644 vasl_templates/webapp/static/images/flags/anzac.png create mode 100644 vasl_templates/webapp/static/images/flags/burmese.png rename vasl_templates/webapp/static/images/flags/{chinese-gmd.png => chinese~gmd.png} (100%) create mode 100644 vasl_templates/webapp/static/images/flags/filipino.png create mode 100644 vasl_templates/webapp/static/images/flags/indonesian.png create mode 100644 vasl_templates/webapp/static/images/flags/thai.png create mode 100644 vasl_templates/webapp/static/images/spacer.png create mode 100644 vasl_templates/webapp/tests/fixtures/vo-reports/ordnance/chinese~gmd/1940.txt create mode 100644 vasl_templates/webapp/tests/fixtures/vo-reports/ordnance/chinese~gmd/1941.txt create mode 100644 vasl_templates/webapp/tests/fixtures/vo-reports/ordnance/chinese~gmd/1942.txt create mode 100644 vasl_templates/webapp/tests/fixtures/vo-reports/ordnance/chinese~gmd/1943.txt create mode 100644 vasl_templates/webapp/tests/fixtures/vo-reports/ordnance/chinese~gmd/1944.txt create mode 100644 vasl_templates/webapp/tests/fixtures/vo-reports/ordnance/chinese~gmd/1945.txt create mode 100644 vasl_templates/webapp/tests/fixtures/vo-reports/ordnance/indonesian/1940.txt create mode 100644 vasl_templates/webapp/tests/fixtures/vo-reports/ordnance/indonesian/1941.txt create mode 100644 vasl_templates/webapp/tests/fixtures/vo-reports/ordnance/indonesian/1942.txt create mode 100644 vasl_templates/webapp/tests/fixtures/vo-reports/ordnance/indonesian/1943.txt create mode 100644 vasl_templates/webapp/tests/fixtures/vo-reports/ordnance/indonesian/1944.txt create mode 100644 vasl_templates/webapp/tests/fixtures/vo-reports/ordnance/indonesian/1945.txt create mode 100644 vasl_templates/webapp/tests/fixtures/vo-reports/ordnance/thai/1940.txt create mode 100644 vasl_templates/webapp/tests/fixtures/vo-reports/ordnance/thai/1941.txt create mode 100644 vasl_templates/webapp/tests/fixtures/vo-reports/ordnance/thai/1942.txt create mode 100644 vasl_templates/webapp/tests/fixtures/vo-reports/ordnance/thai/1943.txt create mode 100644 vasl_templates/webapp/tests/fixtures/vo-reports/ordnance/thai/1944.txt create mode 100644 vasl_templates/webapp/tests/fixtures/vo-reports/ordnance/thai/1945.txt create mode 100644 vasl_templates/webapp/tests/fixtures/vo-reports/vehicles/anzac/1940.txt create mode 100644 vasl_templates/webapp/tests/fixtures/vo-reports/vehicles/anzac/1941.txt create mode 100644 vasl_templates/webapp/tests/fixtures/vo-reports/vehicles/anzac/1942.txt create mode 100644 vasl_templates/webapp/tests/fixtures/vo-reports/vehicles/anzac/1943.txt create mode 100644 vasl_templates/webapp/tests/fixtures/vo-reports/vehicles/anzac/1944.txt create mode 100644 vasl_templates/webapp/tests/fixtures/vo-reports/vehicles/anzac/1945.txt create mode 100644 vasl_templates/webapp/tests/fixtures/vo-reports/vehicles/chinese~gmd/1940.txt create mode 100644 vasl_templates/webapp/tests/fixtures/vo-reports/vehicles/chinese~gmd/1941.txt create mode 100644 vasl_templates/webapp/tests/fixtures/vo-reports/vehicles/chinese~gmd/1942.txt create mode 100644 vasl_templates/webapp/tests/fixtures/vo-reports/vehicles/chinese~gmd/1943.txt create mode 100644 vasl_templates/webapp/tests/fixtures/vo-reports/vehicles/chinese~gmd/1944.txt create mode 100644 vasl_templates/webapp/tests/fixtures/vo-reports/vehicles/chinese~gmd/1945.txt create mode 100644 vasl_templates/webapp/tests/fixtures/vo-reports/vehicles/indonesian/1940.txt create mode 100644 vasl_templates/webapp/tests/fixtures/vo-reports/vehicles/indonesian/1941.txt create mode 100644 vasl_templates/webapp/tests/fixtures/vo-reports/vehicles/indonesian/1942.txt create mode 100644 vasl_templates/webapp/tests/fixtures/vo-reports/vehicles/indonesian/1943.txt create mode 100644 vasl_templates/webapp/tests/fixtures/vo-reports/vehicles/indonesian/1944.txt create mode 100644 vasl_templates/webapp/tests/fixtures/vo-reports/vehicles/indonesian/1945.txt create mode 100644 vasl_templates/webapp/tests/fixtures/vo-reports/vehicles/thai/1940.txt create mode 100644 vasl_templates/webapp/tests/fixtures/vo-reports/vehicles/thai/1941.txt create mode 100644 vasl_templates/webapp/tests/fixtures/vo-reports/vehicles/thai/1942.txt create mode 100644 vasl_templates/webapp/tests/fixtures/vo-reports/vehicles/thai/1943.txt create mode 100644 vasl_templates/webapp/tests/fixtures/vo-reports/vehicles/thai/1944.txt create mode 100644 vasl_templates/webapp/tests/fixtures/vo-reports/vehicles/thai/1945.txt diff --git a/vasl_templates/webapp/data/default-template-pack/nationalities.json b/vasl_templates/webapp/data/default-template-pack/nationalities.json index 402fde0..d2ed6ff 100644 --- a/vasl_templates/webapp/data/default-template-pack/nationalities.json +++ b/vasl_templates/webapp/data/default-template-pack/nationalities.json @@ -44,12 +44,17 @@ "display_name": "Chinese", "ob_colors": [ "#d3edfc","#91cdf5", "#e0a22b" ] }, +"chinese~gmd": { + "display_name": "Chinese GMD", + "ob_colors": [ "#d3edfc","#91cdf5", "#e0a22b" ] +}, "polish": { "display_name": "Polish", - "ob_colors": [ "#a3ecd1","#82e3bd", "#61d8a6" ], + "ob_colors": [ "#ecd8b0","#e8cfa4", "#84e8c2" ], "type": "allied-minor" }, + "belgian": { "display_name": "Belgian", "ob_colors": [ "#a3ecd1","#82e3bd", "#61d8a6" ], @@ -99,6 +104,27 @@ "display_name": "Bulgarian", "ob_colors": [ "#3ceb7c","#1de256", "#0ed93c" ], "type": "axis-minor" +}, + +"anzac": { + "display_name": "ANZAC", + "ob_colors": [ "#f6edda","#e5cea0", "#e5cea0" ] +}, +"thai": { + "display_name": "Thai", + "ob_colors": [ "#3ceb7c","#1de256", "#0ed93c" ] +}, +"indonesian": { + "display_name": "Indonesian", + "ob_colors": [ "#3ceb7c","#1de256", "#0ed93c" ] +}, +"burmese": { + "display_name": "Burmese", + "ob_colors": [ "#3ceb7c","#1de256", "#0ed93c" ] +}, +"filipino": { + "display_name": "Filipino", + "ob_colors": [ "#3ceb7c","#1de256", "#0ed93c" ] } } diff --git a/vasl_templates/webapp/data/default-template-pack/ob_ordnance.j2 b/vasl_templates/webapp/data/default-template-pack/ob_ordnance.j2 index 7418a2f..4fc8f84 100644 --- a/vasl_templates/webapp/data/default-template-pack/ob_ordnance.j2 +++ b/vasl_templates/webapp/data/default-template-pack/ob_ordnance.j2 @@ -5,6 +5,7 @@ @@ -28,6 +29,7 @@ sup { font-size: 75% ; } {{ord.name}} {%if ord.image%}
{%endif%}
+ {%if ord.extn_id%} ❖ {%endif%} {%if ord.notes%} {{ord.note_number}}, {{ord.notes | join(", ")}} {%else%} @@ -35,7 +37,8 @@ sup { font-size: 75% ; } {%endif%}
- {%for cap in ord.capabilities%}
{{cap}}
{%endfor%} + {%for cap in ord.capabilities%}
{{cap}}
{%endfor%} + {%for cmnt in ord.comments%}
{{cmnt}}
{%endfor%} {%endfor%} diff --git a/vasl_templates/webapp/data/default-template-pack/ob_ordnance_ma_notes.j2 b/vasl_templates/webapp/data/default-template-pack/ob_ordnance_ma_notes.j2 index 77f675b..5662bb6 100644 --- a/vasl_templates/webapp/data/default-template-pack/ob_ordnance_ma_notes.j2 +++ b/vasl_templates/webapp/data/default-template-pack/ob_ordnance_ma_notes.j2 @@ -4,6 +4,8 @@ @@ -28,6 +29,7 @@ sup { font-size: 75% ; } {{veh.name}} {%if veh.image%}
{%endif%}
+ {%if veh.extn_id%} ❖ {%endif%} {%if veh.notes%} {{veh.note_number}}, {{veh.notes | join(", ")}} {%else%} @@ -35,7 +37,8 @@ sup { font-size: 75% ; } {%endif%}
- {%for cap in veh.capabilities%}
{{cap}}
{%endfor%} + {%for cap in veh.capabilities%}
{{cap}}
{%endfor%} + {%for cmnt in veh.comments%}
{{cmnt}}
{%endfor%} {%endfor%} diff --git a/vasl_templates/webapp/data/default-template-pack/ob_vehicles_ma_notes.j2 b/vasl_templates/webapp/data/default-template-pack/ob_vehicles_ma_notes.j2 index d993fb6..bb889c7 100644 --- a/vasl_templates/webapp/data/default-template-pack/ob_vehicles_ma_notes.j2 +++ b/vasl_templates/webapp/data/default-template-pack/ob_vehicles_ma_notes.j2 @@ -4,6 +4,8 @@