Sha256: f813618d6e2a26f39b20e6681b6d0bbfce3d46905faf34f66808be4eb710e17b
Contents?: true
Size: 1.09 KB
Versions: 1
Compression:
Stored size: 1.09 KB
Contents
.row .col.s12 .card-panel %h5= t('.invite_user') = simple_form_for User.new, url: invitation_path('user'), html: {method: :post} do |f| = devise_error_messages! %input{ type: 'hidden', name: 'user[account_id]', value: account_id } .form-inputs .row .input-field.col.s12 = f.input :name, class: :validate, autofocus: true .row .input-field.col.s12 = f.input :email, class: :validate .form-actions.right-align = f.button :submit, t('.invite_user_submit') :coffeescript $ -> $('input[name="commit"]').on 'click', (e) -> e.preventDefault() $form = $(e.target).closest('form') data = $form.serialize() jqxhr = $.ajax url: '/users/invitation', type: 'post', data: data .done (response) -> $('#account_users').append(response) fadeItOut $('.message_container .alert-success') .fail (response) -> $('body').append(response.responseText) fadeItOut $('.message_container .alert-danger'), 5000
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
oxen_account-0.1.0 | app/views/users/invitations/_new.html.haml |