Revision 5cdf5329
Von Hans Peter Schlaepfer vor etwa 6 Jahren hinzugefügt
SL/Controller/FinancialControllingReport.pm | ||
---|---|---|
my $report = SL::ReportGenerator->new(\%::myconfig, $::form);
|
||
$self->{report} = $report;
|
||
|
||
my @columns = qw(customer globalprojectnumber globalproject_type transaction_description ordnumber net_amount delivered_amount delivered_amount_p billed_amount billed_amount_p paid_amount paid_amount_p
|
||
billable_amount billable_amount_p other_amount);
|
||
my @columns = qw(customer globalprojectnumber globalproject_type transaction_description ordnumber net_amount delivered_amount delivered_amount_p billed_amount billed_amount_p paid_amount paid_amount_p billable_amount billable_amount_p other_amount);
|
||
my @sortable = qw(ordnumber transdate customer globalprojectnumber globalproject_type transaction_description );
|
||
$self->{number_columns} = [ qw(net_amount billed_amount billed_amount_p delivered_amount delivered_amount_p paid_amount paid_amount_p other_amount billable_amount billable_amount_p) ];
|
||
|
SL/Controller/RequirementSpecOrder.pm | ||
---|---|---|
my ($self) = @_;
|
||
|
||
$::auth->assert('requirement_spec_edit');
|
||
$::request->{layout}->use_stylesheet("${_}.css") for qw(jquery.contextMenu requirement_spec);
|
||
$::request->{layout}->use_stylesheet("${_}.css") for qw(jquery.contextMenu);
|
||
$::request->{layout}->use_javascript("${_}.js") for qw(jquery.jstree jquery/jquery.contextMenu client_js requirement_spec);
|
||
|
||
return 1;
|
SL/Form.pm | ||
---|---|---|
|
||
# standard css for all
|
||
# this should gradually move to the layouts that need it
|
||
# $layout->use_stylesheet("$_.css") for qw(
|
||
# common main menu list_accounts jquery.autocomplete
|
||
# jquery.multiselect2side
|
||
# ui-lightness/jquery-ui
|
||
# jquery-ui.custom
|
||
# tooltipster themes/tooltipster-light
|
||
# );
|
||
# Use only style.css which is compiled from the less-files in /css/less/
|
||
$layout->use_stylesheet("$_.css") for qw(
|
||
common main menu list_accounts jquery.autocomplete
|
||
jquery.multiselect2side
|
||
ui-lightness/jquery-ui
|
||
jquery-ui.custom
|
||
tooltipster themes/tooltipster-light
|
||
style
|
||
);
|
||
|
||
|
||
$layout->use_javascript("$_.js") for (qw(
|
||
jquery jquery-ui jquery.cookie jquery.checkall jquery.download
|
||
jquery/jquery.form jquery/fixes client_js
|
||
... | ... | |
|
||
# output
|
||
print $self->create_http_response(content_type => 'text/html', charset => 'UTF-8');
|
||
print $doctypes{$params{doctype} || 'transitional'}, $/;
|
||
print $doctypes{$params{doctype} || 'html5'}, $/;
|
||
print <<EOT;
|
||
<html>
|
||
<head>
|
SL/Layout/CssMenu.pm | ||
---|---|---|
use parent qw(SL::Layout::Base);
|
||
|
||
sub use_stylesheet {
|
||
qw(icons16.css),
|
||
qw(style.css),
|
||
}
|
||
|
||
sub pre_content {
|
SL/Layout/Javascript.pm | ||
---|---|---|
qw(
|
||
dhtmlsuite/menu-item.css
|
||
dhtmlsuite/menu-bar.css
|
||
icons16.css
|
||
menu.css
|
||
),
|
||
( map { $_->stylesheets } $_[0]->sub_layouts ),
|
||
$_[0]->sub_layouts_by_name->{actionbar}->stylesheets,
|
SL/Layout/MenuLeft.pm | ||
---|---|---|
use URI;
|
||
|
||
sub stylesheets {
|
||
qw(icons16.css icons24.css menu.css)
|
||
#qw(icons16.css icons24.css menu.css) # no need for that with new design
|
||
}
|
||
|
||
sub javascripts_inline {
|
SL/Layout/None.pm | ||
---|---|---|
sub use_stylesheet {
|
||
my $self = shift;
|
||
qw(
|
||
main.css
|
||
menu.css
|
||
style.css
|
||
),
|
||
$self->SUPER::use_stylesheet(@_);
|
||
}
|
SL/Layout/Split.pm | ||
---|---|---|
my $left = join '', map { $_->pre_content } @{ $_[0]->left || [] };
|
||
my $right = join '', map { $_->pre_content } @{ $_[0]->right || [] };
|
||
|
||
html_tag('div', $left, class => 'layout-split-left')
|
||
.'<div class="layout-split-right">' . $right;
|
||
html_tag('div', $left, id => 'layout-split-left')
|
||
.'<div id="layout-split-right">' . $right;
|
||
}
|
||
|
||
sub post_content {
|
||
my $left = join '', map { $_->post_content } @{ $_[0]->left || [] };
|
||
my $right = join '', map { $_->post_content } @{ $_[0]->right || [] };
|
||
|
||
$right . '</div>'
|
||
$right . '</div><!-- /#layout-split-right -->'
|
||
. html_tag('div', $left, class => 't-layout-left');
|
||
}
|
||
|
SL/Layout/Top.pm | ||
---|---|---|
);
|
||
}
|
||
|
||
sub stylesheets {
|
||
'frame_header/header.css';
|
||
}
|
||
# Only one CSS-File is used for standard design which are compiled from the LESS-Files in /css/less
|
||
#sub stylesheets {
|
||
# 'frame_header/header.css';
|
||
#}
|
||
|
||
sub javascripts {
|
||
'jquery-ui.js',
|
SL/Presenter/Tag.pm | ||
---|---|---|
|
||
_set_id_attribute(\%attributes, $attributes{name}) if $attributes{name};
|
||
$attributes{type} ||= 'button';
|
||
$attributes{tag} ||= 'input';
|
||
|
||
$onclick = 'if (!confirm("'. _J(delete($attributes{confirm})) .'")) return false; ' . $onclick if $attributes{confirm};
|
||
|
||
html_tag('input', undef, %attributes, value => $value, onclick => $onclick);
|
||
if ( $attributes{tag} == 'input' ) {
|
||
html_tag('input', undef, %attributes, value => $value, onclick => $onclick);
|
||
}
|
||
elsif ( $attributes{tag} == 'button' ) {
|
||
html_tag('button', undef, %attributes, value => $value, onclick => $onclick);
|
||
}
|
||
}
|
||
|
||
sub submit_tag {
|
SL/Template/Plugin/L.pm | ||
---|---|---|
my $minrows = delete $attributes{min_rows} || 1;
|
||
my $maxrows = delete $attributes{max_rows};
|
||
my $rows = $::form->numtextrows($value, $cols, $maxrows, $minrows);
|
||
my $class = $attributes{class}; # Do not delete attribute/hash element
|
||
|
||
$attributes{id} ||= _tag_id();
|
||
my $id = $attributes{id};
|
||
|
||
return $self->textarea_tag($name, $value, %attributes, rows => $rows, cols => $cols) if $rows > 1;
|
||
|
||
return '<span>'
|
||
# PENDENT: Hier sollte noch eine Klasse an kivi.switch_areainput_to_textarea uebergeben werden
|
||
# PENDENT: ID gugusli aus button entfernen, wird nicht angezeigt im browser (war nur Test)
|
||
return '<span class="switch-form-element">'
|
||
. $self->input_tag($name, $value, %attributes, size => $cols)
|
||
. "<img src=\"image/edit-entry.png\" onclick=\"kivi.switch_areainput_to_textarea('${id}')\" style=\"margin-left: 2px;\">"
|
||
. "<button class=\"wi-tiny icon\"><img src=\"image/pencil.png\" onclick=\"kivi.switch_areainput_to_textarea('${id}','".$class."')\"></button>"
|
||
. '</span>';
|
||
}
|
||
|
Auch abrufbar als: Unified diff
Neues kivitendo Design Aenderungen in SL/..