mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-03-26 18:56:06 -04:00
fixed problems with tab display on member profile
This commit is contained in:
@@ -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'
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user