diff --git a/anatomy/static/css/anatomy.css b/anatomy/static/css/anatomy.css index 5e71f751..ee13097a 100644 --- a/anatomy/static/css/anatomy.css +++ b/anatomy/static/css/anatomy.css @@ -517,4 +517,10 @@ td.user-answer-score-2::after { border: 1px solid purple; color: purple; opacity: 100%; + } + + textarea, input { + border-radius: 2px; + background-color: #343a40; + color: lightgray; } \ No newline at end of file diff --git a/longs/forms.py b/longs/forms.py index 1bbed375..9c52e1fc 100755 --- a/longs/forms.py +++ b/longs/forms.py @@ -184,7 +184,7 @@ SeriesFormSet = inlineformset_factory( LongSeries.long.through, exclude=[], can_delete=True, - extra=1, + extra=0, max_num=10, field_classes="testing", ) diff --git a/longs/templates/longs/long_display_block.html b/longs/templates/longs/long_display_block.html index a63bce7c..c0afcac0 100755 --- a/longs/templates/longs/long_display_block.html +++ b/longs/templates/longs/long_display_block.html @@ -30,11 +30,11 @@

Feedback: -

{{ question.feedback }}
+
{{ question.feedback | safe}}

-

Model answers

+ Model answers

Observations:

{{ question.model_observations }}
diff --git a/rad/settings.py b/rad/settings.py index 59e908ee..44a0f5f5 100644 --- a/rad/settings.py +++ b/rad/settings.py @@ -216,6 +216,22 @@ DBBACKUP_STORAGE_OPTIONS = {'location': os.path.join(BASE_DIR, '../backups')} DEFAULT_FILE_STORAGE = 'django_hashedfilenamestorage.storage.HashedFilenameFileSystemStorage' +TINYMCE_DEFAULT_CONFIG = { + "theme": "silver", + "height": 500, + "menubar": False, + "plugins": "advlist,autolink,lists,link,image,charmap,print,preview,anchor," + "searchreplace,visualblocks,code,fullscreen,insertdatetime,media,table,paste," + "code,help,wordcount", + "toolbar": "undo redo | formatselect | " + "bold italic backcolor | alignleft aligncenter " + "alignright alignjustify | bullist numlist outdent indent | " + "removeformat | help", + "skin": 'oxide-dark', + "content_css": 'dark', +} + + try: from .settings_local import * except ImportError: