diff options
| author | Ivan Kohler <ivan@freeside.biz> | 2013-08-11 16:18:24 -0700 |
|---|---|---|
| committer | Ivan Kohler <ivan@freeside.biz> | 2013-08-11 16:18:24 -0700 |
| commit | 35e5b12fb55f229edd16bed66e21c5806b8d3b7e (patch) | |
| tree | 4c36e5b3821e92cfe773a4d57a82d9172ecf62aa /httemplate/elements/tr-input-pkg-quantity.html | |
| parent | 9005d0ad058eee59bacafe26217ed4fda2da1800 (diff) | |
| parent | 98ea745e4b55a38ad8b5ba3749c56327d641d65d (diff) | |
Merge branch 'master' of git.freeside.biz:/home/git/freeside
Diffstat (limited to 'httemplate/elements/tr-input-pkg-quantity.html')
| -rw-r--r-- | httemplate/elements/tr-input-pkg-quantity.html | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/httemplate/elements/tr-input-pkg-quantity.html b/httemplate/elements/tr-input-pkg-quantity.html new file mode 100644 index 000000000..7ade57399 --- /dev/null +++ b/httemplate/elements/tr-input-pkg-quantity.html @@ -0,0 +1,15 @@ +% if ( FS::Conf->new->exists('invoice-unitprice') or $curr_value > 1 ) { + <TR> + <TH ALIGN="right"><% mt('Quantity') |h %> + </TH> + <TD> + <INPUT TYPE="text" NAME="quantity" SIZE=4 VALUE="<% $curr_value |h %>"> + </TD> + </TR> +% } else { + <INPUT TYPE="hidden" NAME="quantity" VALUE="1"> +% } +<%init> +my %opt = @_; +my $curr_value = $cgi->param('quantity') || $opt{'curr_value'} || 1; +</%init> |
