From 2132db17094936937b406405bb6b7aa19d6cf1b3 Mon Sep 17 00:00:00 2001 From: Tit Petric Date: Sun, 1 Jul 2018 02:02:31 +0200 Subject: [PATCH] import some basic types --- crm/types/bool.ejs | 4 ++++ crm/types/bool.json | 3 +++ crm/types/bool_multi.ejs | 3 +++ crm/types/bool_multi.json | 3 +++ crm/types/enum.ejs | 7 +++++++ crm/types/enum.json | 3 +++ crm/types/input.ejs | 1 + crm/types/input.json | 9 +++++++++ crm/types/stamp.ejs | 10 ++++++++++ crm/types/stamp.json | 3 +++ 10 files changed, 46 insertions(+) create mode 100644 crm/types/bool.ejs create mode 100644 crm/types/bool.json create mode 100644 crm/types/bool_multi.ejs create mode 100644 crm/types/bool_multi.json create mode 100644 crm/types/enum.ejs create mode 100644 crm/types/enum.json create mode 100644 crm/types/input.ejs create mode 100644 crm/types/input.json create mode 100644 crm/types/stamp.ejs create mode 100644 crm/types/stamp.json diff --git a/crm/types/bool.ejs b/crm/types/bool.ejs new file mode 100644 index 000000000..b60f5c65f --- /dev/null +++ b/crm/types/bool.ejs @@ -0,0 +1,4 @@ +
+ + +
diff --git a/crm/types/bool.json b/crm/types/bool.json new file mode 100644 index 000000000..1bd9637bc --- /dev/null +++ b/crm/types/bool.json @@ -0,0 +1,3 @@ +{ + "name": "Boolean value (yes/no)" +} \ No newline at end of file diff --git a/crm/types/bool_multi.ejs b/crm/types/bool_multi.ejs new file mode 100644 index 000000000..782b52234 --- /dev/null +++ b/crm/types/bool_multi.ejs @@ -0,0 +1,3 @@ +{foreach values as key => val} += 0} checked="checked"{/if}> {val} +{/foreach} diff --git a/crm/types/bool_multi.json b/crm/types/bool_multi.json new file mode 100644 index 000000000..646df11d6 --- /dev/null +++ b/crm/types/bool_multi.json @@ -0,0 +1,3 @@ +{ + "name": "Boolean value (multiple checkboxes)" +} \ No newline at end of file diff --git a/crm/types/enum.ejs b/crm/types/enum.ejs new file mode 100644 index 000000000..34e5f4662 --- /dev/null +++ b/crm/types/enum.ejs @@ -0,0 +1,7 @@ + diff --git a/crm/types/enum.json b/crm/types/enum.json new file mode 100644 index 000000000..22d9b0011 --- /dev/null +++ b/crm/types/enum.json @@ -0,0 +1,3 @@ +{ + "name": "ENUM (single option)" +} \ No newline at end of file diff --git a/crm/types/input.ejs b/crm/types/input.ejs new file mode 100644 index 000000000..50a18170f --- /dev/null +++ b/crm/types/input.ejs @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/crm/types/input.json b/crm/types/input.json new file mode 100644 index 000000000..d2248b34e --- /dev/null +++ b/crm/types/input.json @@ -0,0 +1,9 @@ +{ + "name": "Text input", + "options": { + "type": { + "title": "Input type", + "values": ["hidden", "text", "password", "email"] + } + } +} \ No newline at end of file diff --git a/crm/types/stamp.ejs b/crm/types/stamp.ejs new file mode 100644 index 000000000..3885ebc91 --- /dev/null +++ b/crm/types/stamp.ejs @@ -0,0 +1,10 @@ +
+
+ +
+ +   + +
+
+
\ No newline at end of file diff --git a/crm/types/stamp.json b/crm/types/stamp.json new file mode 100644 index 000000000..408059ba1 --- /dev/null +++ b/crm/types/stamp.json @@ -0,0 +1,3 @@ +{ + "name": "Date/time input field" +} \ No newline at end of file