foodsoft/app/views/invites/_modal_form.html.haml
2013-04-10 17:34:24 +02:00

12 lines
464 B
Text

= simple_form_for @invite, remote: true do |form|
.modal-header
= button_tag t('ui.marks.close').html_safe, class: 'close', data: {dismiss: 'modal'}
%h3= t '.title'
.modal-body
= t('.body', group: @invite.group.name).html_safe
= form.hidden_field :user_id
= form.hidden_field :group_id
= form.input :email
.modal-footer
= button_tag t('ui.close'), class: 'btn', data: {dismiss: 'modal'}
= form.submit class: 'btn btn-primary'