diff --git a/app/deployments/templates/input_types.html b/app/deployments/templates/input_types.html
index 121079c3d..dcf83d7b1 100644
--- a/app/deployments/templates/input_types.html
+++ b/app/deployments/templates/input_types.html
@@ -101,6 +101,13 @@
{% include 'inputs/dependent_select.html' %}
+ {% elif value.type == "multiselect" %}
+
+
{% elif value.type == "radio" %}
{% for constraint in value.constraints %}
@@ -226,6 +233,12 @@
Storage encryption alert
});
+$(document).ready(function() {
+ $('.js-example-basic-multiple').select2({
+ width: '100%' // https://github.com/select2/select2/issues/4220
+ });
+});
+
diff --git a/app/home/routes.py b/app/home/routes.py
index 40d938b4b..6e14ab0b2 100644
--- a/app/home/routes.py
+++ b/app/home/routes.py
@@ -30,6 +30,7 @@
app.jinja_env.filters['tojson_pretty'] = utils.to_pretty_json
app.jinja_env.filters['extract_netinterface_ips'] = utils.extract_netinterface_ips
app.jinja_env.filters['intersect'] = utils.intersect
+app.jinja_env.filters['python_eval'] = utils.python_eval
toscaInfo = tosca.tosca_info
diff --git a/app/lib/utils.py b/app/lib/utils.py
index c453eae2e..309c38354 100644
--- a/app/lib/utils.py
+++ b/app/lib/utils.py
@@ -33,6 +33,14 @@ def to_pretty_json(value):
indent=4, separators=(',', ': '))
+def python_eval(obj):
+ if isinstance(obj, str):
+ try:
+ return eval(obj)
+ except Exception as e:
+ app.logger.warn("Error calling python_eval(): {}".format(e))
+ return obj
+
def gencolors(hue, n):
rand_color = randomcolor.RandomColor(42)