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