aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetteri Räty <betelgeuse@gentoo.org>2010-07-28 20:00:41 +0200
committerHans de Graaff <hans@degraaff.org>2010-07-28 20:00:41 +0200
commit1f4dcd2f93299018613a0774f536708c0544c9ef (patch)
treeabeaf51c4c6960df52133266d26bf87adf8ffe9a
parentAgenda implemented and tested (diff)
downloadcouncil-webapp-1f4dcd2f93299018613a0774f536708c0544c9ef.tar.gz
council-webapp-1f4dcd2f93299018613a0774f536708c0544c9ef.tar.bz2
council-webapp-1f4dcd2f93299018613a0774f536708c0544c9ef.zip
Add support for labels in field-list
Extend the field-list tag so that input tags have corresponding label tags.
-rw-r--r--app/views/taglibs/application.dryml14
1 files changed, 14 insertions, 0 deletions
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 @@
<set-theme name="clean"/>
<def tag="app-name">Gentoo Council</def>
+
+<extend tag="field-list">
+ <old-field-list merge>
+ <label: param>
+ <%=
+ if scope.in_form && can_edit?
+ label_tag(param_name_for_this,this_field_name)
+ else
+ this_field_name
+ end
+ %>
+ </label:>
+ </old-field-list>
+</extend>