Sha256: 5ca929d3fcf06a10c09e3aaf9c3aa8bf4b370f146a1da141438741c2be27fb2d

Contents?: true

Size: 919 Bytes

Versions: 74

Compression:

Stored size: 919 Bytes

Contents

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


Version data entries

74 entries across 74 versions & 1 rubygems

Version Path
trusty-cms-6.3.1 app/views/admin/users/_password_fields.html.haml
trusty-cms-7.0.2 app/views/admin/users/_password_fields.html.haml
trusty-cms-7.0.1 app/views/admin/users/_password_fields.html.haml
trusty-cms-7.0.0 app/views/admin/users/_password_fields.html.haml
trusty-cms-6.3 app/views/admin/users/_password_fields.html.haml
trusty-cms-6.2.1 app/views/admin/users/_password_fields.html.haml
trusty-cms-6.2.2.1 app/views/admin/users/_password_fields.html.haml
trusty-cms-6.2.0 app/views/admin/users/_password_fields.html.haml
trusty-cms-6.1.2 app/views/admin/users/_password_fields.html.haml
trusty-cms-6.1.1 app/views/admin/users/_password_fields.html.haml
trusty-cms-6.0.5 app/views/admin/users/_password_fields.html.haml
trusty-cms-6.0.4 app/views/admin/users/_password_fields.html.haml
trusty-cms-6.0.3 app/views/admin/users/_password_fields.html.haml
trusty-cms-6.0.2 app/views/admin/users/_password_fields.html.haml
trusty-cms-6.0.1 app/views/admin/users/_password_fields.html.haml
trusty-cms-5.6.1 app/views/admin/users/_password_fields.html.haml
trusty-cms-6.0.0 app/views/admin/users/_password_fields.html.haml
trusty-cms-5.6.0 app/views/admin/users/_password_fields.html.haml
trusty-cms-5.5.9 app/views/admin/users/_password_fields.html.haml
trusty-cms-5.5.8 app/views/admin/users/_password_fields.html.haml