diff --git a/lib/l10n b/lib/l10n index cafa8e16..fc412e03 160000 --- a/lib/l10n +++ b/lib/l10n @@ -1 +1 @@ -Subproject commit cafa8e1654abab53da273d73f505b4618bc3861a +Subproject commit fc412e0315c435efa43bbdc69a20e00ba35c8481 diff --git a/lib/widget/part_detail.dart b/lib/widget/part_detail.dart index a3c94434..47d00281 100644 --- a/lib/widget/part_detail.dart +++ b/lib/widget/part_detail.dart @@ -93,6 +93,7 @@ class _PartDisplayState extends RefreshableState { var _description; var _ipn; var _keywords; + var _link; showFormDialog(context, I18N.of(context).editPart, key: _editPartKey, @@ -101,7 +102,8 @@ class _PartDisplayState extends RefreshableState { "name": _name, "description": _description, "IPN": _ipn, - "keywords": _keywords + "keywords": _keywords, + "link": _link }); }, fields: [ @@ -116,18 +118,23 @@ class _PartDisplayState extends RefreshableState { onSaved: (value) => _description = value, ), StringField( - label: "Internal Part Number", + label: I18N.of(context).internalPartNumber, initial: part.IPN, allowEmpty: true, onSaved: (value) => _ipn = value, ), StringField( - label: "Keywords", + label: I18N.of(context).keywords, initial: part.keywords, allowEmpty: true, 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 { icon: FaIcon(FontAwesomeIcons.boxes), label: I18N.of(context).stock ), + // TODO - Add part actions + /* BottomNavigationBarItem( icon: FaIcon(FontAwesomeIcons.wrench), label: I18N.of(context).actions, ), + */ ] ); }