This commit is contained in:
Ross
2021-08-11 19:27:15 +01:00
parent 2976c08b7c
commit b007b42953
4 changed files with 25 additions and 3 deletions
+6
View File
@@ -518,3 +518,9 @@ td.user-answer-score-2::after {
color: purple; color: purple;
opacity: 100%; opacity: 100%;
} }
textarea, input {
border-radius: 2px;
background-color: #343a40;
color: lightgray;
}
+1 -1
View File
@@ -184,7 +184,7 @@ SeriesFormSet = inlineformset_factory(
LongSeries.long.through, LongSeries.long.through,
exclude=[], exclude=[],
can_delete=True, can_delete=True,
extra=1, extra=0,
max_num=10, max_num=10,
field_classes="testing", field_classes="testing",
) )
@@ -30,11 +30,11 @@
<div class="long-answer"> <div class="long-answer">
<p class="pre-whitespace"><b>Feedback:</b> <p class="pre-whitespace"><b>Feedback:</b>
<pre>{{ question.feedback }}</pre> <pre>{{ question.feedback | safe}}</pre>
</p> </p>
<details> <details>
<summary> <summary>
<h3>Model answers</h3> <b>Model answers</b>
</summary> </summary>
<p class="pre-whitespace"><b>Observations:</b> <p class="pre-whitespace"><b>Observations:</b>
<pre>{{ question.model_observations }}</pre> <pre>{{ question.model_observations }}</pre>
+16
View File
@@ -216,6 +216,22 @@ DBBACKUP_STORAGE_OPTIONS = {'location': os.path.join(BASE_DIR, '../backups')}
DEFAULT_FILE_STORAGE = 'django_hashedfilenamestorage.storage.HashedFilenameFileSystemStorage' 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: try:
from .settings_local import * from .settings_local import *
except ImportError: except ImportError: