Add copyable_input
helper method to wrap shared options (#32119)
This commit is contained in:
parent
36f9c96812
commit
7d6b9ccd34
5 changed files with 8 additions and 4 deletions
|
@ -3,5 +3,5 @@
|
|||
%p= t('doorkeeper.authorizations.show.title')
|
||||
.input-copy
|
||||
.input-copy__wrapper
|
||||
%input.oauth-code{ type: 'text', spellcheck: 'false', readonly: true, value: params[:code] }
|
||||
= copyable_input value: params[:code], class: 'oauth-code'
|
||||
%button{ type: :button }= t('generic.copy')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue