<%= semantic_form_for([:admin, resource], :url => resource.new_record? ? admin_generic_states_path : "#{ENV['RAILS_RELATIVE_URL_ROOT']}/admin/generic_states/#{resource.id}") do |f| %>
  <%= f.semantic_errors *f.object.errors.keys %>
  <%= f.inputs do %>
    <%= f.input(:top_message, :input_html => {:maxlength => 10000, :rows=>10, :class  => 'autogrow'}) %>
    <%= f.input(:connection_policy, :input_html => {:maxlength => 100000, :rows=>10, :class  => 'autogrow'}) %>
    <%= f.input(:event_page_top_logo_url, :input_html => {:maxlength => 200}, :hint => '/assets/logo.png') %>
  <% end %>
  <%= f.actions %>
<% end %>