Private
Public Access
1
0

bug fixes

This commit is contained in:
Sander Roosendaal
2018-06-08 09:35:11 +02:00
parent dcb207fb20
commit 15f489e086
4 changed files with 55 additions and 15 deletions

View File

@@ -6,6 +6,34 @@
{% get_current_timezone as TIME_ZONE %}
{% block scripts %}
<script type='text/javascript'
src='https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js'>
</script>
<script>
$( document ).ready(function() {
$('#id_workouttype').on('change', function(){
if (
$(this).val() == 'rower'
|| $(this).val() == 'skierg'
|| $(this).val() == 'dynamic'
|| $(this).val() == 'slides'
|| $(this).val() == 'paddle'
|| $(this).val() == 'snow'
) {
$('#id_boattype').toggle(false);
$('#id_boattype').val('1x');
} else {
$('#id_boattype').toggle(true);
}
});
$('#id_workouttype').change();
});
</script>
{% endblock %}
{% block content %}
<div class="grid_12 alpha">
<h1>Add Workout Manually</h1>