From d8851f99c9f51119f0bcc9042abe87b64479cca9 Mon Sep 17 00:00:00 2001 From: Gareth Coles Date: Mon, 15 Apr 2019 14:40:03 +0100 Subject: Editor fixes and sidebar accordion --- pydis_site/templates/wiki/forms/fields/char.html | 28 ++++++++++---------- pydis_site/templates/wiki/forms/fields/image.html | 31 +++++++++++++++++++++++ 2 files changed, 46 insertions(+), 13 deletions(-) create mode 100644 pydis_site/templates/wiki/forms/fields/image.html (limited to 'pydis_site/templates/wiki/forms') diff --git a/pydis_site/templates/wiki/forms/fields/char.html b/pydis_site/templates/wiki/forms/fields/char.html index 0f130751..4c48d300 100644 --- a/pydis_site/templates/wiki/forms/fields/char.html +++ b/pydis_site/templates/wiki/forms/fields/char.html @@ -1,19 +1,21 @@
-
- {% if field.label %} - - {% endif %} + {% if not is_markitup %} +
+ {% if field.label %} + + {% endif %} - {% if field.help_text %} -

- {{ field.help_text|safe }} -

- {% endif %} -
+ {% if field.help_text %} +

+ {{ field.help_text|safe }} +

+ {% endif %} +
+ {% endif %} -
+
{% if is_markitup %} diff --git a/pydis_site/templates/wiki/forms/fields/image.html b/pydis_site/templates/wiki/forms/fields/image.html new file mode 100644 index 00000000..47e115fe --- /dev/null +++ b/pydis_site/templates/wiki/forms/fields/image.html @@ -0,0 +1,31 @@ +
+
+ {% if field.label %} + + {% endif %} + + {% if field.help_text %} +

+ {{ field.help_text|safe }} +

+ {% endif %} +
+ +
+
+
+ {{ field }} +
+ + {% if field.errors %} +

+ {% for error in field.errors %} + {{ error }}
+ {% endfor %} +

+ {% endif %} +
+
+
-- cgit v1.2.3