From: test test Date: Thu, 3 Jun 2021 15:41:05 +0000 (+0200) Subject: Merge branch 'feature/docker-py3' of git.parisson.com:git/teleforma into feature... X-Git-Tag: 2.1~66^2^2~41^2 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=9e0d3da11e10794a940d835d53b4a89dc2c74aea;p=teleforma.git Merge branch 'feature/docker-py3' of git.parisson.com:git/teleforma into feature/docker-py3 --- 9e0d3da11e10794a940d835d53b4a89dc2c74aea diff --cc app/settings.py index 14b6a7b2,86987364..b0d8c3ae --- a/app/settings.py +++ b/app/settings.py @@@ -348,104 -347,17 +348,115 @@@ POSTMAN_SHOW_USER_AS = show_user_a ALLOWED_HOSTS = ['localhost', 'crfpa.dockdev.pilotsystems.net'] +JAZZMIN_SETTINGS = { + "site_title": "CRFPA", + "site_header": "CRFPA", + "site_logo": "teleforma/images/logo_pb.png", + + # # Links to put along the top menu + # "topmenu_links": [ + + # # Url that gets reversed (Permissions can be added) + # {"name": "Home", "url": "admin:index", "permissions": ["auth.view_user"]}, + + # # external url that opens in a new window (Permissions can be added) + # {"name": "Support", "url": "https://github.com/farridav/django-jazzmin/issues", "new_window": True}, + + # # model admin to link to (Permissions checked against model) + # {"model": "auth.User"}, + + # # App with dropdown menu to all its models pages (Permissions checked against models) + # {"app": "books"}, + # ], + + "hide_apps": [], + "hide_models": [], + "order_with_respect_to": ["auth", "teleforma", "teleforma.webclass", "teleforma.exam", "pdfannotator"], + + # Custom links to append to app groups, keyed on app name + # "custom_links": { + # "teleforma": [{ + # "name": "Make Messages", + # "url": "make_messages", + # "icon": "fas fa-comments", + # "permissions": ["books.view_book"] + # }] + # }, + "icons": { + "auth": "fas fa-users-cog", + "auth.user": "fas fa-user", + "auth.Group": "fas fa-users", + "teleforma.newsitem": "fas fa-newspaper", + "teleforma.conference": "fas fa-users", + "teleforma.document": "fas fa-file", + "teleforma.student": "fas fa-user-graduate", + "teleforma.professor": "fas fa-user-tie", + "webclass.webclass": "fas fa-phone", + }, + "related_modal_active": True, + + "custom_css": None, + "custom_js": None, + "show_ui_builder": False, + + ############### + # Change view # + ############### + # Render out the change view as a single form, or in tabs, current options are + # - single + # - horizontal_tabs (default) + # - vertical_tabs + # - collapsible + # - carousel + "changeform_format": "horizontal_tabs", + # override change forms on a per modeladmin basis + "changeform_format_overrides": {"auth.user": "collapsible", "auth.group": "vertical_tabs"}, + "language_chooser": False, +} + +JAZZMIN_UI_TWEAKS = { + "navbar_small_text": False, + "footer_small_text": False, + "body_small_text": False, + "brand_small_text": False, + "brand_colour": False, + "accent": "accent-primary", + "navbar": "navbar-white navbar-light", + "no_navbar_border": False, + "navbar_fixed": False, + "layout_boxed": False, + "footer_fixed": False, + "sidebar_fixed": True, + "sidebar": "sidebar-dark-primary", + "sidebar_nav_small_text": True, + "sidebar_disable_expand": False, + "sidebar_nav_child_indent": False, + "sidebar_nav_compact_style": False, + "sidebar_nav_legacy_style": False, + "sidebar_nav_flat_style": False, + "theme": "default", + "dark_mode_theme": "darkly", + "button_classes": { + "primary": "btn-outline-primary", + "secondary": "btn-outline-secondary", + "info": "btn-outline-info", + "warning": "btn-outline-warning", + "danger": "btn-outline-danger", + "success": "btn-outline-success" + }, + "actions_sticky_top": False +} + # Sherlock's online payment + PAYMENT_SHERLOCKS_PATH='/srv/sherlocks' + + PAYMENT_PARAMETERS = { 'merchant_id' : { 'Semestrielle': "014295303911111", + 'Estivale': "014295303911111", + 'Pré-estivale': "014295303911111", }, + 'merchant_country': 'fr', + 'currency_code': '978', + 'language': 'fr' + } + if DEBUG_TOOLBAR: def show_toolbar(request):