Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Fix RTL submit button hiding (Bug: 734348) #44

Merged
merged 1 commit into from

2 participants

Nigel Babu Tim Watts
Nigel Babu

Find the locale, add a class to fix the "right" property in RTL locales.

Tim Watts readevalprint merged commit 0987e1c into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 26, 2012
  1. Fix RTL submit button hiding (Bug: 734348)

    Nigel Babu authored
This page is out of date. Refresh to see the latest.
2  apps/feedback/templates/feedback/feedback-form.html
View
@@ -78,7 +78,7 @@
</div>
{% if type != 'idea' %}
- <div class="alt-idea">
+ <div class="alt-idea{% if locale in settings.RTL_LANGUAGES %} alt-idea-rtl{% endif %}">
<em></em>
<span>
{{ _('If you have an idea to offer us instead, please use our') }}
2  apps/feedback/views.py
View
@@ -93,7 +93,7 @@ def feedback(request, ua):
template = 'feedback/%sindex.html' % (
'mobile/' if request.mobile_site else '')
- return render(request, template, {'forms': forms})
+ return render(request, template, {'forms': forms, 'locale': request.locale})
@cache_page
4 media/css/feedback.css
View
@@ -708,7 +708,9 @@ footer form option {
top: 0;
bottom: 0;
}
-
+.alt-idea-rtl {
+ right: 400px;
+}
#happy {
}
#happy header {
Something went wrong with that request. Please try again.