Skip to content

Instantly share code, notes, and snippets.

@vsalbaba
Created February 15, 2009 09:56
Show Gist options
  • Save vsalbaba/64670 to your computer and use it in GitHub Desktop.
Save vsalbaba/64670 to your computer and use it in GitHub Desktop.
# show.html.haml, pouziva haml
%h1= t("configurations.show.title")
.info
#address
%label= School.human_attribute_name("address")
= @school.address
#name
%label= School.human_attribute_name("name")
= @school.name
#izo
%label= School.human_attribute_name("izo")
= @school.izo
#redizo
%label= School.human_attribute_name("redizo")
= @school.redizo
#web
%label= School.human_attribute_name("web")
= link_to @school.web, @school.web
#preferences
%label= t("school.school_year.begining")
= in_place_editor_field(:school, 'school_year_begins_at', {},{:url =>{:controller => "admin/configurations", :action => :set_school_school_year_begins_at}})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment