<% if mode == :view %> <%=link_to_function(image_tag("/tr8n/images/table_edit.png"), "switchSectionMode('#{section}', 'edit')") %> <% else %> <%=link_to_function(image_tag("/tr8n/images/disk.png"), "submitSection('#{section}')")%> <%=link_to_function(image_tag("/tr8n/images/cancel.png"), "switchSectionMode('#{section}', 'view')")%> <% end %>
<%=trla(label, description) %>