= simple_form_for @task, validate: true, turboboost: true do |f| - if @task.new_record? && !ActsAsTenant.current_tenant.try(:prelaunch?) .col-sm-12 .pt1 = f.collection_radio_buttons :schedule_type, [[:personal, :Personal], [:group, :Group]], :first, :last, checked: :personal,:item_wrapper_class => 'plr10' .cleardot #gname.hide.col-sm-12.nopad.mtb10 .col-sm-3 | Group .col-sm-9 = select_tag :group_id, options_for_select(current_user.groups.collect{|g| [g.name, g.id]}), prompt: "Select Groups", class:'hide', disabled: true .col-sm-12.nopad.text-left .col-sm-3 .pt8 | Title .col-sm-9 = f.input :name, validate: true, label:false .clearfix .col-sm-3 .pt8 Due .col-sm-9 .col-sm-6 = f.input :date, label: false, wrapper: :horizontal_input_group_without_label do = f.input_field :date, as: :string, class: 'datepicker-input form-control smdate', data: {date_format: 'MM/DD/YYYY'}, value: f.object.start_time.try(:mm_dd_yyyy), autocomplete: :off, readonly: true span.input-group-addon.smico i.fa.fa-calendar .col-sm-5.ml5 = f.input :stime, label: false, wrapper: :horizontal_input_group_without_label do = f.input_field :stime, as: :string, class: 'timepicker-input form-control smdate', value: f.object.start_time.try(:in_time_zone).try(:hr_min_mer), autocomplete: :off, readonly: true span.input-group-addon.smico i.fa.fa-clock-o .clearfix .col-sm-3 .pt8 | Description .col-sm-9 = f.input :description, validate: true, as: :text, label: false, input_html: {class: 'ht80'} .col-sm-3 .pt8 | Reminder .col-sm-9.mb5 = f.select :reminder, [['No Reminder', ''], ["1 Hour", 1]] | (2..10).map {|r| ["#{r} Hours", r]} .col-sm-3 .pt8 | Frequency .col-sm-9 = f.select :frequency, options_for_select(['Daily','Weekly','Monthly','Yearly'].collect{|a| a}), prompt: "Once" - unless ActsAsTenant.current_tenant.try(:prelaunch?) - if @task.new_record? .invite-users.nopad .col-sm-3.mt5 | Invite Friend(s) .col-sm-9.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)}, id: 'user_ids', class: "token-input" - elsif @task.grouped? and @task.resource.user_group? .invite-users.nopad .col-sm-3.mt5 | Invite Friends .col-sm-9.mb10.mt5 /= text_field_tag 'user_ids','', placeholder: "Add members to this task", data: {theme: "facebook", animation: "true", zindex: 9999, target: user_favorites_path(current_user), load: @task.resource.users.except_user(current_user).map {|u| {name: u.name, id: u.id}}}, id: 'user_ids', class: "token-input" = f.input :user_ids, label: false, validate: true, input_html: {value: '', class: 'select2-field', placeholder: 'Search and Add members to this task', autocomplete: :off, data: {url: user_favorites_path(current_user), multiple: true, always_open: false}} .col-xs-12.col-sm-offset-3.col-sm-9.align-center.pt20 .col-xs-6.col-sm-6 = f.button :submit, class: 'fs9' .col-xs-6.col-sm-6 = link_to 'Delete Task', @task, method: :delete, data: {confirm: "Are you sure?", target: '#remote-modal', remote: true}, class: 'btn btn-default fs9' .clearfix