summaryrefslogtreecommitdiff
path: root/app/views/profiles/accounts/_reset_token.html.haml
blob: c31a4a8ecd462a739b5de7e2e990fe1f02ed2434 (plain)
1
2
3
4
5
6
7
8
9
10
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'