%div{class: "flex flex-col space-y-2 rounded-lg border p-4"} %h2{class: "text-xl font-medium text-center"} 在线调试 %div{class: "flex justify-center"} = form_with(url: debug_path, method: :post, class: "flex flex-col items-center w-full space-y-4") do |f| = f.select :stage, options_for_select([%w[check_text check_text], %w[aliyun_check aliyun_check], %w[check_search check_search], %w[qq_regex qq_regex], %w[wx_regex wx_regex]], params[:stage]), {}, class: "border rounded-md m py-0.5 px-1" = f.select :type, options_for_select(CensorBear::StopWord::FIELDS.map{|f| [f.upcase, f]}, params[:type]), {}, class: "border rounded-md m py-0.5 px-1" = f.text_area :content, value: params[:content], placeholder: "输入正文", rows: 6, class: "bg-gray-100 rounded-lg p-4 w-full" = f.submit "检测", class: "rounded-lg px-10 py-1 bg-black text-white cursor-pointer" #result