From 4ade3188700edf346ffb0743c81ab28c8b3ab466 Mon Sep 17 00:00:00 2001 From: Priit Tark Date: Tue, 21 Jul 2015 17:55:43 +0300 Subject: [PATCH] Registrar: Allow blank value for ident country code and type #2776 --- app/views/registrar/contacts/form_partials/_general.haml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/views/registrar/contacts/form_partials/_general.haml b/app/views/registrar/contacts/form_partials/_general.haml index 9e243103a..31479ddcd 100644 --- a/app/views/registrar/contacts/form_partials/_general.haml +++ b/app/views/registrar/contacts/form_partials/_general.haml @@ -6,14 +6,16 @@ .col-md-3.control-label = f.label :ident_country_code, t(:country) + '*' .col-md-7 - = f.select(:ident_country_code, SortedCountry.all_options(f.object.ident_country_code), {}, + = f.select(:ident_country_code, SortedCountry.all_options(f.object.ident_country_code), + { selected: f.object.ident_country_code, include_blank: true }, class: 'js-ident-country-code', required: true, disabled: @contact.persisted?) .form-group .col-md-3.control-label = f.label :ident_type, t(:type) + '*' .col-md-7 - = f.select(:ident_type, Depp::Contact::SELECTION_TYPES, { selected: f.object.ident_type }, + = f.select(:ident_type, Depp::Contact::SELECTION_TYPES, + { selected: f.object.ident_type, include_blank: true }, class: 'js-ident-type', required: true, disabled: @contact.persisted?) .form-group