Permalink
Browse files

formtastic needs = instead of -

  • Loading branch information...
1 parent b6a3312 commit 322811e422b1c9550816201d3e934263b504a810 @elle committed Jan 15, 2012
View
4 app/views/events/_form.html.haml
@@ -1,12 +1,12 @@
= semantic_form_for @event do |f|
= f.semantic_errors
- - f.inputs do
+ = f.inputs do
= f.input :name, :label => 'Event Title'
= f.input :user, :as => :select, :label => 'Organiser', :collection => @users, :label_method => :full_name
= f.input :description, :hint => 'Textile supported'
= f.input :start_at, :label => 'Starts at'
= f.input :end_at, :label => 'Ends at'
= f.input :venue_id, :as => :select, :label => 'Location', :collection => Venue.all
-
+
= f.buttons
View
6 app/views/notices/_form.html.haml
@@ -1,8 +1,8 @@
-- semantic_form_for @notice do |f|
+= semantic_form_for @notice do |f|
= f.semantic_errors
- - f.inputs do
+ = f.inputs do
= f.input :title
= f.input :content, :hint => 'Textile supported'
-
+
= f.buttons
View
6 app/views/projects/_form.html.haml
@@ -1,9 +1,9 @@
-- semantic_form_for([current_user, @project]) do |f|
+= semantic_form_for([current_user, @project]) do |f|
= f.semantic_errors
- - f.inputs do
+ = f.inputs do
= f.input :name
= f.input :description, :hint => 'Textile supported'
= f.input :help, :label => 'Need help?'
-
+
= f.buttons
View
2 app/views/talks/_form.html.haml
@@ -3,7 +3,7 @@
= semantic_form_for @talk do |f|
= f.semantic_errors
- - f.inputs do
+ = f.inputs do
= f.input :name, :label => 'Talk Title'
= f.input :user, :as => :select, :collection => @users, :label_method => :full_name, :value_method => :id
= f.input :description, :hint => 'Textile supported'
View
15 app/views/users/edit.html.haml
@@ -1,34 +1,31 @@
-%h2 Edit my details
-
- content_for :header do
:javascript
window.skills_tags_objs = #{@skills_tags_json};
window.interests_tags_objs = #{@interests_tags_json};
-
-
+%h2 Edit my details
= semantic_form_for @user, :url => user_path(@user) do |f|
= f.semantic_errors
- - f.inputs "You" do
+ = f.inputs "You" do
= f.input :first_name
= f.input :last_name
= f.input :email
- - f.inputs do
+ = f.inputs do
= f.input :bio, :hint => 'Textile supported'
- - f.inputs "Contactability" do
+ = f.inputs "Contactability" do
= f.input :twitter
= f.input :bonjour
= f.input :irc
- - f.inputs "Skills" do
+ = f.inputs "Skills" do
= f.input :skill_list, :input_html => { :value => @user.skill_list.sort }, :hint => 'enter tags, comma separated (Ex: javascript, rspec, rails)'
= f.input :interest_list, :input_html => { :value => @user.interest_list.sort }, :hint => 'enter tags, comma separated (Ex: javascript, rspec, rails)'
- - f.buttons do
+ = f.buttons do
%li.cancel= link_to 'Cancel', @user, :class => 'cancel'
= f.commit_button

0 comments on commit 322811e

Please sign in to comment.