Added ident country code and improved other ident things

This commit is contained in:
Priit Tark 2015-02-18 15:26:51 +02:00
parent e9b77c5b0f
commit 44f11de5c8
13 changed files with 117 additions and 66 deletions

View file

@ -1,20 +1,24 @@
.panel.panel-default
.panel-heading
%h3.panel-title= t('address')
%h3.panel-title= t(:address)
.panel-body
- unless @contact.address.nil?
%dl.dl-horizontal
%dt= t('street')
- if @contact.bic?
%dt= t(:org_name)
%dd= @contact.org_name
%dt= t(:street)
%dd= @contact.street
%dt= t('city')
%dt= t(:city)
%dd= @contact.city
%dt= t('zip')
%dt= t(:zip)
%dd= @contact.zip
%dt= t('state')
%dt= t(:state)
%dd= @contact.state
%dt= t('country')
%dt= t(:country)
%dd= @contact.country

View file

@ -4,7 +4,7 @@
.panel-body
%dl.dl-horizontal
%dt= t(:ident)
%dd= @contact.ident + ' [' + @contact.ident_type + ']'
%dd= "#{@contact.ident} #{ident_indicator(@contact)}"
%br
@ -14,9 +14,6 @@
%dt= t(:phone)
%dd= @contact.phone
%dt= t(:org_name)
%dd= @contact.org_name
- if @contact.fax
%dt= t(:fax)
%dd= @contact.fax