We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1928d53 commit d06523eCopy full SHA for d06523e
1 file changed
app/views/devise/registrations/_v2_api_token.html.erb
@@ -9,7 +9,21 @@
9
<div class="form-control mb-3 col-xs-8">
10
<%= label_tag(:api_token, _('Access token'), class: 'form-label') %>
11
<% if token.present? %>
12
- <code><%= token %></code>
+ <%= text_field_tag(
13
+ :api_token_val,
14
+ token,
15
+ id: 'api-token-val',
16
+ class: 'form-control',
17
+ style: 'width: auto;',
18
+ readonly: true
19
+ ) %>
20
+
21
+ <%= button_tag(
22
+ _('Copy'),
23
+ id: 'copy-token-btn',
24
+ type: 'button',
25
+ class: 'btn btn-secondary'
26
27
<div class="alert alert-warning">
28
<%= _( "Please copy this token now and store it somewhere safely." ) %><br>
29
<%= _( "It will disappear after you leave or refresh this page." ) %>
0 commit comments