diff --git a/src/ui/client/builder/pages/instances.py b/src/ui/client/builder/pages/instances.py index 40e280bf4..61e3b9ea1 100644 --- a/src/ui/client/builder/pages/instances.py +++ b/src/ui/client/builder/pages/instances.py @@ -170,7 +170,7 @@ def instance_item( iconName="globe", iconColor="white", attrs={ - "data-submit-form": f"""{{"instance_name" : "{instance_name}", "instance_hostname" : "{hostname}" }}""", + "data-submit-form": f"""{{ "instance_hostname" : "{hostname}" }}""", "data-submit-endpoint": "/ping", }, ), @@ -209,7 +209,7 @@ def instance_item( iconName="globe", iconColor="white", attrs={ - "data-submit-form": f"""{{"instance_name" : "{instance_name}", "instance_hostname" : "{hostname}" }}""", + "data-submit-form": f"""{{ "instance_hostname" : "{hostname}" }}""", "data-submit-endpoint": "/reload", }, ), @@ -252,7 +252,7 @@ def instance_item( iconName="trash", iconColor="white", attrs={ - "data-submit-form": f"""{{ "instance_name" : "{instance_name}", "instance_hostname" : "{hostname}" }}""", + "data-submit-form": f"""{{ "instance_hostname" : "{hostname}" }}""", "data-submit-endpoint": "/delete", }, ), @@ -297,7 +297,7 @@ def instances_new_form() -> dict: get_fields_from_field( input_widget( id="instance-name", - name="instance-name", + name="instance_name", label="instances_name", # keep it (a18n) value="", pattern="", # add your pattern if needed @@ -314,7 +314,7 @@ def instances_new_form() -> dict: get_fields_from_field( input_widget( id="instance-hostname", - name="instance-hostname", + name="instance_hostname", label="instances_hostname", # keep it (a18n) value="", pattern="", # add your pattern if needed diff --git a/src/ui/client/dashboard/lang/en.json b/src/ui/client/dashboard/lang/en.json index 4aa69dd78..390373618 100644 --- a/src/ui/client/dashboard/lang/en.json +++ b/src/ui/client/dashboard/lang/en.json @@ -214,7 +214,7 @@ "instances_delete_subtitle": "Are you sure to delete the following instance ?", "instances_create_title": "Create instance", "instances_create_subtitle": "Notice that port and server name will be set by scheduler.", - "instances_hostname_placeholder": "tcp://docker:2375", + "instances_hostname_placeholder": "http://random:2375", "instances_hostname_desc": "The adress of the server used for the instance.", "instances_name_placeholder": "awesome-instance", "instances_name_desc": "The name of the instance.", diff --git a/src/ui/client/dashboard/pages/instances/index.html b/src/ui/client/dashboard/pages/instances/index.html index 5c752ada1..8061b526f 100644 --- a/src/ui/client/dashboard/pages/instances/index.html +++ b/src/ui/client/dashboard/pages/instances/index.html @@ -20,7 +20,7 @@ >