{% extends 'base.html' %} {% load filters %} {% block title %}{{ task.name }}|настройки{% endblock %} {% block scripts %} function uploaded() { document.getElementById('is_uploaded').style.display = 'block'; document.getElementById('is_uploaded').nodeValue = document.getElementById('file-upload').nodeValue; } function uploaded1() { document.getElementById('send').style.display = 'block'; document.getElementById('is_uploaded1').nodeValue = document.getElementById('file-upload1').nodeValue; } function valueChanged() { const other = document.getElementById('show_details'); other.disabled = !document.getElementById('show_result').checked; console.log('changed'); if (other.disabled) { other.checked = false; } } function set_checkboxes() { if (!document.getElementById('show_result').checked) { document.getElementById('show_details').disabled = true; } } {% endblock %} {% block onload %}set_checkboxes(){% endblock %} {% block styles %} input[type="file"] { display: none; } input[name="new_file"] { display: none; } .my_td { vertical-align: middle; height: 20px; } .params { margin-top: 20px; } .in { width: 500%; } {% endblock %} {% block content %}