Hello!

I wrote a tiny patch, its display the title of the table in webform display. Please check in, and if its usefull patch to code.

Thanks, Bye!

Comments

attiks’s picture

Status: Patch (to be ported) » Needs work

I had a quick look, needs some work

+++ webform_table_element.module        2011-10-24 01:45:06.735994537 +0200
@@ -162,11 +162,13 @@ function _webform_theme_table_element()
+  if ($element['#title_display']!='none') ¶

space add the end

+++ webform_table_element.module        2011-10-24 01:45:06.735994537 +0200
@@ -162,11 +162,13 @@ function _webform_theme_table_element()
+    $output .= '<h4 class="webform-component-table_title webform-component-table_title_'.$element['#webform_component']['cid'].'">'.$element['#title'].':</h4>';

not feeling good with the use of h4

+++ webform_table_element.module        2011-10-24 01:45:06.735994537 +0200
@@ -162,11 +162,13 @@ function _webform_theme_table_element()
+  foreach ($element['#row_titles'] as $title)

{ is missing

attiks’s picture

Assigned: Unassigned » jelle_s
lazly’s picture

StatusFileSize
new812 bytes

I repair this problems, but i don't know what html tag is better for this than h4, so i don't touch that.

jelle_s’s picture

Status: Needs work » Fixed

Used the HTML label tag as used by all other form elements. Committed to the latest dev

attiks’s picture

Assigned: jelle_s » Unassigned

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.