Fix bug.
This commit is contained in:
parent
92285feef3
commit
8d0679ca93
|
@ -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;
|
||||
|
|
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue