<% if @self_reg -%>

Register

Please fill in the details below to register for the site.

<% else -%>

New user

<% end -%> <% form_tag :action => (@self_reg ? 'self_create' : 'create') do %> <%= render :partial => 'form' %> <%= submit_tag "Submit" %> <% end %>
<% if @self_reg -%>

Once you have successfully submitted your registration request you will be given further instructions.

<% else -%> <%= link_to 'Back', :action => 'list' %> <% end -%>