Add button to conveniently copy OAuth code (#11065)

remotes/1727458204337373841/tmp_refs/heads/signup-info-prompt
ThibG 2019-06-13 00:14:42 +02:00 committed by Eugen Rochko
parent faafc3ae25
commit c98573fdf9
1 changed files with 5 additions and 2 deletions

View File

@ -1,4 +1,7 @@
.form-container
.flash-message
.flash-message.simple_form
%p= t('doorkeeper.authorizations.show.title')
%input{ type: 'text', class: 'oauth-code', readonly: true, value: params[:code], onClick: 'select()' }
.input-copy
.input-copy__wrapper
%input{ type: 'text', class: 'oauth-code', spellcheck: 'false', readonly: true, value: params[:code] }
%button{ type: :button }= t('generic.copy')