From f983ddea47f2200c2d4f15ec19cfe920932db71d Mon Sep 17 00:00:00 2001 From: Adolfo Fitoria Date: Mon, 3 Sep 2012 10:44:07 -0600 Subject: fixed display of form validation errors --- .../skins/default/templates/embed/ask_by_widget.html | 19 ++++++++++++++++++- .../skins/default/templates/embed/askbot_widget.css | 8 ++++---- 2 files changed, 22 insertions(+), 5 deletions(-) diff --git a/askbot/skins/default/templates/embed/ask_by_widget.html b/askbot/skins/default/templates/embed/ask_by_widget.html index 5eb3d664..d563fbc6 100644 --- a/askbot/skins/default/templates/embed/ask_by_widget.html +++ b/askbot/skins/default/templates/embed/ask_by_widget.html @@ -150,6 +150,10 @@ width: 200px; } + .field-errors{ + font-size: 10px; + color: #ff0000; + } {{widget.inner_style}} {%endblock%} @@ -164,6 +168,13 @@
+ {% if form.title.errors %} +
+ {% for error in form.title.errors %} + {{error}} + {%endfor%} +
+ {% endif %} {% if widget.include_text_field %} {% if editor_type == 'markdown' %}
@@ -176,13 +187,19 @@ {{ form.text }}
{% endif %} + {% if form.text.errors %} +
+ {% for error in form.text.errors %} + {{error}} + {%endfor%} +
+ {% endif %} {% endif %} {% if form.ask_anonymously %}

{{form.ask_anonymously.label_tag()}}: {{form.ask_anonymously}}

{%endif%} -{{form.errors}} {%endblock%} {% block endjs %} diff --git a/askbot/skins/default/templates/embed/askbot_widget.css b/askbot/skins/default/templates/embed/askbot_widget.css index b51a87f8..b471b88d 100755 --- a/askbot/skins/default/templates/embed/askbot_widget.css +++ b/askbot/skins/default/templates/embed/askbot_widget.css @@ -13,9 +13,9 @@ width:600px; {%if widget.include_text_field%} {% if editor_type == 'markdown' %} - height:480px; - {%else%} height:500px; + {%else%} + height:520px; {%endif%} {%else%} height:210px; @@ -35,8 +35,8 @@ #{{variable_name}} iframe{ width:600px; {% if editor_type == 'markdown' %} - height:480px; + height:500px; {%else%} - height:520px; + height:540px; {%endif%} } \ No newline at end of file -- cgit v1.2.3-1-g7c22 From 4ef064ab11938f6913d3ebeaab43734f18b30442 Mon Sep 17 00:00:00 2001 From: Adolfo Fitoria Date: Mon, 3 Sep 2012 11:43:18 -0600 Subject: fixes tinymce upload file/image issue --- askbot/skins/default/templates/embed/ask_by_widget.html | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/askbot/skins/default/templates/embed/ask_by_widget.html b/askbot/skins/default/templates/embed/ask_by_widget.html index d563fbc6..96be40ac 100644 --- a/askbot/skins/default/templates/embed/ask_by_widget.html +++ b/askbot/skins/default/templates/embed/ask_by_widget.html @@ -3,6 +3,8 @@ {% block forestyle %} {% if editor_type == 'markdown' %} + {%else %} + {%endif%} {% if settings.USE_LOCAL_FONTS %} {% include "meta/fonts.html" %} @@ -39,8 +41,10 @@ border: #CCE6EC 3px solid; max-width: 600px; } + #id_title:focus { outline: none; + box-shadow:none; } .title{ @@ -59,7 +63,11 @@ -moz-border-radius: 3px; border-radius: 3px; background: #fff; + {% if editor_type == 'markdown' %} width:97.4%; + {%else%} + width:90.8%; + {%endif%} margin-top: -4.9px; } @@ -220,4 +228,4 @@ {% include "meta/tinymce.html" %} {% endif %} {% endblock %} - \ No newline at end of file + -- cgit v1.2.3-1-g7c22 From 4340fb18b9974a1a93d8c40f281e1da59fa38c41 Mon Sep 17 00:00:00 2001 From: Adolfo Fitoria Date: Mon, 3 Sep 2012 22:14:38 -0600 Subject: fixed css issue with bootstrap --- askbot/skins/default/templates/embed/askbot_widget.css | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/askbot/skins/default/templates/embed/askbot_widget.css b/askbot/skins/default/templates/embed/askbot_widget.css index b471b88d..5f5288b6 100755 --- a/askbot/skins/default/templates/embed/askbot_widget.css +++ b/askbot/skins/default/templates/embed/askbot_widget.css @@ -34,9 +34,5 @@ #{{variable_name}} iframe{ width:600px; - {% if editor_type == 'markdown' %} height:500px; - {%else%} - height:540px; - {%endif%} -} \ No newline at end of file +} -- cgit v1.2.3-1-g7c22