foodsoft/app/views/invites/_modal_form.html.haml
2013-02-04 12:59:04 +01:00

12 lines
454 B
Text

= simple_form_for @invite, remote: true do |form|
.modal-header
= button_tag t('ui.marks.close'), 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'