Sha256: 28ea817288ed01acbfd719f0edbf4467481fef120d26ddc03b35239a4062d4cb

Contents?: true

Size: 928 Bytes

Versions: 42

Compression:

Stored size: 928 Bytes

Contents

%p#display_password{:style=> (@user.new_record? or !@user.valid?) ? "display: none" : nil}
  %label= t('password')
  %span.value
    •••••
    %a.action{:href=>"#", :onclick=>"$('#display_password').hide(); $('#change_password').show()"}= t('change')
.set#change_password{:style=> (!@user.new_record? && @user.valid?) ? "display: none" : nil}
  %p
    = f.label :password, t('new_password')
    = f.password_field "password", :class => "textbox big", :value => "", :size => 15, :maxlength => 40, :autocomplete => 'off'
  %p
    = f.label :password_confirmation, t('password_confirmation')
    = f.password_field "password_confirmation", :class => "textbox big", :value => "", :size => 15, :maxlength => 40, :autocomplete => 'off'
    - unless @user.new_record?
      %span
        = t('or')
        %a{:href=>"#", :onclick=>" $('#display_password').show(); $('#change_password').hide()"}= t('cancel')


Version data entries

42 entries across 42 versions & 1 rubygems

Version Path
trusty-cms-2.0.9.pre.beta app/views/admin/users/_password_fields.html.haml
trusty-cms-2.0.8.pre.beta app/views/admin/users/_password_fields.html.haml
trusty-cms-2.0.7.pre.beta app/views/admin/users/_password_fields.html.haml
trusty-cms-2.0.5.pre.beta app/views/admin/users/_password_fields.html.haml
trusty-cms-2.0.4.pre.beta app/views/admin/users/_password_fields.html.haml
trusty-cms-2.0.3.pre.beta app/views/admin/users/_password_fields.html.haml
trusty-cms-2.0.2.pre.beta app/views/admin/users/_password_fields.html.haml
trusty-cms-2.0.1.pre.beta app/views/admin/users/_password_fields.html.haml
trusty-cms-2.0.0.pre.beta app/views/admin/users/_password_fields.html.haml
trusty-cms-1.2.29 app/views/admin/users/_password_fields.html.haml
trusty-cms-1.2.28 app/views/admin/users/_password_fields.html.haml
trusty-cms-1.1.28 app/views/admin/users/_password_fields.html.haml
trusty-cms-1.1.27 app/views/admin/users/_password_fields.html.haml
trusty-cms-1.1.26 app/views/admin/users/_password_fields.html.haml
trusty-cms-1.1.25 app/views/admin/users/_password_fields.html.haml
trusty-cms-1.1.24 app/views/admin/users/_password_fields.html.haml
trusty-cms-1.1.23 app/views/admin/users/_password_fields.html.haml
trusty-cms-1.1.22 app/views/admin/users/_password_fields.html.haml
trusty-cms-1.1.21 app/views/admin/users/_password_fields.html.haml
trusty-cms-1.1.20 app/views/admin/users/_password_fields.html.haml