Add copyable_input helper method to wrap shared options (#32119)

This commit is contained in:
Matt Jankowski 2024-10-02 10:45:54 -04:00 committed by GitHub
parent 36f9c96812
commit 7d6b9ccd34
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 8 additions and 4 deletions

View file

@ -2,7 +2,7 @@
%td
.input-copy
.input-copy__wrapper
%input{ type: :text, maxlength: '999', spellcheck: 'false', readonly: 'true', value: public_invite_url(invite_code: invite.code) }
= copyable_input value: public_invite_url(invite_code: invite.code)
%button{ type: :button }= t('generic.copy')
%td