<% content_for :page_specific_css do %> <%= stylesheet_link_tag "lib/main-forms" %> <%= stylesheet_link_tag "lib/main-list" %> <%= stylesheet_link_tag "lib/dropzone" %> <%= stylesheet_link_tag "//maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css" %> <%= stylesheet_link_tag "//cdnjs.cloudflare.com/ajax/libs/animate.css/3.2.6/animate.min.css" %> <% end %> <% content_for :page_specific_javascript do %> <%= javascript_include_tag "lib/dropzone" %> <%= 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" %> <% end %> <%= form_for @rm, url: admin_admin_module_path(@rm.id), html: {class: "form-horizontal main-forms previewable", id: "module_edit_form"} do |f| %>
Uploading...
<%= select_category(f, @module_app) %>
<%= f.label :module_key, "module_key", :class => "control-label muted" %>
<%= f.text_field :module_key, :class => "input-xxlarge" %>
<%= f.label :git_path, t("register_module.git_path"), :class => "control-label muted" %>
<%= f.text_field :git_path, :class => "input-xxlarge" %>
<%= f.label :icon_class, t("register_module.icon_class"), :class => "control-label muted" %>
<%= f.text_field :icon_class %>
<%= f.label :display_in_frontend, t("register_module.display_in_frontend"), :class => "control-label muted" %>
<%= f.check_box :display_in_frontend %>
<%= select_tags(f, @module_app) %>
<% @rm.module_show_files.each do |image| %>
<% end %>
<% @site_in_use_locales.each_with_index do |locale, i| %>
">
<%= f.fields_for :name_translations do |f| %> <%= f.text_field locale, rows: 5, class: "input-block-level", :value => (@rm.name_translations[locale] rescue nil) %> <% end %>
<%= f.fields_for :description_translations do |f| %> <%= f.cktext_area locale, rows: 5, class: "input-block-level", :value => (@rm.description_translations[locale] rescue nil) %> <% end %>
<% end %>
<%= f.submit t('submit'), class: 'btn btn-primary', :id => "module-form-btn" %>
<% end %>