.modal-header
.modal-new-top
.modal-close
= link_to '', '#', class: 'close-dialog', data: {dismiss: :modal}
h4 Edit Invoice
.modal-new-create
= simple_form_for [:tutor, @invoice], validate: true, turboboost: true do |f|
.col-sm-12.no-padding.invoices-form
.col-sm-6
= f.input :user_id, label: false, validate: true, input_html: {value: '', class: 'select2-field', placeholder: 'Whom', autocomplete: :off, data: {url: users_path, multiple: false, maximumselectionsize: 1, always_open: false, property_to_search: 'full_name', load: [{id: f.object.user.id, full_name: f.object.user.full_name}]}}
.col-sm-6
= f.input :amount, validate: true, label: false, placeholder:'Amount'
.col-sm-12
= f.input :description, validate: true, as: :text, label: false, input_html: {class: 'ht50', placeholder:'Description'}
.col-sm-12.align-center
= f.button :submit, 'Send Invoice'
.clearfix