summaryrefslogtreecommitdiff
path: root/app/views/profiles/accounts/_reset_token.html.haml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/profiles/accounts/_reset_token.html.haml')
-rw-r--r--app/views/profiles/accounts/_reset_token.html.haml11
1 files changed, 11 insertions, 0 deletions
diff --git a/app/views/profiles/accounts/_reset_token.html.haml b/app/views/profiles/accounts/_reset_token.html.haml
new file mode 100644
index 00000000000..c31a4a8ecd4
--- /dev/null
+++ b/app/views/profiles/accounts/_reset_token.html.haml
@@ -0,0 +1,11 @@
+- name = label.parameterize
+- attribute = name.underscore
+
+.reset-action
+ %p.cgray
+ = label_tag name, label, class: "label-light"
+ = text_field_tag name, current_user.send(attribute), class: 'form-control', readonly: true, onclick: 'this.select()'
+ %p.help-block
+ = help_text
+ .prepend-top-default
+ = link_to button_label, [:reset, attribute, :profile], method: :put, data: { confirm: 'Are you sure?' }, class: 'btn btn-default private-token'