mirror of
https://github.com/internetee/registry.git
synced 2025-08-06 01:35:10 +02:00
108869472-new_qieries_and_views
This commit is contained in:
parent
ff33eaa031
commit
a09e6b1a42
4 changed files with 39 additions and 21 deletions
|
@ -11,7 +11,7 @@
|
|||
.col-md-3
|
||||
.form-group
|
||||
= f.label :id
|
||||
= f.search_field :id, value: params[:q][:id], class: 'form-control', placeholder: t(:id)
|
||||
= f.search_field :code, value: params[:q][:code], class: 'form-control', placeholder: t(:id)
|
||||
.col-md-3
|
||||
.form-group
|
||||
= f.label :ident
|
||||
|
|
|
@ -19,14 +19,15 @@
|
|||
%dt= t(:ident)
|
||||
%dd= ident_for(contact)
|
||||
|
||||
%dt= t(:email)
|
||||
%dd= contact.email
|
||||
- if contact.email.present?
|
||||
%dt= t(:email)
|
||||
%dd= contact.email
|
||||
|
||||
- if contact.phone
|
||||
- if contact.phone.present?
|
||||
%dt= t(:phone)
|
||||
%dd= contact.phone
|
||||
|
||||
- if contact.fax
|
||||
- if contact.fax.present?
|
||||
%dt= t(:fax)
|
||||
%dd= contact.fax
|
||||
|
||||
|
@ -50,20 +51,25 @@
|
|||
%dt= t(:org_name)
|
||||
%dd= contact.org_name
|
||||
|
||||
%dt= t(:street)
|
||||
%dd= contact.street.to_s.gsub("\n", '<br>').html_safe
|
||||
- if contact.street.present?
|
||||
%dt= t(:street)
|
||||
%dd= contact.street.to_s.gsub("\n", '<br>').html_safe
|
||||
|
||||
%dt= t(:city)
|
||||
%dd= contact.city
|
||||
- if contact.city.present?
|
||||
%dt= t(:city)
|
||||
%dd= contact.city
|
||||
|
||||
%dt= t(:zip)
|
||||
%dd= contact.zip
|
||||
- if contact.zip.present?
|
||||
%dt= t(:zip)
|
||||
%dd= contact.zip
|
||||
|
||||
%dt= t(:state)
|
||||
%dd= contact.state
|
||||
- if contact.state.present?
|
||||
%dt= t(:state)
|
||||
%dd= contact.state
|
||||
|
||||
%dt= t(:country)
|
||||
%dd= contact.country
|
||||
- if contact.country.present?
|
||||
%dt= t(:country)
|
||||
%dd= contact.country
|
||||
|
||||
|
||||
%span{:style => "padding-right:10px; float: right;"}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue