diff --git a/apps/main/templates/dev_conf_edit.html b/apps/main/templates/dev_conf_edit.html index 73cdc15..492a521 100644 --- a/apps/main/templates/dev_conf_edit.html +++ b/apps/main/templates/dev_conf_edit.html @@ -35,4 +35,75 @@ {% endif %} +{% if dds_device %} + + +{% endif %} + {% endblock %} \ No newline at end of file diff --git a/apps/main/views.py b/apps/main/views.py index 94296b6..668f40e 100644 --- a/apps/main/views.py +++ b/apps/main/views.py @@ -598,6 +598,11 @@ def dev_conf_new(request, id_exp=0, id_dev=0): kwargs['suptitle'] = 'New' kwargs['button'] = 'Create' + if id_dev != 0: + device = Device.objects.get(pk=id_dev) + if 'dds' in device.device_type.name: + kwargs['dds_device'] = True + return render(request, 'dev_conf_edit.html', kwargs)