BES-55 Fix error

This commit is contained in:
Th3NiKo 2020-01-15 16:14:42 +01:00
parent 48c4109964
commit 12db061392
4 changed files with 11 additions and 5 deletions

View File

@ -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 = {
'height' : 500,
'skin': 'oxide-dark',
'content_css': 'dark',
'plugins': "image,imagetools,media,codesample,link,code",
'cleanup_on_startup': True,
'menubar': False,

View File

@ -2,8 +2,10 @@
tinymce.init({
selector: '.tmpTextArea',
menubar: false,
skin: 'oxide-dark',
content_css: 'dark',
plugins: [
'advlist autolink lists link image charmap print preview anchor',
'autoresize advlist autolink lists link image charmap print preview anchor',
'searchreplace visualblocks code fullscreen',
'insertdatetime media table contextmenu paste code'
],

View File

@ -8,12 +8,14 @@
<form action="/bestnotes/create/" method="post">{% csrf_token %}
<div class="form-group">
{% render_field form.name class="form-control mb-2 mt-4" 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.topic class="form-control mb-2" id="topic" placeholder="Wpisz temat" %}
{% 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 bg-dark text-light" name="subject" id="subject" placeholder="Wpisz przedmiot" %}
{% render_field form.topic class="form-control mb-2 bg-dark text-light" id="topic" placeholder="Wpisz temat" %}
<div>
{% 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>

Binary file not shown.