diff --git a/css/icons.scss b/css/icons.scss
index 114b94f..a282308 100644
--- a/css/icons.scss
+++ b/css/icons.scss
@@ -31,6 +31,7 @@
@include icon-black-white('answer-long', 'forms', 1);
@include icon-black-white('answer-date', 'forms', 1);
@include icon-black-white('answer-datetime', 'forms', 1);
+@include icon-black-white('answer-email', 'forms', 1);
@include icon-black-white('drag-handle', 'forms', 1);
.icon-yes {
diff --git a/img/answer-email.svg b/img/answer-email.svg
new file mode 100644
index 0000000..06756dc
--- /dev/null
+++ b/img/answer-email.svg
@@ -0,0 +1,59 @@
+
+
diff --git a/lib/Db/Question.php b/lib/Db/Question.php
index 16dbeb6..8403afb 100644
--- a/lib/Db/Question.php
+++ b/lib/Db/Question.php
@@ -56,6 +56,7 @@ class Question extends Entity {
'dropdown',
'date',
'datetime',
+ 'email',
];
public function __construct() {
diff --git a/src/components/Questions/QuestionEmail.vue b/src/components/Questions/QuestionEmail.vue
new file mode 100644
index 0000000..2ac0300
--- /dev/null
+++ b/src/components/Questions/QuestionEmail.vue
@@ -0,0 +1,97 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/models/AnswerTypes.js b/src/models/AnswerTypes.js
index 3d909af..e07ff7c 100644
--- a/src/models/AnswerTypes.js
+++ b/src/models/AnswerTypes.js
@@ -26,6 +26,7 @@ import QuestionShort from '../components/Questions/QuestionShort'
import QuestionLong from '../components/Questions/QuestionLong'
import QuestionDate from '../components/Questions/QuestionDate'
import QuestionDatetime from '../components/Questions/QuestionDatetime'
+import QuestionEmail from '../components/Questions/QuestionEmail'
/**
* @typedef {Object} AnswerTypes
@@ -128,4 +129,15 @@ export default {
submitPlaceholder: t('forms', 'Enter a date'),
warningInvalid: t('forms', 'This question needs a title!'),
},
+
+ email: {
+ component: QuestionEmail,
+ icon: 'icon-answer-email',
+ label: t('forms', 'Email'),
+
+ titlePlaceholder: t('forms', 'Email question title'),
+ createPlaceholder: t('forms', ''),
+ submitPlaceholder: t('forms', 'Enter an email'),
+ warningInvalid: t('forms', 'This question needs a title!'),
+ },
}