From 23b4b185e3f3f8b9f17eebc49110cb4696acdb39 Mon Sep 17 00:00:00 2001 From: luxagraf Date: Mon, 31 Dec 2018 20:06:26 -0600 Subject: refactored JS --- design/sass/_forms.scss | 9 +++++++++ design/sass/_modal.scss | 1 - design/templates/notes/notes_detail.html | 1 + scripts/package.json | 2 +- scripts/src/note-create.js | 17 ++++++++++++++++- scripts/src/note-edit.js | 13 ++++--------- scripts/src/util.js | 25 ++++++++++++++++++++++++- 7 files changed, 55 insertions(+), 13 deletions(-) diff --git a/design/sass/_forms.scss b/design/sass/_forms.scss index d8a6a03..152e0ac 100644 --- a/design/sass/_forms.scss +++ b/design/sass/_forms.scss @@ -186,3 +186,12 @@ select { } margin: 3rem 0 1.5rem; } +.form-alert { + border: 3px solid red; + &:before { + display: block; + content: "This field is required"; + padding: 6px; + color: red; + } +} diff --git a/design/sass/_modal.scss b/design/sass/_modal.scss index dd21816..f333fd2 100644 --- a/design/sass/_modal.scss +++ b/design/sass/_modal.scss @@ -1,5 +1,4 @@ #overlay{ - font-family:Lato; position:fixed; width:100vw; height:100vh; diff --git a/design/templates/notes/notes_detail.html b/design/templates/notes/notes_detail.html index 26bff03..edf45e7 100644 --- a/design/templates/notes/notes_detail.html +++ b/design/templates/notes/notes_detail.html @@ -50,6 +50,7 @@
{% if object.body_html %}{{object.body_html|safe}}{%else%}{{object.body_text}}{%endif%}
+