<% 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" %> <%= javascript_include_tag "lib/module-area" %> <%= javascript_include_tag "file-upload/jquery.fileupload" %> <% end %>
<%= select_category(f, @module_app) %>
" for="youtube"> <%= f.label :youtube_link, "YouTube Link", :class => "control-label muted" %>
<%= f.text_field :youtube_link %>
<%= 'ex. https://www.youtube.com/watch?v=UHF2e3lyPVU' %>
" for="upload"> <%= f.label :video, "Video", :class => "control-label muted" %>
Upload Video
" for="upload"> <%= f.label :image, "Cover Image", :class => "control-label muted" %>
<% if @vlog.image.file %> <%= image_tag @vlog.image %> <% else %> <% end %>
<%= t(:select_image) %> <%= t(:change) %> <%= f.file_field :image %> <%= t(:cancel) %>
<%= f.label :display_in_profile, "Display in profile", :class => "control-label muted" %>
<%= f.check_box :display_in_profile %>
<%= select_tags(f, @module_app) %>
<% @site_in_use_locales.each_with_index do |locale, i| %>
">
<%= f.fields_for :title_translations do |f| %> <%= f.text_field locale, class: "input-block-level", placeholder: t(:title), value: (@vlog.title_translations[locale] rescue nil) %> <% end %>
<%= f.fields_for :subtitle_translations do |f| %> <%= f.text_area locale, rows: 2, class: "input-block-level", value: (@vlog.subtitle_translations[locale] rescue nil) %> <% end %>
<% end %>
<% if @vlog && !@vlog.v_log_files.blank? %>
<% @vlog.v_log_files.each_with_index do |v_log_file, i| %> <%= f.fields_for :v_log_files, v_log_file do |f| %> <%= render :partial => 'form_file', :object => v_log_file, :locals => {:f => f, :i => i} %> <% end %> <% end %>
<% end %>

<%= f.submit t('submit'), class: 'btn btn-primary' %>