diff options
| author | ivan <ivan> | 2006-06-24 16:41:45 +0000 |
|---|---|---|
| committer | ivan <ivan> | 2006-06-24 16:41:45 +0000 |
| commit | 9608be1f5c73517fc348f1ab458892b34ed7facb (patch) | |
| tree | 4b1e446078ba4bcfadcc826b83a0cf4a016ed985 /httemplate/elements | |
| parent | 8af88c7428552043516f529007645ab489b32063 (diff) | |
Add the ability to link customer service definition fields to inventory
classes, with an "automatic/manual" flag. Add the ability for the web
interface to maintain these links. Start prettying up the service def.
edit in preparation for Bigger Changes.
Diffstat (limited to 'httemplate/elements')
| -rw-r--r-- | httemplate/elements/select-table.html | 16 | ||||
| -rw-r--r-- | httemplate/elements/table-grid.html | 8 |
2 files changed, 17 insertions, 7 deletions
diff --git a/httemplate/elements/select-table.html b/httemplate/elements/select-table.html index 6c8089b31..36eb4e211 100644 --- a/httemplate/elements/select-table.html +++ b/httemplate/elements/select-table.html @@ -8,11 +8,15 @@ # 'value' => 'current_value', # ##opt - # 'empty_label' => '', #better specify it though, the default might change - # 'hashref' => {}, - # 'extra_sql' => '', - # 'records' => \@records, #instead of hashref - # 'pre_options' => [ 'value' => 'option' ], #before normal options + # 'empty_label' => '', #better specify it though, the default might change + # 'hashref' => {}, + # 'extra_sql' => '', + # 'records' => \@records, #instead of hashref + # 'pre_options' => [ 'value' => 'option' ], #before normal options + # 'element_name' => '', #HTML element name, defaults to the name of + # # the primary key column + # 'element_etc' => '', #additional attributes (i.e. "DISABLED") for the + # #<SELECT> element my( %opt ) = @_; @@ -37,7 +41,7 @@ %> -<SELECT NAME="<%= $key %>"> +<SELECT NAME="<%= $opt{'element_name'} || $key %>" <%= $opt{'element_etc'} %>> <% while ( @pre_options ) { %> <OPTION VALUE="<%= shift(@pre_options) %>"><%= shift(@pre_options) %> diff --git a/httemplate/elements/table-grid.html b/httemplate/elements/table-grid.html index 80611f511..17eafdf1a 100644 --- a/httemplate/elements/table-grid.html +++ b/httemplate/elements/table-grid.html @@ -1,8 +1,14 @@ +<% + my %opt = @_; + $opt{cellspacing} ||= 0; + $opt{cellpadding} ||= 0; + +%> <STYLE TYPE="text/css"> .grid table { border: solid; empty-cells: show } .grid TH { padding-left: 3px; padding-right: 3px; border: 1px solid #dddddd; border-bottom: dashed 1px black; border-right: none } .grid TD { padding-left: 3px; padding-right: 3px; empty-cells: show; border: 1px solid #cccccc; border-bottom: none; border-right: none } </STYLE> -<TABLE CLASS="grid" CELLSPACING=0 CELLPADDING=0 BORDER=1 BORDERCOLOR="#000000" STYLE="border: solid 1px black; empty-cells: show"> +<TABLE CLASS="grid" CELLSPACING=<%= $opt{cellspacing} %> CELLPADDING=<%= $opt{cellpadding} %> BORDER=1 BORDERCOLOR="#000000" STYLE="border: solid 1px black; empty-cells: show"> |
