%= render 'page/required_field' %>
<%= simple_form_for(@library) do |f| -%>
<%= f.error_messages -%>
<%= f.label :name -%>
<%= f.text_field :name, class: 'short_name' -%>
<%= f.label :short_display_name -%>
<%= f.text_area :short_display_name, class: 'resource_textarea' -%>
<%= f.label :display_name -%>
<%= f.text_area :display_name, class: 'resource_textarea' -%>
<% unless @library.web? %>
<%= f.label :isil -%>
<%= f.text_field :isil, class: 'resource_identifier' -%>
<%= f.label t('activerecord.models.country') -%>
<%= f.select(:country_id, @countries.collect{|c| [c.display_name.localize, c.id]}) -%>
<%= f.label :zip_code -%>
<%= f.text_field :zip_code -%>
<%= f.label :region -%>
<%= f.text_area :region, class: 'resource_textarea' -%>
<%= f.label :locality -%>
<%= f.text_area :locality, class: 'resource_textarea' -%>
<%= f.label :street -%>
<%= f.text_area :street, class: 'resource_textarea' -%>
<%= f.label :latitude -%>
<%= f.text_field :latitude -%>
<%= f.label :longitude -%>
<%= f.text_field :longitude -%>
<%= f.label :telephone_number_1 -%>
<%= f.phone_field :telephone_number_1 -%>
<%= f.label :telephone_number_2 -%>
<%= f.phone_field :telephone_number_2 -%>
<%= f.label :fax_number -%>
<%= f.phone_field :fax_number -%>
<%= f.label :call_number_rows -%>
<%= f.text_field :call_number_rows, class: 'resource_integer' -%>
<%= f.label :call_number_delimiter -%>
<%= f.text_field :call_number_delimiter, class: 'resource_integer' -%>
<%= f.label :opening_hour -%>
<%= f.text_area :opening_hour, class: 'resource_textarea' -%>
<%= f.label :note -%>
<%= f.text_area :note, class: 'resource_textarea' -%>
<% end %>
<%= f.hidden_field :library_group_id %>
<%= f.submit %>
<%- end -%>