This commit is contained in:
BoHung Chiu 2022-07-17 11:42:29 +08:00
parent 92285feef3
commit 8d0679ca93
2 changed files with 7 additions and 2 deletions

View File

@ -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;

View File

@ -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'] = "<div class=\"default_picker\">#{text_field_tag(field_name,nil,placeholder:@default_ask_setting.field_name("#{field}"),required: required)}</div>"
if @appointment_idx.nil?
@appointment_idx = 0
else
@appointment_idx += 1
end
f1['content'] = "<div class=\"default_picker\">#{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}")}</div>"
when 'recaptcha'
f1['content'] = "#{gotcha_error}#{gotcha}"
when 'usage_rule'