From 8d0679ca93d41a2be44ce35ef322909fe436d78f Mon Sep 17 00:00:00 2001 From: bohung Date: Sun, 17 Jul 2022 11:42:29 +0800 Subject: [PATCH] Fix bug. --- app/assets/stylesheets/custom_field.css | 2 +- app/controllers/asks_controller.rb | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/app/assets/stylesheets/custom_field.css b/app/assets/stylesheets/custom_field.css index e9ef739..9bcb9dc 100644 --- a/app/assets/stylesheets/custom_field.css +++ b/app/assets/stylesheets/custom_field.css @@ -1,6 +1,6 @@ input[type=checkbox] { font-size: 1em; - -webkit-appearance: none; + /*-webkit-appearance: none;*/ width: 1.2em; height: 1.2em; border-radius: 5px; diff --git a/app/controllers/asks_controller.rb b/app/controllers/asks_controller.rb index 5508db0..fe5696e 100644 --- a/app/controllers/asks_controller.rb +++ b/app/controllers/asks_controller.rb @@ -346,7 +346,12 @@ class AsksController < ApplicationController when 'phone' f1['content'] = text_field_tag(field_name,nil,placeholder:@default_ask_setting.field_name("#{field}"),required: required) when 'appointment' - f1['content'] = "
#{text_field_tag(field_name,nil,placeholder:@default_ask_setting.field_name("#{field}"),required: required)}
" + if @appointment_idx.nil? + @appointment_idx = 0 + else + @appointment_idx += 1 + end + f1['content'] = "
#{text_field_tag(field_name,nil,placeholder:@default_ask_setting.field_name("#{field}"),data: {format: 'yy/mm/dd HH:MM'},required: required, id: "ask_question_appointment_#{@appointment_idx}")}
" when 'recaptcha' f1['content'] = "#{gotcha_error}#{gotcha}" when 'usage_rule'