diff --git a/RIGS/templates/RIGS/event_form.html b/RIGS/templates/RIGS/event_form.html index 282f3669..28e6be28 100644 --- a/RIGS/templates/RIGS/event_form.html +++ b/RIGS/templates/RIGS/event_form.html @@ -8,11 +8,13 @@ {% block css %} + {% endblock %} {% block preload_js %} + {% endblock %} {% block js %} @@ -40,6 +42,15 @@ } $(document).ready(function () { + + $(".md-enabled").each(function(index){ + editor = new SimpleMDE({ + element: $(".md-enabled")[index], + toolbar: ["bold", "italic", "strikethrough", "|", "unordered-list", "ordered-list", "|", "link", "|", "preview", "guide"], + status: false, + }); + }); + {% if not object.pk and not form.errors %} $('.form-hws').slideUp(function () { @@ -225,11 +236,8 @@
Event Description
- - -
- {% render_field form.description class+="form-control" %} +
+ {% render_field form.description class+="form-control md-enabled" %}
@@ -424,7 +432,7 @@
- {% render_field form.notes class+="form-control" %} + {% render_field form.notes class+="form-control md-enabled" %}
{% include "RIGS/item_table.html" %} diff --git a/RIGS/templates/RIGS/item_modal.html b/RIGS/templates/RIGS/item_modal.html index 6991c585..ddf20d59 100644 --- a/RIGS/templates/RIGS/item_modal.html +++ b/RIGS/templates/RIGS/item_modal.html @@ -27,7 +27,7 @@
-