mirror of
https://github.com/fergalmoran/dss.git
synced 2026-01-26 18:56:23 +00:00
22 lines
645 B
HTML
Executable File
22 lines
645 B
HTML
Executable File
{%extends "base.html" %}
|
|
{% load crispy_forms_tags %}
|
|
{% block scripts %}
|
|
|
|
<script type="text/javascript">
|
|
$(document).ready(function () {
|
|
$('#id_avatar_image').hide();
|
|
$('input:radio[name=avatar_image_select]').bind('click', function (data) {
|
|
var selected = $('input:radio[name=avatar_image_select]:checked').val();
|
|
if (selected === 'custom'){
|
|
$('#id_avatar_image').show();
|
|
}else{
|
|
$('#id_avatar_image').hide();
|
|
}
|
|
});
|
|
});
|
|
</script>
|
|
|
|
{% endblock %}
|
|
{% block content %}
|
|
{% crispy form form.helper %}
|
|
{% endblock %} |