<% content_for :page_specific_css do %> <%= stylesheet_link_tag "lib/main-forms" %> <%= stylesheet_link_tag "lib/fileupload" %> <%= stylesheet_link_tag "lib/main-list" %> <% end %> <% content_for :page_specific_javascript do %> <%= javascript_include_tag "lib/bootstrap-fileupload" %> <%= javascript_include_tag "lib/bootstrap-datetimepicker" %> <%= javascript_include_tag "lib/datetimepicker/datetimepicker.js" %> <%= javascript_include_tag "lib/file-type" %> <% end %>
<%= f.datetime_picker :departure_time, :no_label => true, :new_record => @bus.new_record? %>
<%= f.datetime_picker :reservation_end_time, :no_label => true, :new_record => @bus.new_record? %>
<%= f.number_field :capacity, :value => (@bus.new_record? ? 20 : @bus.capacity), :class => "span1" %>
<% @site_in_use_locales.each_with_index do |locale, i| %>
">
<%= f.fields_for :bus_route_translations do |f| %> <%= f.text_field locale, class: "input-block-level", placeholder: t(:title), value: (@bus.bus_route_translations[locale] rescue nil) %> <% end %>
<%= f.fields_for :remark_translations do |f| %> <%= f.cktext_area locale, rows: 5, class: "input-block-level", :value => (@bus.remark_translations[locale] rescue nil) %> <% end %>
<% end %>
<%= f.hidden_field :created_by, :value => current_user.id %> <%= f.submit t('submit'), class: 'btn btn-primary' %> <%= link_to t('cancel'), admin_bus_bookings_path, :class=>"btn" %>