Localized new location textbox
This commit is contained in:
@@ -1,3 +1,11 @@
|
||||
{
|
||||
"printWidth": 120
|
||||
"printWidth": 120,
|
||||
"overrides": [
|
||||
{
|
||||
"files": ["*.json"],
|
||||
"options": {
|
||||
"tabWidth": 4
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -164,6 +164,9 @@
|
||||
"show_title": "[Spool #{{id}}] {{name}}",
|
||||
"archive": "Archive Spool"
|
||||
},
|
||||
"form": {
|
||||
"new_location_prompt": "Enter a new location"
|
||||
},
|
||||
"messages": {
|
||||
"archive": "Are you sure you want to archive this spool?"
|
||||
}
|
||||
|
||||
@@ -178,12 +178,7 @@ export const SpoolCreate: React.FC<IResourceComponentsProps & CreateOrCloneProps
|
||||
</Radio.Group>
|
||||
</Form.Item>
|
||||
|
||||
<Form.Item
|
||||
label={t("spool.fields.used_weight")}
|
||||
help={t("spool.fields_help.used_weight")}
|
||||
// name={["used_weight"]}
|
||||
initialValue={0}
|
||||
>
|
||||
<Form.Item label={t("spool.fields.used_weight")} help={t("spool.fields_help.used_weight")} initialValue={0}>
|
||||
<InputNumber
|
||||
min={0}
|
||||
addonAfter="g"
|
||||
@@ -200,7 +195,6 @@ export const SpoolCreate: React.FC<IResourceComponentsProps & CreateOrCloneProps
|
||||
<Form.Item
|
||||
label={t("spool.fields.remaining_weight")}
|
||||
help={t("spool.fields_help.remaining_weight")}
|
||||
// name={["remaining_weight"]}
|
||||
initialValue={0}
|
||||
>
|
||||
<InputNumber
|
||||
@@ -219,7 +213,6 @@ export const SpoolCreate: React.FC<IResourceComponentsProps & CreateOrCloneProps
|
||||
<Form.Item
|
||||
label={t("spool.fields.measured_weight")}
|
||||
help={t("spool.fields_help.measured_weight")}
|
||||
// name={["measured_weight"]}
|
||||
initialValue={0}
|
||||
>
|
||||
<InputNumber
|
||||
@@ -251,7 +244,7 @@ export const SpoolCreate: React.FC<IResourceComponentsProps & CreateOrCloneProps
|
||||
{menu}
|
||||
<Divider style={{ margin: "8px 0" }} />
|
||||
<Input
|
||||
placeholder="Enter new location"
|
||||
placeholder={t("spool.form.new_location_prompt")}
|
||||
value={newLocation}
|
||||
onChange={(event) => setNewLocation(event.target.value)}
|
||||
/>
|
||||
|
||||
@@ -250,7 +250,7 @@ export const SpoolEdit: React.FC<IResourceComponentsProps> = () => {
|
||||
{menu}
|
||||
<Divider style={{ margin: "8px 0" }} />
|
||||
<Input
|
||||
placeholder="Enter new location"
|
||||
placeholder={t("spool.form.new_location_prompt")}
|
||||
value={newLocation}
|
||||
onChange={(event) => setNewLocation(event.target.value)}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user