<%= title l(:label_bulk_time_entries) %>
<%= form_for @time_entry, url: {action: 'save', time_entry_id: params[:time_entry_id]}, html: {class: 'tabular form-disabled-on-ajax form-box', id: 'bulk-time-entry-form', remote: true} do %>
  <%= error_messages_for 'time_entry' %>
  <span autofocus="autofocus"></span>
  <div class="combo-container no-label-required-by-css" id="container_users">
    <%= render 'bulk_time_entries/container_users' %>
  </div>

  <div class="timeentry-projects combo-container no-label-required-by-css" id="container_projects">
    <%= render 'bulk_time_entries/container_projects' %>
  </div>

  <% if [nil, 'Project', 'Issue'].include?(@time_entry.entity_type) %>
    <div class="timeentry-issues combo-container no-label-required-by-css" id="container_issues">
      <%= render 'bulk_time_entries/container_issues' %>
    </div>
  <% end %>

  <div id="container_time_entry">
    <%= render partial: 'bulk_time_entries/container_time_entry', locals: {modal: true} %>
  </div>

  <div class="form-actions">
    <%= submit_tag l(:button_create), class: 'button-positive', name: 'continue', title: l(:button_create) -%>
  </div>

<% end %>
