From 3381b35e25df0852345638fb23a43fde655c9ce4 Mon Sep 17 00:00:00 2001 From: fefa4ka Date: Wed, 7 Oct 2015 14:36:16 +0300 Subject: [PATCH] form and theory --- .../templates/djangocms_forms/form_template/default.html | 5 +++-- zsite/static/less/theory.less | 8 ++++++++ zsite/templates/menu_header.html | 2 +- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/djangocms_forms/templates/djangocms_forms/form_template/default.html b/djangocms_forms/templates/djangocms_forms/form_template/default.html index d609de3..1bb414d 100644 --- a/djangocms_forms/templates/djangocms_forms/form_template/default.html +++ b/djangocms_forms/templates/djangocms_forms/form_template/default.html @@ -60,13 +60,14 @@ var form = { - {% if field|is_textarea %} + {% if field|is_textarea or field|is_radioselect %}
{{ field.help_text|safe }}
{% endif %} {% if not field|is_checkbox %}

{{ field }}

{% endif %} - {% if not field|is_textarea and field.help_text %} + + {% if not field|is_textarea and not field|is_radioselect %}
{{ field.help_text|safe }}
{% endif %} diff --git a/zsite/static/less/theory.less b/zsite/static/less/theory.less index 6113d43..101c777 100644 --- a/zsite/static/less/theory.less +++ b/zsite/static/less/theory.less @@ -3,6 +3,8 @@ padding: 5px 15px; + margin-bottom: 30px; + h5 { padding-left: 22px; @@ -28,4 +30,10 @@ margin-top: 15px; margin-left: 10px; } +} + +.menu { + .theory { + margin-left: -38px; + } } \ No newline at end of file diff --git a/zsite/templates/menu_header.html b/zsite/templates/menu_header.html index 8e946ac..5fd99cc 100644 --- a/zsite/templates/menu_header.html +++ b/zsite/templates/menu_header.html @@ -5,7 +5,7 @@