From e92256e0b6ebd3b0faae9b24ba38331193ce558b Mon Sep 17 00:00:00 2001 From: Bomrah Harry Date: Fri, 13 Oct 2023 19:00:34 +0800 Subject: [PATCH] added email confirmed field --- app/views/admin/seminar_signups/edit.html.erb | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/app/views/admin/seminar_signups/edit.html.erb b/app/views/admin/seminar_signups/edit.html.erb index 75a9555..813f3a3 100644 --- a/app/views/admin/seminar_signups/edit.html.erb +++ b/app/views/admin/seminar_signups/edit.html.erb @@ -100,6 +100,13 @@
<%= f.email_field :email, :class=>"input-block-level", :placeholder=> signup_field.placeholder[I18n.locale], :required => true %>
+
+ +

@@ -321,4 +328,14 @@ $("#seminar_signup_signup_confirmed").on("change",function () { } }) +$("#seminar_signup_is_confirmed").on("change",function () { + if(this.checked){ + dt = new Date(); + format = dt.getFullYear() + "/" + dt.getMonth() + "/" + dt.getDate() + " " + dt.getHours() + ":" + dt.getMinutes(); + $("#seminar_signup_is_confirmed_date").val(format); + }else{ + $("#seminar_signup_is_confirmed_date").val(""); + } +}) + \ No newline at end of file