Registrar ident update #2618

This commit is contained in:
Priit Tark 2015-06-10 14:20:09 +03:00
parent b1fb8b07c9
commit 4d51a8e575

View file

@ -1,29 +1,30 @@
.panel.panel-default - if !@contact.persisted?
.panel-heading.clearfix .panel.panel-default
.pull-left= t(:ident) .panel-heading.clearfix
.panel-body .pull-left= t(:ident)
.form-group .panel-body
.col-md-3.control-label .form-group
= f.label :ident_country_code, t(:country) + '*' .col-md-3.control-label
.col-md-7 = f.label :ident_country_code, t(:country) + '*'
= f.select(:ident_country_code, SortedCountry.all_options(f.object.ident_country_code), {}, .col-md-7
class: 'js-ident-country-code', required: true) = f.select(:ident_country_code, SortedCountry.all_options(f.object.ident_country_code), {},
class: 'js-ident-country-code', required: true)
.form-group .form-group
.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
= 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 },
class: 'js-ident-type', required: true) class: 'js-ident-type', required: true)
.form-group .form-group
.col-md-3.control-label .col-md-3.control-label
= f.label :ident, t(:ident) + '*' = f.label :ident, t(:ident) + '*'
.col-md-7 .col-md-7
= f.text_field :ident, class: 'form-control', required: true = f.text_field :ident, class: 'form-control', required: true
- tip_visibility = f.object.ident_type == 'birthday' ? '' : 'display: none' - tip_visibility = f.object.ident_type == 'birthday' ? '' : 'display: none'
.js-ident-tip{ style: tip_visibility } .js-ident-tip{ style: tip_visibility }
= t(:birthday_format) = t(:birthday_format)
.panel.panel-default .panel.panel-default
.panel-heading.clearfix .panel-heading.clearfix