summaryrefslogtreecommitdiff
path: root/packages/demobank-ui/src/forms/simplest.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/demobank-ui/src/forms/simplest.ts')
-rw-r--r--packages/demobank-ui/src/forms/simplest.ts66
1 files changed, 0 insertions, 66 deletions
diff --git a/packages/demobank-ui/src/forms/simplest.ts b/packages/demobank-ui/src/forms/simplest.ts
deleted file mode 100644
index 54b6b1c65..000000000
--- a/packages/demobank-ui/src/forms/simplest.ts
+++ /dev/null
@@ -1,66 +0,0 @@
-import {
- AbsoluteTime,
- AmountJson,
- TranslatedString
-} from "@gnu-taler/taler-util";
-import { DoubleColumnForm, FormState } from "@gnu-taler/web-util/browser";
-
-export namespace Data {
- export interface WithResolution {
- when: AbsoluteTime;
- threshold: AmountJson;
- state: string;
- }
- export interface Form extends WithResolution {
- comment: string;
- }
-}
-
-const design: DoubleColumnForm = [
- {
- title: "Simple form" as TranslatedString,
- fields: [
- {
- type: "textArea",
- props: {
- name: "comment",
- label: "Comments" as TranslatedString,
- },
- },
- ],
- },
- {
- title: "Resolution" as TranslatedString,
- description: `Current state is and threshold at ` as TranslatedString,
- fields: [
- {
- type: "date",
- props: {
- name: "when",
- label: "Decision Time" as TranslatedString,
- },
- },
- {
- type: "amount",
- props: {
- name: "threshold",
- label: "New threshold" as TranslatedString,
- },
- },
- ],
- }
- ,
-];
-
-function formBehavior(v: Partial<Data.Form>): FormState<Data.Form> {
- return {
- when: {
- disabled: true,
- },
- threshold: {
- // disabled: v.state === AmlExchangeBackend.AmlState.frozen,
- },
- };
-}
-
-