aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPiBa-NL <pba_2k3@yahoo.com>2015-11-01 19:12:35 +0100
committerPiBa-NL <pba_2k3@yahoo.com>2015-11-01 19:12:35 +0100
commit326b6876a92ea6034d7b8e6e4920b2d11b1a8981 (patch)
tree49470202a27f2a50166d466fbb8c69a392c40b2a
parentc79cec7933f3a3906ef8903ca5ddcf28be30d1f2 (diff)
downloadpfsense-packages-326b6876a92ea6034d7b8e6e4920b2d11b1a8981.tar.gz
pfsense-packages-326b6876a92ea6034d7b8e6e4920b2d11b1a8981.tar.bz2
pfsense-packages-326b6876a92ea6034d7b8e6e4920b2d11b1a8981.zip
haproxy-devel, cleaner layout for new table detail records created by javascript
-rw-r--r--config/haproxy-devel/pkg/haproxy_htmllist.inc10
1 files changed, 8 insertions, 2 deletions
diff --git a/config/haproxy-devel/pkg/haproxy_htmllist.inc b/config/haproxy-devel/pkg/haproxy_htmllist.inc
index 4e8ce428..7eaad023 100644
--- a/config/haproxy-devel/pkg/haproxy_htmllist.inc
+++ b/config/haproxy-devel/pkg/haproxy_htmllist.inc
@@ -63,7 +63,7 @@ class HaproxyHtmlList
phparray_to_javascriptarray($table_def, "tabledefinition_".$this->tablename,Array('/*','/*/*'));
phparray_to_javascriptarray($this->fields, "fields_".$this->tablename,Array('/*','/*/name','/*/type','/*/text','/*/size','/*/items','/*/items/*','/*/items/*/*','/*/items/*/*/name'));
if (count($this->fields_details) != 0) {
- phparray_to_javascriptarray($this->fields_details,"fields_details_".$this->tablename,Array('/*','/*/name','/*/columnheader','/*/type','/*/text','/*/size','/*/items','/*/items/*','/*/items/*/*','/*/items/*/*/name','/*/items/*/*/name'));
+ phparray_to_javascriptarray($this->fields_details,"fields_details_".$this->tablename,Array('/*','/*/name','/*/columnheader','/*/description','/*/type','/*/text','/*/size','/*/items','/*/items/*','/*/items/*/*','/*/items/*/*/name','/*/items/*/*/name'));
}
}
@@ -476,13 +476,19 @@ function haproxy_htmllist_js(){
tr.appendChild(td);
td = d.createElement("td");
table = d.createElement("table");
+ table.setAttribute("cellspacing","0");
for (var i in items) {
field = items[i];
fieldhtml = createFieldHtml(tableId, field, totalrows);
subtr = d.createElement("tr");
subtr.setAttribute("id","tr_edititemdetails_" + totalrows + "_" + field['name']);
subtd = d.createElement("td");
- subtd.innerHTML = field['columnheader'] + ": " + fieldhtml;
+ subtd.setAttribute("class","vncell");
+ subtd.innerHTML = field['columnheader'] + ": ";
+ subtr.appendChild(subtd);
+ subtd = d.createElement("td");
+ subtd.setAttribute("class","vncell");
+ subtd.innerHTML = field['description'] + "<br/>" + fieldhtml;
subtr.appendChild(subtd);
table.appendChild(subtr);
}