From 1f4dcd2f93299018613a0774f536708c0544c9ef Mon Sep 17 00:00:00 2001 From: Petteri Räty Date: Wed, 28 Jul 2010 20:00:41 +0200 Subject: Add support for labels in field-list Extend the field-list tag so that input tags have corresponding label tags. --- app/views/taglibs/application.dryml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/app/views/taglibs/application.dryml b/app/views/taglibs/application.dryml index 198ec95..4575ca3 100644 --- a/app/views/taglibs/application.dryml +++ b/app/views/taglibs/application.dryml @@ -7,3 +7,17 @@ Gentoo Council + + + + + <%= + if scope.in_form && can_edit? + label_tag(param_name_for_this,this_field_name) + else + this_field_name + end + %> + + + -- cgit v1.2.3-65-gdbad