<% 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/file-type" %> <%= javascript_include_tag "lib/module-area" %> <%= javascript_include_tag "file-upload/jquery.fileupload" %> <% end %>
<%= select_category(f, @module_app) %>
<%= f.label :course_pic, t("hps_learning.course_pic"), :class => "control-label muted" %>
<% if @hpsclass.course_pic.file %> <%= image_tag @hpsclass.course_pic, :id => "showcase_image" %> <% else %> <% end %>
<%= t(:select_image) %> <%= t(:change) %> <%= f.file_field :course_pic %>
<%= 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: (@hpsclass.title_translations[locale] rescue nil) %> <% end %>
<% end %>
<%= f.submit t('submit'), class: 'btn btn-primary' %>