= simple_form_for @task, validate: true, turboboost: true do |f| - if !ActsAsTenant.current_tenant.try(:prelaunch?) .col-sm-12.hide .pt1 = f.collection_radio_buttons :schedule_type, [[:personal, :Personal], [:group, :Group]], :first, :last, checked: :group,:item_wrapper_class => 'plr10' .cleardot.hide #gname.hide.col-sm-12.nopad.mtb10 .col-sm-3 | Group .col-sm-9 = hidden_field_tag :group_id, @task.resource.id .col-sm-12.nopad .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.btn.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.btn.smico i.fa.fa-clock-o .clearfix = f.hidden_field :customized_id, value: current_user.id = f.hidden_field :parent_id, value: @task.parent_id = f.hidden_field :section_id, value: @task.section_id .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" .col-xs-12.col-sm-offset-3.col-sm-9.align-center.pt20 .col-xs-6.col-sm-6 = f.button :submit, "Update Task", class:'fs9' .col-xs-6.col-sm-6 - unless @task.new_record? = link_to 'Delete Task', @task, method: :delete, data: {confirm: "Are you sure?", target: '#remote-modal', remote: true}, class: 'btn btn-default fs9' - else = link_to 'Delete Task', delete_parent_task_path(@task.parent_id), method: :post, data: {confirm: "Are you sure?", target: '#remote-modal', remote: true}, class: 'btn btn-default fs9' .clearfix