mirror of
https://github.com/internetee/registry.git
synced 2025-07-25 03:58:27 +02:00
Registrar: Allow blank value for ident country code and type #2776
This commit is contained in:
parent
b6ad906014
commit
4ade318870
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue