fixed naming of empty fields
This commit is contained in:
@@ -427,20 +427,20 @@ class _AddCamMainState extends State<AddCamMain> {
|
||||
List<String> emptyFields = <String>[];
|
||||
|
||||
Map<String, TextEditingController> fields = {
|
||||
'CID': cid,
|
||||
'Rudel': rudelC,
|
||||
'Adresse1': adresse1C,
|
||||
'BLand': bLandC,
|
||||
'Lkr': lkrC,
|
||||
'BeiOrt': beiOrtC,
|
||||
'Status': TextEditingController(text: selectedStatus),
|
||||
'FFTyp': ffTypC,
|
||||
'FotoFilm': TextEditingController(text: selectedFotoFilm),
|
||||
'MEZ': TextEditingController(text: selectedMEZ),
|
||||
'Platzung': TextEditingController(text: selectedPlatzung),
|
||||
'KTage1': kTage1C,
|
||||
'KTage2': kTage2C,
|
||||
'Standort': standortC,
|
||||
AppLocalizations.of(context)!.camLink: cid,
|
||||
AppLocalizations.of(context)!.rudel: rudelC,
|
||||
AppLocalizations.of(context)!.adresse1: adresse1C,
|
||||
AppLocalizations.of(context)!.bland: bLandC,
|
||||
AppLocalizations.of(context)!.lkr: lkrC,
|
||||
AppLocalizations.of(context)!.beiort: beiOrtC,
|
||||
AppLocalizations.of(context)!.status: TextEditingController(text: selectedStatus),
|
||||
AppLocalizations.of(context)!.fftyp: ffTypC,
|
||||
"${AppLocalizations.of(context)!.foto} / ${AppLocalizations.of(context)!.filelocation}": TextEditingController(text: selectedFotoFilm),
|
||||
AppLocalizations.of(context)!.zeiteinstellung: TextEditingController(text: selectedMEZ),
|
||||
AppLocalizations.of(context)!.platzung: TextEditingController(text: selectedPlatzung),
|
||||
AppLocalizations.of(context)!.ktage1: kTage1C,
|
||||
AppLocalizations.of(context)!.ktage1: kTage2C,
|
||||
AppLocalizations.of(context)!.location: standortC,
|
||||
};
|
||||
|
||||
for (var entry in fields.entries) {
|
||||
@@ -867,7 +867,7 @@ class _AddCamMainState extends State<AddCamMain> {
|
||||
} else {
|
||||
List<String> emptyFields = validateData();
|
||||
// ! always filled out
|
||||
empty = false;
|
||||
// empty = false;
|
||||
if (widget.isSent) {
|
||||
Navigator.pushNamedAndRemoveUntil(context, '/home', (route) => false);
|
||||
} else if (empty == true) {
|
||||
|
||||
@@ -59,7 +59,7 @@
|
||||
"pickDate": "Aufstellung",
|
||||
"pickTime": "Zeit auswählen",
|
||||
"delAll": "Alle Standorte löschen",
|
||||
"fieldEmpty": "Folgendes Feld ist leer:",
|
||||
"fieldEmpty": "Folgende Felder sind leer:",
|
||||
"cancel": "Abbrechen",
|
||||
"template": "Als Unvollständig speichern",
|
||||
"openMap": "Karte öffnen",
|
||||
|
||||
Reference in New Issue
Block a user