% if !(session[:help_popups_clearance].nil?) || (Rails.configuration.help_popups_simple_auth == false) %>
<%= form_for @topic do |f| %>
Editing Topic
<%= render 'shared/error_messages', :object => f.object %>
<%= render 'fields', :f => f %>
<%= f.submit "Edit Topic" %>
<% end %>
<%= form_tag(topic_path, :method => :delete, :id => "deleteForm") %>
<% else %>
You must login before you can access the Help Popups administration.
Please enter the password you defined for config.help_popups_password:
<% flash.each do |key, value| %>
<%= content_tag(:div, value, :class => "flash #{key}") %>
<% end %>
<% end %>