Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@
}
});
}

$(document).ready(function(){

$('#id_spam_protection_method').change(function() {
var curOption = $('#id_spam_protection_method :selected');
updateVisibility(curOption.html().toLowerCase());
Expand All @@ -44,7 +44,7 @@
padding-left: 48px;
margin-left: 13em;
}

{% if spam_protection_method != 1 or akismet_settings %}
div.form-row.akismet_api_key {
display: none;
Expand Down
18 changes: 9 additions & 9 deletions cmsplugin_contact/templates/cmsplugin_contact/contact.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,26 +34,26 @@
{{ 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>

<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>
{% endif %}

{% if form.recaptcha_response_field.label %}<label>{{ form.recaptcha_response_field.label }}</label><br />{% endif %}
{{ form.recaptcha_response_field }}
{% if form.recaptcha_response_field.errors %}
Expand All @@ -63,14 +63,14 @@
{% endif %}
</div>
{% endif %}

{% if form.accept_terms %}
{{ form.accept_terms }}
{% endif %}
<p>
<input type="submit"{% if contact.submit %} value="{{ contact.submit }}"{% endif %} />
</p>

{% csrf_token %}
</form>

Expand Down