diff options
Diffstat (limited to 'packages/anastasis-webui/src/pages/home/AttributeEntryScreen.tsx')
-rw-r--r-- | packages/anastasis-webui/src/pages/home/AttributeEntryScreen.tsx | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/packages/anastasis-webui/src/pages/home/AttributeEntryScreen.tsx b/packages/anastasis-webui/src/pages/home/AttributeEntryScreen.tsx index 1d5896e4d..9c1a93d8e 100644 --- a/packages/anastasis-webui/src/pages/home/AttributeEntryScreen.tsx +++ b/packages/anastasis-webui/src/pages/home/AttributeEntryScreen.tsx @@ -1,6 +1,6 @@ import { UserAttributeSpec, validators } from "@gnu-taler/anastasis-core"; import { isAfter, parse } from "date-fns"; -import { h, VNode } from "preact"; +import { Fragment, h, VNode } from "preact"; import { useState } from "preact/hooks"; import { DateInput } from "../../components/fields/DateInput"; import { PhoneNumberInput } from "../../components/fields/NumberInput"; @@ -122,7 +122,7 @@ for (let i = 0; i < 100; i++) { } function AttributeEntryField(props: AttributeEntryFieldProps): VNode { return ( - <div> + <div style={{ marginTop: 16 }}> {props.spec.type === "date" && ( <DateInput grabFocus={props.isFirst} @@ -151,6 +151,17 @@ function AttributeEntryField(props: AttributeEntryFieldProps): VNode { bind={[props.value, props.setValue]} /> )} + {props.spec.type === "string" && ( + <div> + This field is case-sensitive. You must enter exactly the same value + during recovery. + </div> + )} + {props.spec.name === "full_name" && ( + <div> + If possible, use "LASTNAME, Firstname(s)" without abbreviations. + </div> + )} <div class="block"> This stays private <span class="icon is-right"> |