<% content_for :page_specific_css do %> <%= stylesheet_link_tag "lib/main-forms" %> <%= stylesheet_link_tag "lib/fileupload" %> <%= stylesheet_link_tag "lib/main-list" %> <%= stylesheet_link_tag "lib/main-form-col2" %> <% end %> <% content_for :page_specific_javascript do %> <%= javascript_include_tag "lib/bootstrap-datetimepicker" %> <%= javascript_include_tag "lib/datetimepicker/datetimepicker.js" %> <%= javascript_include_tag "lib/bootstrap-fileupload" %> <%= javascript_include_tag "lib/file-type" %> <%= javascript_include_tag "lib/module-area" %> <% end %>
<% if !@member.blank? %>
<%= @member.name rescue ''%> <%= f.hidden_field :member_profile_id, :value => @member.id %>
<% end %>
<% @site_in_use_locales.each do |locale| %> <%= f.fields_for :dayoff_description_translations do |f| %>
<%= f.text_field locale, value: (@dayoff.dayoff_description_translations[locale.to_s] rescue nil) %>
<% end %> <% end %>
<%= f.datetime_picker :start_dayoff, :no_label => true, :new_record => @dayoff.new_record?, :data=>{"picker-type" => "range", "range" => "start"} %>
<%= f.datetime_picker :end_dayoff, :no_label => true, :new_record => @dayoff.new_record?, :data=>{"picker-type" => "range", "range" => "end"} %>
<%= f.hidden_field :user_id, :value => params[:user_id] if !params[:user_id].blank? %> <%= f.submit t('submit'), class: 'btn btn-primary' %> <%= link_to t('cancel'), request.referer, :class=>"btn" %>