Reports
<%= form_for(@report ,as: :report, url: reports_create_path,method: :post,:html=>{:class => ' form-horizontal'}) do |f|%>
<%= hidden_field_tag :offset,"",:id=>"offset"%>
<%= f.hidden_field :id%>
<% end %>
<%=f.label :name, "Report Type", :class=>"col-sm-2 control-label"%>
<%= select_tag 'report[title]' ,options_for_select(["Top 5 APs by Usage","Top 5 Clients by Usage","Usage per SSID","Number of connected Clients","Number of connected Clients per SSID","AP List","APs DownTime","Uplink Usage by AP"],:selected => @report.id.blank? ? [] : @report.title.split(',')), {:class=>"multiselect", :multiple=>true,:default => '',:data => {:validation => "required"}}%>
<%=f.label :name, "Download Type", :class=>"col-sm-2 control-label"%>
<%= select_tag 'report[download_type]' ,options_for_select(["PDF","Excel"],:selected => @report.id.blank? ? [] : @report.download_type.split(',')), {:class=>"multiselect", :multiple=>true,:default => '',:data => {:validation => "required"}}%>
<%=f.label :name, 'Time Period', :class=>"col-sm-2 control-label" %>
<%= render :partial=>"visitor_details/calender" %>
<%#= f.select(:scheduled_on,["Every Day","Every Week","Every Fortnight","Every Month","Customize"],{},{:class => 'form-control schedule_report'})%>
<%=f.label :group, "Send Notification", :class=>"col-sm-2 control-label"%>
<%= f.select 'notification_group_ids', @noti_group.map{|p| [p[1],p[0]]},{}, {multiple: true,class: "form-control report-notification-group", placeholder: "Type to select", :data => { validation: 'required'}} %>
<% if @current_network.aggregation_flag -%>
<% end -%>
<%= f.submit "Generate", :class=>"btn btn-success report_generate", :disabled => @current_network.aggregation_flag %>
<%= link_to "Cancel", reports_report_path, :class => "btn btn-primary"%>