diff options
author | ivan <ivan> | 2009-10-30 23:29:18 +0000 |
---|---|---|
committer | ivan <ivan> | 2009-10-30 23:29:18 +0000 |
commit | 2c7d4f461a5d42178e88d04c34a3f8ca256ee285 (patch) | |
tree | 9e25ac1acfb715f2deeda3f76641a96d8461d65f /httemplate/elements | |
parent | 5b76f0c1b944534613058a4b9252d5952406c557 (diff) |
more reporting options for failed billing events, RT#6447
Diffstat (limited to 'httemplate/elements')
-rw-r--r-- | httemplate/elements/select-part_event.html | 6 | ||||
-rw-r--r-- | httemplate/elements/select-payby.html | 4 | ||||
-rw-r--r-- | httemplate/elements/tr-select-part_event.html | 20 |
3 files changed, 29 insertions, 1 deletions
diff --git a/httemplate/elements/select-part_event.html b/httemplate/elements/select-part_event.html new file mode 100644 index 000000000..f510672ba --- /dev/null +++ b/httemplate/elements/select-part_event.html @@ -0,0 +1,6 @@ +<% include( '/elements/select-table.html', + 'table' => 'part_event', + 'name_col' => 'event', + @_, + ) +%> diff --git a/httemplate/elements/select-payby.html b/httemplate/elements/select-payby.html index 3f19cb952..e0fb4f07d 100644 --- a/httemplate/elements/select-payby.html +++ b/httemplate/elements/select-payby.html @@ -8,7 +8,9 @@ % } % foreach my $option ( keys %{ $opt{'paybys'} } ) { -% my $sel = ( ref($value) && $value->{$option} ) || $option eq $value; +% my $sel = $opt{'all_selected'} +% || ( ref($value) && $value->{$option} ) +% || $option eq $value; <OPTION VALUE="<% $option %>" <% $sel ? 'SELECTED' : '' %> diff --git a/httemplate/elements/tr-select-part_event.html b/httemplate/elements/tr-select-part_event.html new file mode 100644 index 000000000..e1d913f2a --- /dev/null +++ b/httemplate/elements/tr-select-part_event.html @@ -0,0 +1,20 @@ +% unless ( $opt{'js_only'} ) { + + <% include('tr-td-label.html', @_ ) %> + + <TD <% $style %>> +% } + + <% include( '/elements/select-part_event.html', %opt ) %> + +% unless ( $opt{'js_only'} ) { + </TD> + </TR> +% } +<%init> + +my( %opt ) = @_; + +my $style = $opt{'cell_style'} ? 'STYLE="'. $opt{'cell_style'}. '"' : ''; + +</%init> |