<% 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" %> <% end %>
<% @site_in_use_locales.each do |locale| %> <%= f.fields_for :title_translations do |f| %>
<%= f.label :title.to_s + " (" + locale.to_s + ")", :class => "control-label muted" %>
<%= f.text_field locale, placeholder: t("space.building_name"), :value => @building.title_translations[locale.to_s] %>
<% end %> <% end %>
<%= select_category(f, ModuleApp.find_by_key("space")) %>
<% if @building.image.file %> <%= image_tag @building.image %> <% else %> <% end %>
<%= t(:select_image) %> <%= t(:change) %> <%= f.file_field :image %> <%= t(:cancel) %>
<%= f.submit t('submit'), class: 'btn btn-primary' %> <%= link_to t('cancel'), admin_spaces_path, :class=>"btn" %>