mirror of
https://github.com/inventree/inventree-app.git
synced 2025-04-28 21:46:46 +00:00
Allow editing of part link field
This commit is contained in:
parent
47573faf91
commit
9cf8559569
2
lib/l10n
2
lib/l10n
@ -1 +1 @@
|
|||||||
Subproject commit cafa8e1654abab53da273d73f505b4618bc3861a
|
Subproject commit fc412e0315c435efa43bbdc69a20e00ba35c8481
|
@ -93,6 +93,7 @@ class _PartDisplayState extends RefreshableState<PartDetailWidget> {
|
|||||||
var _description;
|
var _description;
|
||||||
var _ipn;
|
var _ipn;
|
||||||
var _keywords;
|
var _keywords;
|
||||||
|
var _link;
|
||||||
|
|
||||||
showFormDialog(context, I18N.of(context).editPart,
|
showFormDialog(context, I18N.of(context).editPart,
|
||||||
key: _editPartKey,
|
key: _editPartKey,
|
||||||
@ -101,7 +102,8 @@ class _PartDisplayState extends RefreshableState<PartDetailWidget> {
|
|||||||
"name": _name,
|
"name": _name,
|
||||||
"description": _description,
|
"description": _description,
|
||||||
"IPN": _ipn,
|
"IPN": _ipn,
|
||||||
"keywords": _keywords
|
"keywords": _keywords,
|
||||||
|
"link": _link
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
fields: <Widget>[
|
fields: <Widget>[
|
||||||
@ -116,18 +118,23 @@ class _PartDisplayState extends RefreshableState<PartDetailWidget> {
|
|||||||
onSaved: (value) => _description = value,
|
onSaved: (value) => _description = value,
|
||||||
),
|
),
|
||||||
StringField(
|
StringField(
|
||||||
label: "Internal Part Number",
|
label: I18N.of(context).internalPartNumber,
|
||||||
initial: part.IPN,
|
initial: part.IPN,
|
||||||
allowEmpty: true,
|
allowEmpty: true,
|
||||||
onSaved: (value) => _ipn = value,
|
onSaved: (value) => _ipn = value,
|
||||||
),
|
),
|
||||||
StringField(
|
StringField(
|
||||||
label: "Keywords",
|
label: I18N.of(context).keywords,
|
||||||
initial: part.keywords,
|
initial: part.keywords,
|
||||||
allowEmpty: true,
|
allowEmpty: true,
|
||||||
onSaved: (value) => _keywords = value,
|
onSaved: (value) => _keywords = value,
|
||||||
|
),
|
||||||
|
StringField(
|
||||||
|
label: I18N.of(context).link,
|
||||||
|
initial: part.link,
|
||||||
|
allowEmpty: true,
|
||||||
|
onSaved: (value) => _link = value
|
||||||
)
|
)
|
||||||
|
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -404,10 +411,13 @@ class _PartDisplayState extends RefreshableState<PartDetailWidget> {
|
|||||||
icon: FaIcon(FontAwesomeIcons.boxes),
|
icon: FaIcon(FontAwesomeIcons.boxes),
|
||||||
label: I18N.of(context).stock
|
label: I18N.of(context).stock
|
||||||
),
|
),
|
||||||
|
// TODO - Add part actions
|
||||||
|
/*
|
||||||
BottomNavigationBarItem(
|
BottomNavigationBarItem(
|
||||||
icon: FaIcon(FontAwesomeIcons.wrench),
|
icon: FaIcon(FontAwesomeIcons.wrench),
|
||||||
label: I18N.of(context).actions,
|
label: I18N.of(context).actions,
|
||||||
),
|
),
|
||||||
|
*/
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user