diff --git a/InvenTree/InvenTree/settings.py b/InvenTree/InvenTree/settings.py index 67ac2b89d1..7c136744e1 100644 --- a/InvenTree/InvenTree/settings.py +++ b/InvenTree/InvenTree/settings.py @@ -17,6 +17,8 @@ import logging import tempfile import yaml +from datetime import datetime + from django.utils.translation import gettext_lazy as _ @@ -163,6 +165,9 @@ REST_FRAMEWORK = { WSGI_APPLICATION = 'InvenTree.wsgi.application' +# Markdown configuration +MARKDOWNX_MEDIA_PATH = datetime.now().strftime('markdownx/%Y/%m/%d') + DATABASES = {} """ diff --git a/InvenTree/InvenTree/static/css/inventree.css b/InvenTree/InvenTree/static/css/inventree.css index 579803410b..227b910755 100644 --- a/InvenTree/InvenTree/static/css/inventree.css +++ b/InvenTree/InvenTree/static/css/inventree.css @@ -5,6 +5,29 @@ --basic-color: #333; } +.markdownx .row { + margin: 5px; + padding: 5px; + border: 1px solid #cce; + border-radius: 4px; +} + +.markdownx-editor { + width: 100%; + border: 1px solid #cce; + border-radius: 3px; + padding: 10px; +} + +.panel-content { + padding: 10px; +} + +.markdownx-preview { + border: 1px solid #cce; + border-radius: 3px; + padding: 10px; +} .qr-code { max-width: 400px; diff --git a/InvenTree/part/templates/markdownx/widget.html b/InvenTree/part/templates/markdownx/widget.html new file mode 100644 index 0000000000..61c8673748 --- /dev/null +++ b/InvenTree/part/templates/markdownx/widget.html @@ -0,0 +1,10 @@ +{% load i18n %} + +