<% # encoding: utf-8 %> <% content_for :page_specific_css do %> <%= stylesheet_link_tag "lib/main-forms" %> <%= stylesheet_link_tag "lib/main-list" %> <%= stylesheet_link_tag "lib/main-form-col2" %> <% end %> <% content_for :page_specific_javascript do %> <%= javascript_include_tag "lib/module-area" %> <%= javascript_include_tag "lib/bootstrap-datetimepicker.js" %> <%= javascript_include_tag "lib/bootstrap-typeahead.js" %> <%= javascript_include_tag "lib/datetimepicker/date.time.picker.js" %> <%= javascript_include_tag "lib/datetimepicker/datetimepicker" %> <% end %>
<% @site_in_use_locales.each_with_index do |locale, i| %>
">
<%= f.fields_for :activity_name_translations do |f| %> <%= f.text_field locale, class: "input-block-level", placeholder: t("personal_activity.activity_name"), value: (@activity.activity_name_translations[locale] rescue nil) %> <% end %>
<%= f.fields_for :activity_organizer_translations do |f| %> <%= f.text_field locale, class: "input-block-level", placeholder: t("personal_activity.activity_organizer"), value: (@activity.activity_organizer_translations[locale] rescue nil) %> <% end %>
<%= f.fields_for :activity_area_translations do |f| %> <%= f.text_field locale, class: "input-block-level", placeholder: t("personal_activity.activity_area"), value: (@activity.activity_area_translations[locale] rescue nil) %> <% end %>
<% end %>
<% if !@member.nil? %>
<%= @member.name rescue ''%> <%= f.hidden_field :member_profile_id, :value => @member.id %>
<% end %>
<%= select_year((@activity.year ? @activity.year.to_i : DateTime.now.year), {:start_year => (DateTime.now.year+5), :end_year => 1930}, {:name => 'activity[year]',:class => 'span1'} ) %>
<%= f.datetime_picker :activity_start_date, :no_label => true,:format=>"yyyy/MM/dd", :placeholder=>"YYYY/MM/DD", :value => @activity.activity_end_date, :new_record => @activity.new_record? %>
<%= f.datetime_picker :activity_end_date, :no_label => true,:format=>"yyyy/MM/dd", :placeholder=>"YYYY/MM/DD", :value => @activity.activity_end_date, :new_record => @activity.new_record? %>
<%= f.text_area :note, rows: 2, class: "ckeditor input-block-level" %>
<%= f.submit t('submit'), class: 'btn btn-primary' %> <%= link_to t('cancel'), get_go_back, :class=>"btn" %>