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-5.2.3 app/views/admin/users/_password_fields.html.haml
trusty-cms-5.2.2 app/views/admin/users/_password_fields.html.haml
trusty-cms-5.2.1 app/views/admin/users/_password_fields.html.haml
trusty-cms-5.2.0 app/views/admin/users/_password_fields.html.haml
trusty-cms-5.1.0 app/views/admin/users/_password_fields.html.haml
trusty-cms-5.0.9 app/views/admin/users/_password_fields.html.haml
trusty-cms-5.0.7 app/views/admin/users/_password_fields.html.haml
trusty-cms-5.0.6 app/views/admin/users/_password_fields.html.haml
trusty-cms-5.0.5 app/views/admin/users/_password_fields.html.haml
trusty-cms-5.0.4 app/views/admin/users/_password_fields.html.haml
trusty-cms-5.0.3 app/views/admin/users/_password_fields.html.haml
trusty-cms-5.0.2 app/views/admin/users/_password_fields.html.haml
trusty-cms-5.0.1 app/views/admin/users/_password_fields.html.haml
trusty-cms-4.3.5 app/views/admin/users/_password_fields.html.haml
trusty-cms-5.0.0 app/views/admin/users/_password_fields.html.haml
trusty-cms-4.3.4 app/views/admin/users/_password_fields.html.haml
trusty-cms-4.3.3 app/views/admin/users/_password_fields.html.haml
trusty-cms-4.3.2 app/views/admin/users/_password_fields.html.haml
trusty-cms-4.3.1 app/views/admin/users/_password_fields.html.haml
trusty-cms-4.3 app/views/admin/users/_password_fields.html.haml