Merge branch '116209751-verified_option' into staging

This commit is contained in:
Stas 2016-04-08 18:15:30 +03:00
commit c0bf69a5f8
2 changed files with 2 additions and 7 deletions

View file

@ -189,7 +189,7 @@ module Depp
if domain_params[:verified].present? if domain_params[:verified].present?
custom_params[:_anonymus] << { custom_params[:_anonymus] << {
chg: { registrant_verified: 'yes' } registrant_verified: { value: 'yes' }
} }
end end
@ -223,11 +223,6 @@ module Depp
chg = [{ registrant: { value: domain_params[:registrant] } }] chg = [{ registrant: { value: domain_params[:registrant] } }]
end end
if domain_params[:verified].present?
chg.push({ registrant_verified: 'yes'}) if chg.present?
chg = [{ registrant_verified: 'yes'}] if chg.nil?
end
add_arr = nil if add_arr.none? add_arr = nil if add_arr.none?
rem_arr = nil if rem_arr.none? rem_arr = nil if rem_arr.none?

View file

@ -29,7 +29,7 @@
.col-md-3.control-label .col-md-3.control-label
= label_tag :verified, t(:verified) = label_tag :verified, t(:verified)
.col-md-7 .col-md-7
= check_box_tag :verified, '1', params[:verified].eql?('1'), onclick: "return (confirm('#{t(:verified_confirm)}') ? true : false);" = check_box_tag 'domain[verified]', '1', @domain_params[:verified].eql?('1'), onclick: "return (confirm('#{t(:verified_confirm)}') ? true : false);"
- unless params[:domain_name] - unless params[:domain_name]
.form-group .form-group