<% 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/modal-preview" %> <%= javascript_include_tag "lib/file-type" %> <% end %>
<%= select_category(f, @module_app) %>
<%= select_tag(f, @module_app) %>
<% I18n.available_locales.each_with_index do |locale, i| %>
<%= f.fields_for :name_translations do |name| %> <%= label_tag(locale, t("gallery.album_name"),:class=>"control-label muted") %>
<%= name.text_field locale, :class => "input-block-level", :placeholder=>"Title",:value => (@album.name_translations[locale] rescue nil) %>
<% end %>
<%= f.fields_for :description_translations do |desc| %> <%= label_tag(locale, t("gallery.album_desc"), :class=>"control-label muted") %>
<%= desc.text_area locale, :class => "ckeditor input-block-level", :value => (@album.description_translations[locale] rescue nil)%>
<% end %>
<% end %>
<%= f.submit t("gallery.save"), :class=> "btn btn-primary bt-form-save" %>