Sha256: d871e09f8da56a68ba6a12f3b98372b32d803c4a1f45d16715d19447d44b4a4c

Contents?: true

Size: 891 Bytes

Versions: 5

Compression:

Stored size: 891 Bytes

Contents

<% if !(session[:help_popups_clearance].nil?) || (Rails.configuration.help_popups_simple_auth == false) %>
	<%= form_for @topic do |f| %>
		<h2>Adding New Topic</h2>
		<%= render 'shared/error_messages', :object => f.object %><br/>
		<%= render 'fields', :f => f %>
		<br/>
		<%= f.submit "Add Topic" %> &nbsp; <input type="button" value="Cancel" onclick="document.location='<%= topics_path %>'">
	<% end %>
<% else %>
	You must login before you can access the Help Popups administration.<br/>
	Please enter the password you defined for <b>config.help_popups_password</b>: <br/>
	<br/>
	<% flash.each do |key, value| %>
		<%= content_tag(:div, value, :class => "flash #{key}") %>
	<% end %>
	<form action='/help_popups/login' method='post'><input type='text' size='20' id='help_popups_password' name='help_popups_password'> &nbsp; &nbsp; <input type='submit' value='Submit'></form>
<% end %>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
help_popups-1.0.5 app/views/help_popups/topics/new.html.erb
help_popups-1.0.4 app/views/help_popups/topics/new.html.erb
help_popups-1.0.3 app/views/help_popups/topics/new.html.erb
help_popups-1.0.2 app/views/help_popups/topics/new.html.erb
help_popups-1.0.1 app/views/help_popups/topics/new.html.erb