%= simple_form_for(@library_group) do |f| -%>
<%= f.error_messages -%>
<%= f.label :name -%>
<%= f.text_field :name, class: 'short_name' -%>
<%= f.label :display_name -%>
<%= f.text_area :display_name, class: 'resource_textarea' -%>
<%= f.label :email -%>
<%= f.fields_for :user do |user_form| %>
<%= user_form.email_field :email, class: 'resource_email' -%>
<% end %>
<%= f.label :url -%>
<%= f.url_field :url, class: 'resource_url' -%>
<% @available_languages.each do |language| -%>
<%= f.label :login_banner -%> (<%= language.display_name.localize -%>)
<%= f.text_area LibraryGroup.localized_attr_name_for(:login_banner, language.iso_639_1) -%>
<% end -%>
<% @available_languages.each do |language| -%>
<%= f.label :footer_banner -%> (<%= language.display_name.localize -%>)
<%= f.text_area LibraryGroup.localized_attr_name_for(:footer_banner, language.iso_639_1) -%>
<% end -%>
<%= f.label :max_number_of_results -%>
<%= f.number_field :max_number_of_results -%>
<% if defined?(EnjuManifestationViewer) %>
<%= f.label :book_jacket_source -%>
<%= f.select :book_jacket_source, [[t('book_jacket.google'), 'google'], [t('book_jacket.openbd'), 'openbd'], [t('book_jacket.hanmotocom'), 'hanmotocom']] -%>
<% end %>
<%= f.label :color -%>
<%= f.fields_for :colors do |color_form| %>
<%= render 'color_fields', f: color_form %>
<% end %>
<%= f.label t('activerecord.models.country') -%>
<%= f.select(:country_id, @countries.collect{|c| [c.display_name.localize, c.id]}) -%>
<% if defined?(EnjuBookmark) %>
<%= f.label :allow_bookmark_external_url -%>
<%= f.check_box :allow_bookmark_external_url -%>
<% end %>
<%= f.label :my_networks -%>
<%= f.text_area :my_networks -%>
<%= f.label :admin_networks -%>
<%= f.text_area :admin_networks -%>
<%= f.label :note -%>
<%= f.text_area :note -%>
<%= f.submit %>
<%- end -%>