/create_realm/: Change TOS checkbox to feature new styling.

This changes the TOS checkbox to use the internal checkbox styling
rather than the unstyled default appearance.
This commit is contained in:
Brock Whittaker 2017-10-04 14:43:45 -07:00 committed by Tim Abbott
parent df9092cf42
commit 968a8a0b6c
1 changed files with 4 additions and 3 deletions

View File

@ -135,9 +135,10 @@ Form is validated both client-side using jquery-validate (see signup.js) and ser
This is distinct from 'checked', which determines whether the checkbox appears
at all. (So, it's not symmetric to the code above.)
#}
<input id="id_terms" class="required" type="checkbox" name="terms"
{% if form.terms.value() %}checked="checked"{% endif %} />
<label for="id_terms" class="inline-block">
<label for="id_terms" class="inline-block checkbox">
<input id="id_terms" class="required" type="checkbox" name="terms"
{% if form.terms.value() %}checked="checked"{% endif %} />
<span></span>
{% trans %}I agree to the <a href="{{ root_domain_uri }}/terms" target="_blank">Terms of Service</a>.{% endtrans %}
</label>
{% if form.terms.errors %}