From 316c666fd36bd598eef67fbfe7f6a5bb2d7114b4 Mon Sep 17 00:00:00 2001 From: Neil Mather Date: Mon, 9 Nov 2020 15:15:18 +0000 Subject: [PATCH] Add display of extra info from submissions --- resources/lang/en/admin.php | 1 + resources/views/admin/submissions/view.blade.php | 7 +++++++ src/Domain/Models/Submission.php | 10 ++++++++-- 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a/resources/lang/en/admin.php b/resources/lang/en/admin.php index cf574d1d..1846ec65 100644 --- a/resources/lang/en/admin.php +++ b/resources/lang/en/admin.php @@ -38,6 +38,7 @@ 'submission' => 'Gravity Form submission', 'submission_date' => 'Submission date', 'submitted_by_employee' => 'Submitted by employee?', + 'submission_extra_info' => 'Anything else we should know about this business?', 'your_role_is' => 'Your role is', diff --git a/resources/views/admin/submissions/view.blade.php b/resources/views/admin/submissions/view.blade.php index 45173d02..7738079c 100644 --- a/resources/views/admin/submissions/view.blade.php +++ b/resources/views/admin/submissions/view.blade.php @@ -68,6 +68,13 @@ +
+ +
+ +
+
+

Note: links are not automatically clickable, in case malicious data has been submitted.

diff --git a/src/Domain/Models/Submission.php b/src/Domain/Models/Submission.php index 5524e936..954c1162 100644 --- a/src/Domain/Models/Submission.php +++ b/src/Domain/Models/Submission.php @@ -50,13 +50,19 @@ public function getReviewSource() return $this->reviewSource; } - public function getCreatedAt() + public function getExtraInfo() { - return $this->createdAt; + return $this->extraInfo; } public function getSubmittedByEmployee() { return $this->submittedByEmployee; } + + public function getCreatedAt() + { + return $this->createdAt; + } + }