fixed problems with tab display on member profile

This commit is contained in:
Skud
2013-01-20 21:46:53 +11:00
parent 73d1eb0879
commit 4448468ee7
2 changed files with 11 additions and 10 deletions

View File

@@ -1,4 +1,4 @@
= form_for @garden, :html => {:class => "form-horizontal"} do |f|
= form_for @garden, :html => {} do |f|
- if @garden.errors.any?
#error_explanation
%h2= "#{pluralize(@garden.errors.count, "error")} prohibited this garden from being saved:"
@@ -10,7 +10,8 @@
= f.label "Garden name: ", :class => 'control-label'
.controls= f.text_field :name
.control-group
= f.label 'Description', :class => 'control-label'
= f.label 'Description: ', :class => 'control-label'
.controls= f.text_area :description, :rows => 6
.form-actions
= f.submit 'Save', :class => 'btn'

View File

@@ -26,16 +26,16 @@
%div{:class => ['tab-pane', first_garden ? 'active' : ''], :id => "garden#{g.id}"}
- first_garden = false
%div
:markdown
#{g.description}
%div
:markdown
#{g.description}
%h3 What's planted here?
- g.featured_plantings.each do |p|
= render :partial => "plantings/thumbnail", :locals => { :planting => p, :hide_description => true }
%h3 What's planted here?
- g.featured_plantings.each do |p|
= render :partial => "plantings/thumbnail", :locals => { :planting => p, :hide_description => true }
%p
= link_to "More about this garden...", url_for(g)
%p
= link_to "More about this garden...", url_for(g)
%div{:class => 'tab-pane', :id => "garden_new"}
%h3 Create a new garden