update instances form keys

This commit is contained in:
Jordan Blasenhauer 2024-08-15 10:49:55 +02:00
parent fea36fb073
commit fa358052cc
3 changed files with 7 additions and 7 deletions

View file

@ -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

View file

@ -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.",

File diff suppressed because one or more lines are too long