.modal-header button.close data-dismiss="modal" type="button" span aria-hidden="true" × span.sr-only Close h4.modal-title Update event .modal-body = simple_form_for @event, url: { action: "update"}, validate: true, turboboost: true, remote: true do |f| .row .col-sm-3 | Name .col-sm-9 = f.input :name, label: false, validate: true .row .col-sm-3 | Description .col-sm-9 = f.input :description , label: false, validate: true .row .col-sm-3 | When .col-sm-9.no-padding .col-sm-4 = f.input :stime, as: :string, label: false, wrapper_html: {class: 'inline'}, input_html: {class: 'timepicker-input', readonly: true, value: f.object.start_time.try(:in_time_zone).try(:hr_min_mer)} .col-sm-1 .pt8.center to .col-sm-4 = f.input :etime, as: :string, label: false, wrapper_html: {class: 'inline'}, input_html: {class: 'timepicker-input', readonly: true, value: f.object.end_time.try(:in_time_zone).try(:hr_min_mer)} .col-sm-1.hide = f.input :date, as: :hidden, input_html: {value: f.object.start_time.try(:mm_dd_yyyy)} .row .col-sm-3 | Reminder .col-sm-9 = f.select :reminder, [['No Reminder', ''], ["1 Hour", 1]] | (2..10).map {|r| ["#{r} Hours", r]} .row.invite-users.nopad.hide - if @event.shares.last.try(:shared_to_user?) .col-sm-3.mt5 | Invite Connect(s) .col-sm-9.mb10.mt5 = f.input :user_emails, input_html: {class: 'select2-field center-placeholder', autocomplete: :off, data: {target: user_favorites_path(current_user), tokenize_email: true, multiple: true, token_value: 'email',placeholder: "Enter name", property_to_search: 'name_with_email', load: @event.shared_with_users.except(@event.owner).map{|u| {name_with_email: "#{u.name} #{u.email}", email: u.email}}}}, label: false - elsif @event.personal? .col-sm-3.mt5 | Invite Connect(s) .col-sm-9.mb10.mt5 = f.input :user_emails, input_html: {class: 'select2-field center-placeholder', autocomplete: :off, data: {target: user_favorites_path(current_user), tokenize_email: true, multiple: true, token_value: 'email',placeholder: "Enter name", property_to_search: 'name_with_email'}}, label: false .row.align-center.ptb20 .col-xs-6.col-sm-6 = f.submit 'Update', class: 'btn btn-default fs9' .col-xs-6.col-sm-6 = link_to 'Delete', @event, method: :delete, data: {confirm: "Are you sure?", target: '#remote-modal', remote: true}, class: 'btn btn-default fs9'