X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=bin%2Fmozilla%2Flicenses.pl;h=442ff605fd1bf6c86ef20a698d96f4932aa7a9e5;hb=644c68bae03521cec693800af0a19b9ab4e0ed9c;hp=1dfcb4e285ada55ae5ecb6df4af5b2084498a5d6;hpb=4dbb09950c9f5596646537c12d991c99086fe7c1;p=kivitendo-erp.git diff --git a/bin/mozilla/licenses.pl b/bin/mozilla/licenses.pl index 1dfcb4e28..442ff605f 100644 --- a/bin/mozilla/licenses.pl +++ b/bin/mozilla/licenses.pl @@ -44,9 +44,11 @@ sub quot { sub form_header { $lxdebug->enter_sub(); + $form->{jsscript} = 1; $form->header(); - print(qq|
+ print( + qq| + print( + qq| |); @@ -69,11 +73,7 @@ sub form_footer { sub set_std_hidden { $lxdebug->enter_sub(); - $form->{"hidden"} = - ["comment", - "validuntil", - "quantity", - @_]; + $form->{"hidden"} = ["comment", "validuntil", "quantity", @_]; $lxdebug->leave_sub(); } @@ -82,44 +82,46 @@ sub print_part_selection { form_header(); set_std_hidden("business"); - print(qq| + print( + qq|| . - $locale->text('Select from one of the items below') . qq| | +| + . $locale->text('Select from one of the items below') . qq| | ||||||||
---|---|---|---|---|---|---|---|---|---|
| . $locale->text('Part Number') . qq| | -| . $locale->text('Description'). qq| | +| . $locale->text('Description') . qq| | |||||||
- | | . $p{"partnumber"} . qq| | -| . $p{"description"} . qq| | - +| . $p{"partnumber"} . qq| | +| . $p{"description"} . qq| | +|||||
| . - $locale->text('Select from one of the names below') . qq| | +| + . $locale->text('Select from one of the names below') . qq| | ||||||||
---|---|---|---|---|---|---|---|---|---|
| . $locale->text('Customer Number') . qq| | -| . $locale->text('Company Name'). qq| | -| . $locale->text('Street'). qq| | -| . $locale->text('Zipcode'). qq| | -| . $locale->text('City'). qq| | +| . $locale->text('Company Name') . qq| | +| . $locale->text('Street') . qq| | +| . $locale->text('Zipcode') . qq| | +| . $locale->text('City') . qq| | |
- | $c{"customernumber"} | -$c{"name"} | +$c{"customernumber"} | +$c{"name"} | $c{"street"} | $c{"zipcode"} | $c{"city"} | @@ -176,7 +180,8 @@ sub print_customer_selection { $j = ($j + 1) % 2; } - print(qq| + print( + qq|
| . $locale->text("Add License") . qq| | @@ -197,19 +203,19 @@ sub print_license_form {
---|
| . $locale->text('Part Number') . qq| | -{"partnumber"}) . - qq|\"> | +{"partnumber"}) . qq|\"> | |
---|---|---|---|
| . $locale->text('Description') . qq| | -{"description"}) . - qq|\"> | +{"description"}) . qq|\"> | |
| . $locale->text('Company Name') . qq| | |); if ($form->{"all_customer"}) { print(qq||); } else { - print(qq| | {"customer_name"}) . qq|\"> | |); + print( qq|{"customer_name"}) + . qq|\"> | |); } - print(qq|
| . $locale->text('Comment') . qq| | -{"comment"}) . qq|\"> | +{"comment"}) . qq|\"> | |
| . $locale->text('Valid until') . qq| | -{"validuntil"}) . qq|\"> | +{"validuntil"}) . qq|\"> + | |
| . $locale->text('Quantity') . qq| | -{"quantity"}) . qq|\"> | +{"quantity"}) . qq|\"> | |
| . $locale->text('License key') . qq| | -{"licensenumber"}) . qq|\"> | +{"licensenumber"}) . qq|\"> | |
| . $locale->text('Own Product') . qq| | @@ -250,22 +259,31 @@ sub print_license_form { text('Update') . qq|\"> |); + if ($_[0]) { - print(qq| - text('Save') . - qq|\">\n|); + print( + qq| + text('Save') . qq|\">\n|); } - print(qq| + print( + qq|
| . $locale->text("Licenses") . qq| | @@ -445,15 +472,17 @@ sub search {||
---|---|---|
| . $locale->text('Include in Report') . qq| | -| . $locale->text('All') .
- qq| | .
- $locale->text('Expiring in x month(s)') . qq| - | . - $locale->text('Expired licenses') . qq| |
+ |
+ . $locale->text('All')
+ . qq| |
+ . $locale->text('Expiring in x month(s)')
+ . qq| + | + . $locale->text('Expired licenses') . qq| |
| . $locale->text("Licenses") . qq| |
---|