18 lines
734 B
HTML
18 lines
734 B
HTML
{% extends "combo/cell_form.html" %}
|
|
|
|
{% block cell-form %}
|
|
{{ block.super }}
|
|
<script>
|
|
$('#id_cfamily_weeklyagendacell-{{ cell.pk }}-agenda_type').on('change', function() {
|
|
if ($(this).val() == 'manual') {
|
|
$('#id_cfamily_weeklyagendacell-{{ cell.pk }}-agenda_references_template').parent().show();
|
|
$('#id_cfamily_weeklyagendacell-{{ cell.pk }}-agenda_categories').parent().hide();
|
|
} else {
|
|
$('#id_cfamily_weeklyagendacell-{{ cell.pk }}-agenda_references_template').parent().hide();
|
|
$('#id_cfamily_weeklyagendacell-{{ cell.pk }}-agenda_categories').parent().show();
|
|
}
|
|
});
|
|
$('#id_cfamily_weeklyagendacell-{{ cell.pk }}-agenda_type').change();
|
|
</script>
|
|
{% endblock %}
|