fixed guardian login edge cases and misleading placeholders on failed loads
This commit is contained in:
@@ -101,10 +101,14 @@ class _ParentLetterResponseCardState extends State<ParentLetterResponseCard> {
|
||||
ParentLetterFormMode.open ||
|
||||
ParentLetterFormMode.change => _form(policy),
|
||||
ParentLetterFormMode.done => _result(theme, policy),
|
||||
// The server locks a response for other reasons too (withdrawn,
|
||||
// finalised), so only name the deadline when there is one.
|
||||
ParentLetterFormMode.closed => [
|
||||
_note(
|
||||
'Die Frist ist abgelaufen. Eine Rückmeldung ist nicht mehr '
|
||||
'möglich.',
|
||||
deadline != null
|
||||
? 'Die Frist ist abgelaufen. Eine Rückmeldung ist nicht '
|
||||
'mehr möglich.'
|
||||
: 'Eine Rückmeldung ist nicht mehr möglich.',
|
||||
),
|
||||
],
|
||||
ParentLetterFormMode.unsupported => [
|
||||
@@ -157,6 +161,15 @@ class _ParentLetterResponseCardState extends State<ParentLetterResponseCard> {
|
||||
),
|
||||
),
|
||||
],
|
||||
if (policy.hasUnsupportedFields)
|
||||
Padding(
|
||||
padding: const EdgeInsets.only(bottom: 8),
|
||||
child: _note(
|
||||
'Dieser Elternbrief enthält zusätzlich eine Abfrage, die diese '
|
||||
'App-Version nicht anzeigen kann. Bitte aktualisiere die App, um '
|
||||
'vollständig zu antworten.',
|
||||
),
|
||||
),
|
||||
Padding(
|
||||
padding: const EdgeInsets.fromLTRB(16, 4, 16, 0),
|
||||
child: AsyncActionButton(
|
||||
|
||||
Reference in New Issue
Block a user