1 {% extends 'admin/change_form.html' %}
6 {% for dn in deployment_nodes %}
7 [{{ dn.0 }}, {{ dn.1 }} , "{{ dn.2 }}"],
11 function update_nodes(deployment_select, node_select_id) {
12 deployment_id = $(deployment_select).val();
13 html = "<option value=''>---------</option>\n";
14 for (i in deployment_nodes) {
15 dn = deployment_nodes[i];
16 if (dn[0] == deployment_id) {
17 html = html + '<option value="' + dn[1] + '">' + dn[2] + '</option>\n'
21 $("#"+node_select_id).empty().append(html);