mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 17:59:47 +02:00
Align with label #2776
This commit is contained in:
parent
b06d9b6d14
commit
5ce4d39aa8
2 changed files with 11 additions and 5 deletions
|
@ -62,3 +62,6 @@ body > .container
|
||||||
border: 1px solid #dddddd
|
border: 1px solid #dddddd
|
||||||
padding-left: 4px
|
padding-left: 4px
|
||||||
padding-right: 4px
|
padding-right: 4px
|
||||||
|
|
||||||
|
.disabled-value
|
||||||
|
padding-top: 8px
|
||||||
|
|
|
@ -6,8 +6,10 @@
|
||||||
.col-md-3.control-label
|
.col-md-3.control-label
|
||||||
= f.label :ident_country_code, t(:country) + '*'
|
= f.label :ident_country_code, t(:country) + '*'
|
||||||
.col-md-7
|
.col-md-7
|
||||||
- if f.object.ident_country_code.present?
|
- if @contact.persisted? && f.object.ident_country_code.present?
|
||||||
|
.disabled-value
|
||||||
= Country.new(f.object.ident_country_code).try(:to_s)
|
= Country.new(f.object.ident_country_code).try(:to_s)
|
||||||
|
= " [#{f.object.ident_country_code}]"
|
||||||
- else
|
- else
|
||||||
= 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), {},
|
||||||
class: 'js-ident-country-code', required: true)
|
class: 'js-ident-country-code', required: true)
|
||||||
|
@ -16,7 +18,8 @@
|
||||||
.col-md-3.control-label
|
.col-md-3.control-label
|
||||||
= f.label :ident_type, t(:type) + '*'
|
= f.label :ident_type, t(:type) + '*'
|
||||||
.col-md-7
|
.col-md-7
|
||||||
- if f.object.ident_type.present?
|
- if @contact.persisted? && f.object.ident_type.present?
|
||||||
|
.disabled-value
|
||||||
= Depp::Contact.type_string(f.object.ident_type)
|
= Depp::Contact.type_string(f.object.ident_type)
|
||||||
= " [#{f.object.ident_type}]"
|
= " [#{f.object.ident_type}]"
|
||||||
- else
|
- else
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue