<%= setup_context :title => "Batch Locations", :trail => [[I18n.t("location._plural"), {:controller => :locations, :action => :index}]] %> <%= form_for @location_batch, :as => "location_batch", :url => {:action => :batch_create}, :html => {:class => 'form-horizontal aspace-record-form'} do |f| %> <%= form_context :location_batch, @location_batch do |form| %>
<%= render_aspace_partial :partial => "locations/sidebar_batch" %>

<%= I18n.t("location_batch._singular") %>

<%= I18n.t("location_batch._frontend.section.location") %>

<%= I18n.t("location_batch._frontend.messages.#{@location_batch.jsonmodel_type}_info") %>

<%= render_aspace_partial :partial => "locations/form_batch", :locals => {:form => form} %>
<% unless @is_batch_update %>

<%= I18n.t("location_batch._frontend.section.ranges") %>

<%= I18n.t("location_batch._frontend.messages.ranges_info", :max_range => AppConfig[:max_location_range].to_s) %>

<%= render_aspace_partial :partial => "locations/batch_form", :locals => {:form => form} %>
<% end %>
<% if !@is_batch_update && !(I18n.t("location_batch._frontend.messages.warning", :default => "").blank?) %>
<%= I18n.t("location_batch._frontend.messages.warning") %>
<% end %> <% if !@is_batch_update %> <% end %> <%= link_to I18n.t("actions.cancel"), :back, :class => "btn btn-cancel btn-default" %>
<% end %> <% end %>