.modal-header button.close data-dismiss="modal" type="button" span aria-hidden="true" × span.sr-only Close h4.modal-title Update event .modal-body.ptb15 = simple_form_for @event, url: { action: "update"}, validate: true, turboboost: true, remote: true do |f| .col-sm-12 = f.input :name, label: 'Name', validate: true .col-sm-12 = f.input :description , label: 'Description', validate: true .row.mt15 .col-sm-3.relative = f.input :stime, label: false do = f.input_field :stime, as: :string, label: false, class: 'timepicker-input', readonly: true, value: f.object.start_time.try(:in_time_zone).try(:hr_min_mer) span.editevent-clock-icon i.fa.fa-clock-o .col-sm-1 .pt8.center to .col-sm-3.relative = f.input :etime,label: false do = f.input_field :etime, as: :string, label: false, class: 'timepicker-input', readonly: true, value: f.object.end_time.try(:in_time_zone).try(:hr_min_mer) span.editevent-clock-icon i.fa.fa-clock-o .col-sm-1 .pt4.center on .col-sm-3.relative = f.input :date, label: false do = f.input_field :date, as: :string, class: 'datepicker-input', value: f.object.start_time.try(:mm_dd_yyyy) span.editevent-clock-icon i.fa.fa-calendar .row .col-sm-12.control-label .pt8.text-center | Frequency .col-sm-12 = f.input :frequency, collection: ['Daily','Weekly','Monthly','Yearly'], prompt: "Once", label: false - if @event.personal? or (@event.grouped? and @event.resource.custom_user_group?) .row .invite-users.nopad.text-center .col-sm-12.mt5.control-label | Invite Friend(s) .col-sm-12.mb10.mt5 = text_field_tag 'user_ids','', placeholder: "Search by name to add members to this event.", data: {theme: "facebook", animation: "true", zindex: 9999, target: user_favorites_path(current_user), load: @event.users.map {|u| {name: u.name, id: u.id}}}, id: 'user_ids', class: "token-input" .col-xs-12.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'