Unify contact.auth_info look and feel

This commit is contained in:
Artur Beljajev 2018-06-18 13:30:57 +03:00
parent 8023742964
commit 4e2d32a6ce
4 changed files with 8 additions and 11 deletions

View file

@ -52,10 +52,5 @@ body > .container
.text-grey
color: grey
.partially-hidden
border: 1px solid #dddddd
padding-left: 4px
padding-right: 4px
.disabled-value
padding-top: 8px

View file

@ -6,9 +6,10 @@
%dt= t(:id)
%dd= @contact.code
%dt= t(:authinfo_pw)
%dt= Contact.human_attribute_name :auth_info
%dd
= text_field_tag :auth_info, @contact.auth_info, readonly: true, class: 'partially-hidden'
= tag :input, type: 'text', value: @contact.auth_info, readonly: true,
class: 'form-control input-sm'
%br

View file

@ -15,8 +15,8 @@
<dt><%= Contact.human_attribute_name :auth_info %></dt>
<dd>
<%= text_field_tag :auth_info, @contact.auth_info, readonly: true,
class: 'partially-hidden' %>
<%= tag :input, type: 'text', value: @contact.auth_info, readonly: true,
class: 'form-control input-sm' %>
</dd>
<dt><%= Contact.human_attribute_name :ident %></dt>

View file

@ -6,9 +6,10 @@
%dt= t(:id)
%dd= @contact.id
%dt= t(:authinfo_pw)
%dt= Contact.human_attribute_name :auth_info
%dd
= text_field_tag :password, @contact.password, readonly: true, class: 'partially-hidden'
= tag :input, type: 'text', value: @contact.password, readonly: true,
class: 'form-control input-sm'
%br