Skip to content

Commit

Permalink
Placed error messages within the forms fieldset to get our scenarios …
Browse files Browse the repository at this point in the history
…to pass again
  • Loading branch information
baphled committed Jun 18, 2010
1 parent a00582c commit 5a6e0d6
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions app/views/projects/_form.html.erb
@@ -1,7 +1,3 @@
<% content_for :side_bar do %>
<%= error_messages_for :project %>
<% end %>
<% content_for :js_head do %>
<%= javascript_include_tag "/javascripts/validations/project" %>
<%= javascript_include_tag "/javascripts/form" %>
Expand All @@ -10,14 +6,15 @@
<%= render :partial => "/common/hover_dialog" %>
<fieldset>
<%- semantic_form_for @project do |form| -%>
<%= error_messages_for :project %>
<% form.inputs :name => form_title(@project, "Project") do %>
<%= form.input :title, :hint => 'e.g. A project that creates world peace.' %>
<%= form.input :description, :as => :text, :hint => 'e.g. A solutions to all the worlds woes' %>
<%= form.input :aim, :as => :text, :hint => 'Our aim is the to solve the worlds problems' %>
<%= form.input :location, :hint => '/home/projects/salad' %>
<%= form.input :tag_list %>
<%= form.input :title, :hint => 'e.g. A project that creates world peace.' %>
<%= form.input :description, :as => :text, :hint => 'e.g. A solutions to all the worlds woes' %>
<%= form.input :aim, :as => :text, :hint => 'Our aim is the to solve the worlds problems' %>
<%= form.input :location, :hint => '/home/projects/salad' %>
<%= form.input :tag_list %>
<%= render :partial => "/common/save_button" %>
<%= render :partial => "/common/save_button" %>
<% end %>
<%= render :partial => '/common/checkboxes', :locals => {:model => @project, :item_name => Feature}%>
Expand Down

0 comments on commit 5a6e0d6

Please sign in to comment.