<%= semantic_form_for(@need) do |f| %>
  <% if @need.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@need.errors.count, "error") %> prohibited this need from being saved:</h2>

      <ul>
      <% @need.errors.full_messages.each do |msg| %>
        <li><%= msg %></li>
      <% end %>
      </ul>
    </div>
  <% end %>

  <%= f.inputs :id => 'overview' do %>
    <%= f.input :title, :label => 'Need *' %>
    <%= f.input :description, :label => 'Context', :hint => "provide some information about the circumstances surrounding this need" %>
    <%= f.input :tag_list, :label => 'Tags', :hint => "separate tags with commas" %>
  <% end %>

  <% if current_user.role == 'superuser' and f.object.persisted? %>
    <%= f.inputs :id => 'metadata', :name => 'Product decision' do %>
      <%= f.input :kind %>
      <%= f.input :status, :collection => Need::STATUSES %>
      <%= f.input :url %>
      <%= f.input :priority %>
      <%= f.input :reason_for_decision %>
    <% end %>
  <% end %>

  <%= f.inputs do %>
    <%= f.input :audiences, :as => :check_boxes %>
  <% end %>
  
  <%= f.buttons %>
  <%= link_to 'Cancel', need_path(@need) %>
<% end %>

<%= semantic_form_for(@need) do |f| %>
  <% if @need.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@need.errors.count, "error") %> prohibited this need from being saved:</h2>

      <ul>
      <% @need.errors.full_messages.each do |msg| %>
        <li><%= msg %></li>
      <% end %>
      </ul>
    </div>
  <% end %>

  <%= f.inputs :id => 'overview' do %>
    <%= f.input :title, :label => 'Need *' %>
    <%= f.input :description, :label => 'Context', :hint => "provide some information about the circumstances surrounding this need" %>
    <%= f.input :tag_list, :as => :string, :label => 'Tags', :hint => "separate tags with commas" %>
  <% end %>

  <% if current_user.role == 'superuser' and f.object.persisted? %>
    <%= f.inputs :id => 'metadata', :name => 'Product decision' do %>
      <%= f.input :kind %>
      <%= f.input :status, :collection => Need::STATUSES %>
      <%= f.input :url %>
      <%= f.input :priority %>
      <%= f.input :reason_for_decision %>
    <% end %>
  <% end %>

  <%= f.inputs do %>
    <%= f.input :audiences, :as => :check_boxes %>
  <% end %>
  
  <%= f.buttons %>
<% end %>

Remove cancel link that broke the form
Remove cancel link that broke the form
