Permalink
Browse files

small fixes

  • Loading branch information...
1 parent fe78430 commit ad440f05e18be4a3d90b3a0793ae1e220fd2e2d4 @maccesch committed Nov 14, 2011
Showing with 21 additions and 21 deletions.
  1. +21 −21 cmsplugin_contact/templates/cmsplugin_contact/contact.html
@@ -30,28 +30,28 @@
{% endif %}
</p>
{% if form.recaptcha_challenge_field %}
- <p {% if form.recaptcha_response_fiel.errors %}class="error"{% endif %}>
+ <div{% if form.recaptcha_response_field.errors %} class="error"{% endif %}>
{{ form.recaptcha_challenge_field }}
{% if form.recaptcha_theme == "custom" %}
- <div id="recaptcha_widget" style="display:none">
-
- <div id="recaptcha_image"></div>
- <span class="recaptcha_only_if_incorrect_sol error_msg">{% trans "Incorrect please try again" %}</span>
-
+ <div id="recaptcha_widget" style="display:none">
+
+ <div id="recaptcha_image"></div>
+ <span class="recaptcha_only_if_incorrect_sol error_msg">{% trans "Incorrect please try again" %}</span>
+
<label>
- <span class="recaptcha_only_if_image">{% trans "Enter the words above:" %}</span>
- <span class="recaptcha_only_if_audio">{% trans "Enter the numbers you hear:" %}</span>
- </label>
-
- <input type="text" id="recaptcha_response_field" name="recaptcha_response_field" />
-
- <div><a href="javascript:Recaptcha.reload()">{% trans "Get another CAPTCHA" %}</a></div>
- <div class="recaptcha_only_if_image"><a href="javascript:Recaptcha.switch_type('audio')">{% trans "Get an audio CAPTCHA" %}</a></div>
- <div class="recaptcha_only_if_audio"><a href="javascript:Recaptcha.switch_type('image')">{% trans "Get an image CAPTCHA" %}</a></div>
-
- <div><a href="javascript:Recaptcha.showhelp()">{% trans "Help" %}</a>
-
- </div>
+ <span class="recaptcha_only_if_image">{% trans "Enter the words above:" %}</span>
+ <span class="recaptcha_only_if_audio">{% trans "Enter the numbers you hear:" %}</span>
+ </label>
+
+ <input type="text" id="recaptcha_response_field" name="recaptcha_response_field" />
+
+ <div><a href="javascript:Recaptcha.reload()">{% trans "Get another CAPTCHA" %}</a></div>
+ <div class="recaptcha_only_if_image"><a href="javascript:Recaptcha.switch_type('audio')">{% trans "Get an audio CAPTCHA" %}</a></div>
+ <div class="recaptcha_only_if_audio"><a href="javascript:Recaptcha.switch_type('image')">{% trans "Get an image CAPTCHA" %}</a></div>
+
+ <div><a href="javascript:Recaptcha.showhelp()">{% trans "Help" %}</a>
+
+ </div>
{% endif %}
{% if form.recaptcha_response_field.label %}<label class="contact_field">{{ form.recaptcha_response_field.label }}</label>{% endif %}
@@ -61,14 +61,14 @@
<span class="error_msg">{% trans error %}</span>
{% endfor %}
{% endif %}
- </p>
+ </div>
{% endif %}
{% if form.accept_terms %}
{{ form.accept_terms }}
{% endif %}
<p>
- <button>{{ contact.submit }}</button>
+ <input type="submit"{% if contact.submit %} value="{{ contact.submit }}"{% endif %} />
</p>
{% csrf_token %}

0 comments on commit ad440f0

Please sign in to comment.