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