<div class="panel panel-default">
<div class="panel-heading"><h1>Import Bundle</h1></div>

<%= bootstrap_form_tag url: admin_bundles_url, html: {id: "add_bundle_form"} do |f| %>
  <div class="panel-body">
    <%= f.file_field :file, label: 'Bundle', accept: 'application/zip' %>
  </div>

  <div class="panel-footer">
    <%= f.submit 'Import Bundle', :class => "btn btn-success", :id => "submit_button", data: { disable_with: "Please wait..." } %>
    <%= submit_tag "Cancel", :class => "btn btn-default", :type => "button", :onclick => "history.back()" %>
  </div>
<% end %>

</div>

<div class="panel panel-default">
<div class="panel-heading"><h1>Import Bundle</h1></div>

<%= bootstrap_form_tag url: admin_bundles_path, html: {id: "add_bundle_form"} do |f| %>
  <div class="panel-body">
    <%= f.file_field :file, label: 'Bundle', accept: 'application/zip' %>
  </div>

  <div class="panel-footer">
    <%= f.submit 'Import Bundle', :class => "btn btn-success", :id => "submit_button", data: { disable_with: "Please wait..." } %>
    <%= submit_tag "Cancel", :class => "btn btn-default", :type => "button", :onclick => "history.back()" %>
  </div>
<% end %>

</div>

Fix uploading when behind an web server such as nginx
Fix uploading when behind an web server such as nginx

Currently when you attempt to upload a new bundle to the application when behind a proxy server such as nginx the upload fails. This is due to the fact that the admin_bundles_url returns the absolute url which is incorrect when behind a proxy server. If we use admin_bundles_path instead then it returns a relative url which does not encounter this problem.
