diff options
author | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2012-09-04 10:44:42 -0400 |
---|---|---|
committer | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2012-09-04 10:44:42 -0400 |
commit | a11da46b667d619c55d41294fed12f5b1b9e3c8f (patch) | |
tree | 873e240bd2b584d4767537a3f12e7a976927dba7 /askbot/skins | |
parent | 6b0a04ae18767ec2fd13ce5b93d9d7f2dd08540a (diff) | |
parent | 4340fb18b9974a1a93d8c40f281e1da59fa38c41 (diff) | |
download | askbot-a11da46b667d619c55d41294fed12f5b1b9e3c8f.tar.gz askbot-a11da46b667d619c55d41294fed12f5b1b9e3c8f.tar.bz2 askbot-a11da46b667d619c55d41294fed12f5b1b9e3c8f.zip |
Merge branch 'adolfo' into user-groups
Diffstat (limited to 'askbot/skins')
-rw-r--r-- | askbot/skins/default/templates/embed/ask_by_widget.html | 29 | ||||
-rwxr-xr-x | askbot/skins/default/templates/embed/askbot_widget.css | 12 |
2 files changed, 31 insertions, 10 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..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' %} <link rel="stylesheet" type="text/css" href="{{"/js/wmd/wmd.css"|media}}" /> + {%else %} + <link href="{{'/bootstrap/css/bootstrap.css'|media}}" rel="stylesheet" type="text/css" /> {%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; } @@ -150,6 +158,10 @@ width: 200px; } + .field-errors{ + font-size: 10px; + color: #ff0000; + } {{widget.inner_style}} </style> {%endblock%} @@ -164,6 +176,13 @@ </div> <div id='question-list'> </div> + {% if form.title.errors %} + <div class="field-errors"> + {% for error in form.title.errors %} + {{error}} + {%endfor%} + </div> + {% endif %} {% if widget.include_text_field %} {% if editor_type == 'markdown' %} <div class="wmd-container"> @@ -176,13 +195,19 @@ {{ form.text }} </div> {% endif %} + {% if form.text.errors %} + <div class="field-errors"> + {% for error in form.text.errors %} + {{error}} + {%endfor%} + </div> + {% endif %} {% endif %} {% if form.ask_anonymously %} <p>{{form.ask_anonymously.label_tag()}}: {{form.ask_anonymously}}</p> {%endif%} <input type="submit" value="Ask your question" id="submit" /> </form> -{{form.errors}} {%endblock%} {% block endjs %} <script type="text/javascript" src='{{"/js/live_search_new_thread.js"|media}}'></script> @@ -203,4 +228,4 @@ {% include "meta/tinymce.html" %} {% endif %} {% endblock %} -
\ No newline at end of file + diff --git a/askbot/skins/default/templates/embed/askbot_widget.css b/askbot/skins/default/templates/embed/askbot_widget.css index b51a87f8..5f5288b6 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; @@ -34,9 +34,5 @@ #{{variable_name}} iframe{ width:600px; - {% if editor_type == 'markdown' %} - height:480px; - {%else%} - height:520px; - {%endif%} -}
\ No newline at end of file + height:500px; +} |