$self->add_sub_layouts([
SL::Controller::Layout::Top->new,
SL::Controller::Layout::MenuLeft->new,
+ SL::Controller::Layout::None->new,
]);
$self;
use List::Util qw(max);
use URI;
+sub new {
+ my ($class, @slurp) = @_;
+
+ my $self = $class->SUPER::new(@slurp);
+
+ $self->add_sub_layouts([
+ SL::Controller::Layout::None->new,
+ ]);
+
+ $self;
+}
+
sub pre_content {
&display
}
use strict;
use parent qw(SL::Controller::Layout::Base);
+sub javascripts_inline {
+ $::form->parse_html_template('generic/javascript_setup')
+}
+
1;
use URI;
+sub new {
+ my ($class, @slurp) = @_;
+
+ my $self = $class->SUPER::new(@slurp);
+
+ $self->add_sub_layouts([
+ SL::Controller::Layout::None->new,
+ ]);
+
+ $self;
+}
+
sub pre_content {
&render;
}
my ($class, @slurp) = @_;
my $self = $class->SUPER::new(@slurp);
- $self->add_sub_layouts(SL::Controller::Layout::Top->new);
+ $self->add_sub_layouts(
+ SL::Controller::Layout::Top->new
+ SL::Controller::Layout::None->new,
+ );
$self;
}
print $::request->{layout}->post_content;
if (my @inline_scripts = $::request->{layout}->javascripts_inline) {
- print "<script type='text/javascript'>$_</script>\n" for @inline_scripts;
+ print "<script type='text/javascript'>@inline_scripts</script>\n";
}
print <<EOL
'-default' => $form->{"globalproject_id"} ));
$form->header;
- my $onload = qq|;setupDateFormat('|. $myconfig{dateformat} .qq|', '|. $locale->text("Falsches Datumsformat!") .qq|')|;
- $onload .= qq|;setupPoints('|. $myconfig{numberformat} .qq|', '|. $locale->text("wrongformat") .qq|')|;
print qq|
<body onLoad="$onload">
qq|<script type="text/javascript" src="js/follow_up.js"></script>|;
$onload = qq|focus()|;
- $onload .= qq|;setupPoints('|. $myconfig{numberformat} .qq|', '|. $locale->text("wrongformat") .qq|')|;
# $amount = $locale->text('Amount');
# $project = $locale->text('Project');
$::form->{title} = $::locale->text('List Transactions') . " - " . $::locale->text('Account') . " $::form->{accno}";
my $onload = qq|focus()|;
- $onload .= qq|;setupDateFormat('$::myconfig{dateformat}', '|. $::locale->text("Falsches Datumsformat!") .qq|')|;
- $onload .= qq|;setupPoints('$::myconfig{numberformat}', '|. $::locale->text("wrongformat") .qq|')|;
$::form->header;
print $::form->parse_html_template('ca/list', {
# Standard Konto für Umlaufvermögen
my $accno_arap = IS->get_standard_accno_current_assets(\%myconfig, \%$form);
- # Entsprechend präventiv die Auswahlliste für Kontonummer
+ # Entsprechend präventiv die Auswahlliste für Kontonummer
# auch mit value= zusammenbauen (s.a. oben bugfix 1771)
# Wichtig: Auch das Template anpassen, damit hidden input korrekt die "
# escaped.
$form->{defaultcurrency} = $form->{currency} = $form->{oldcurrency} =
$curr[0];
- # Entsprechend präventiv die Auswahlliste für Währungen
+ # Entsprechend präventiv die Auswahlliste für Währungen
# auch mit value= zusammenbauen (s.a. oben bugfix 1771)
$form->{selectcurrency} = "";
map { $form->{selectcurrency} .= "<option value=\"$_\">$_</option>\n" } @curr;
$arap = lc $form->{ARAP};
$onload = qq|focus()|;
- $onload .= qq|;setupDateFormat('|. $myconfig{dateformat} .qq|', '|. $locale->text("Falsches Datumsformat!") .qq|')|;
- $onload .= qq|;setupPoints('|. $myconfig{numberformat} .qq|', '|. $locale->text("wrongformat") .qq|')|;
print $::form->parse_html_template('cp/form_header', {
is_customer => $form->{vc} eq 'customer',
$form->{customer_id} = $form->{AR}[0]{customer_id};
}
- # search by invoicenumber,
- if ($form->{invnumber}) {
+ # search by invoicenumber,
+ if ($form->{invnumber}) {
$form->{open} ='Y'; # only open invoices
if ($form->{ARAP} eq 'AR'){
# ar_transactions automatically searches by $form->{customer_id} or else
$form->header();
$form->{onload} = qq|focus()|
- . qq|;setupDateFormat('|. $myconfig{dateformat} .qq|', '|. $locale->text("Falsches Datumsformat!") .qq|')|
- . qq|;setupPoints('|. $myconfig{numberformat} .qq|', '|. $locale->text("wrongformat") .qq|')|;
print $form->parse_html_template("dunning/search");
$::form->{ALL_EMPLOYEES} = SL::DB::Manager::Employee->get_all(query => [ deleted => 0 ]);
my $onload = "focus()"
- . qq|;setupDateFormat('|. $::myconfig{dateformat} . qq|', '| . $::locale->text("Falsches Datumsformat!") . qq|')|
- . qq|;setupPoints('|. $::myconfig{numberformat} . qq|', '| . $::locale->text("wrongformat") . qq|')|;
$::form->header;
print $::form->parse_html_template('gl/search', {
<!--
$(document).ready(function(){
focus();
- setupDateFormat('[% dateformat | html %]','[% 'Falsches Datumsformat!' | $T8 %]');
- setupPoints('[% numberformat | html %]','[% 'wrongformat' | $T8 %]');
})
//-->
</script>
<!--
$(document).ready(function(){
$('customer').focus();
- setupDateFormat('[% dateformat | html %]','[% 'Falsches Datumsformat!' | $T8 %]');
- setupPoints('[% numberformat | html %]','[% 'wrongformat' | $T8 %]');
})
//-->
</script>
<!--
function on_load() {
[% IF onload %][% onload %];[% END %]
- setupDateFormat('[% myconfig_dateformat %]', '[% 'Falsches Datumsformat!' | $T8 %]');
- setupPoints('[% myconfig_numberformat %]', '[% 'wrongformat' | $T8 %]');
}
-->
</script>
<!--
function setup_controls() {
fokus();
- setupDateFormat('[% myconfig_dateformat %]', '[% 'Wrong date format!' | $T8 %]');
- setupPoints('[% myconfig_numberformat %]', '[% 'wrongformat' | $T8 %]');
}
-->
</script>
--- /dev/null
+[%- USE T8 %]
+$(function() {
+ setupPoints('[% myconfig.numberformat %]', '[% 'wrongformat' | $T8 %]');
+ setupDateFormat('[% myconfig.dateformat %]', '[% 'Falsches Datumsformat!' | $T8 %]');
+})
[% ELSE %]
focus();
[% END %]
- setupDateFormat('[% dateformat %]', '[% 'Falsches Datumsformat!' | $T8 %]');
- setupPoints('[% numberformat %]', '[% 'wrongformat' | $T8 %]');
});
function set_duedate() {
$.ajax({
[% ELSE %]
focus();
[% END %]
- setupDateFormat('[% dateformat %]', '[% 'Falsches Datumsformat!' | $T8 %]');
- setupPoints('[% numberformat %]', '[% 'wrongformat' | $T8 %]');
});
function set_duedate() {
$.ajax({
[% END %]
</form>
-
-
- <script type="text/javascript">
- <!--
- $('document').ready(function(){
- setupDateFormat('[% dateformat %]', '[% 'Falsches Datumsformat!' | $T8 %]');
- setupPoints('[% numberformat %]', '[% 'wrongformat' | $T8 %]');
- });
- //-->
- </script>
<th align="right">[% 'Item mode' | $T8 %]</th>
<td colspan="3" align=left><input name="l_parts" class=checkbox type=checkbox value=Y> ([%'Show items from invoices individually' | $T8 %]) </td>
</tr>
- <tr>
+ <tr>
<th align="right">
[% 'Total sum' | $T8 %]
</th>
<td align=left><input name="l_lastcost_total" class=checkbox type=checkbox value=Y checked>[% 'Purchase price total' | $T8 %]</td>
<td align=left><input name="l_marge_total" class=checkbox type=checkbox value=Y checked>[% 'Margetotal' | $T8 %]</td>
<td colspan="4"> ([% 'Single values in item mode, cumulated values in invoice mode' | $T8 %])
-
+
</tr>
<tr>
<td align=left><input name="l_sellprice" class=checkbox type=checkbox value=Y checked>[% 'Sales price' | $T8 %]</td>
</th>
</tr>
[% CUSTOM_VARIABLES_INCLUSION_CODE_CT %]
-
+
<tr><td colspan="7"> </td></tr>
<tr>
<th colspan="4" align="left">
<!--
$(document).ready(function(){
$('customer').focus();
- setupDateFormat('[% dateformat | html %]','[% 'Falsches Datumsformat!' | $T8 %]');
- setupPoints('[% numberformat | html %]','[% 'wrongformat' | $T8 %]');
})
//-->
</script>