BES-55 Fix error
This commit is contained in:
parent
48c4109964
commit
12db061392
@ -132,6 +132,8 @@ TINYMCE_JS_URL = "https://cdn.tiny.cloud/1/no-api-key/tinymce/5.1.4-66/tinymce.m
|
|||||||
|
|
||||||
TINYMCE_DEFAULT_CONFIG = {
|
TINYMCE_DEFAULT_CONFIG = {
|
||||||
'height' : 500,
|
'height' : 500,
|
||||||
|
'skin': 'oxide-dark',
|
||||||
|
'content_css': 'dark',
|
||||||
'plugins': "image,imagetools,media,codesample,link,code",
|
'plugins': "image,imagetools,media,codesample,link,code",
|
||||||
'cleanup_on_startup': True,
|
'cleanup_on_startup': True,
|
||||||
'menubar': False,
|
'menubar': False,
|
||||||
|
@ -2,8 +2,10 @@
|
|||||||
tinymce.init({
|
tinymce.init({
|
||||||
selector: '.tmpTextArea',
|
selector: '.tmpTextArea',
|
||||||
menubar: false,
|
menubar: false,
|
||||||
|
skin: 'oxide-dark',
|
||||||
|
content_css: 'dark',
|
||||||
plugins: [
|
plugins: [
|
||||||
'advlist autolink lists link image charmap print preview anchor',
|
'autoresize advlist autolink lists link image charmap print preview anchor',
|
||||||
'searchreplace visualblocks code fullscreen',
|
'searchreplace visualblocks code fullscreen',
|
||||||
'insertdatetime media table contextmenu paste code'
|
'insertdatetime media table contextmenu paste code'
|
||||||
],
|
],
|
||||||
|
@ -8,12 +8,14 @@
|
|||||||
|
|
||||||
<form action="/bestnotes/create/" method="post">{% csrf_token %}
|
<form action="/bestnotes/create/" method="post">{% csrf_token %}
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
{% render_field form.name class="form-control mb-2 mt-4" id="name" placeholder="Wpisz nazwe notatki" %}
|
{% render_field form.name class="form-control mb-2 mt-4 bg-dark text-light" id="name" placeholder="Wpisz nazwe notatki" %}
|
||||||
{% render_field form.subject class="form-control mb-2" name="subject" id="subject" placeholder="Wpisz przedmiot" %}
|
{% render_field form.subject class="form-control mb-2 bg-dark text-light" name="subject" id="subject" placeholder="Wpisz przedmiot" %}
|
||||||
{% render_field form.topic class="form-control mb-2" id="topic" placeholder="Wpisz temat" %}
|
{% render_field form.topic class="form-control mb-2 bg-dark text-light" id="topic" placeholder="Wpisz temat" %}
|
||||||
<div>
|
<div>
|
||||||
{% render_field form.content id="content" %}
|
{% render_field form.content id="content" %}
|
||||||
<input type="submit" class="btn-primary" value="Dodaj">
|
<div>
|
||||||
|
<input type="submit" class="btn-primary mt-1" value="Dodaj notatke">
|
||||||
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
|
|
||||||
|
BIN
db.sqlite3
BIN
db.sqlite3
Binary file not shown.
Loading…
Reference in New Issue
Block a user