Revision 4b38f376
Von Hans Peter Schlaepfer vor mehr als 5 Jahren hinzugefügt
templates/webpages/project/_basic_data.html | ||
---|---|---|
1 |
[%- USE T8 %] |
|
2 |
[%- USE L %] |
|
3 |
[%- USE P %] |
|
4 |
[%- USE HTML %] |
|
5 |
[%- USE LxERP %] |
|
6 |
<table> |
|
7 |
<tr> |
|
8 |
<th align="right">[% 'Number' | $T8 %]</th> |
|
9 |
<td>[% L.input_tag("project.projectnumber", SELF.project.projectnumber, size=60, style='width: 300px', class="initial_focus") %]</td> |
|
10 |
</tr> |
|
1 |
[% USE T8 %] |
|
2 |
[% USE L %] |
|
3 |
[% USE P %] |
|
4 |
[% USE HTML %] |
|
5 |
[% USE LxERP %] |
|
11 | 6 |
|
12 |
<tr> |
|
13 |
<th align="right">[% 'Description' | $T8 %]</th> |
|
14 |
<td> |
|
15 |
[%- L.areainput_tag("project.description", SELF.project.description, size=60, style="width: 300px", wrap="soft") %] |
|
16 |
</td> |
|
17 |
</tr> |
|
7 |
<div class="wrapper"> |
|
18 | 8 |
|
19 |
<tr> |
|
20 |
<th align="right">[% 'Project Type' | $T8 %]</th> |
|
21 |
<td>[% L.select_tag('project.project_type_id', SELF.project_types, default=SELF.project.project_type_id, title_key='description', style='width: 300px') %]</td> |
|
22 |
</tr> |
|
23 |
|
|
24 |
<tr> |
|
25 |
<th align="right">[% 'Project Status' | $T8 %]</th> |
|
26 |
<td>[% L.select_tag('project.project_status_id', SELF.project_statuses, default=SELF.project.project_status_id, title_key='description', style='width: 300px') %]</td> |
|
27 |
</tr> |
|
28 |
|
|
29 |
<tr> |
|
30 |
<th align="right">[% 'Customer' | $T8 %]</th> |
|
31 |
<td>[% P.customer_vendor.picker('project.customer_id', SELF.project.customer_id, type='customer', fat_set_item=1, style='width: 300px', default=SELF.project.customer_id)%] [%- IF SELF.project.customer_id %] |
|
32 |
[%- END %] |
|
33 |
</td> |
|
34 |
</tr> |
|
35 |
|
|
36 |
<tr> |
|
37 |
<th align="right">[% 'Valid' | $T8 %]</th> |
|
38 |
<td>[% L.select_tag('project.valid', [ [ 1, LxERP.t8('Valid') ], [ 0, LxERP.t8('Invalid') ] ], default=SELF.project.valid, style='width: 300px') %]</td> |
|
39 |
</tr> |
|
40 |
|
|
41 |
[%- IF SELF.project.id %] |
|
42 |
<tr> |
|
43 |
<th align="right">[% 'Active' | $T8 %]</th> |
|
44 |
<td>[% L.select_tag('project.active', [ [ 1, LxERP.t8('Active') ], [ 0, LxERP.t8('Inactive') ] ], default=SELF.project.active, style='width: 300px') %]</td> |
|
45 |
</tr> |
|
46 |
[%- END %] |
|
9 |
<table class="tbl-horizontal"> |
|
10 |
<caption>[% 'Project' | $T8 %][% IF SELF.project.description %] <i>[% SELF.project.description %]</i>[% END %] </caption> |
|
11 |
<colgroup> <col class="wi-small"><col class="wi-wide"> </colgroup> |
|
12 |
<tbody> |
|
13 |
<tr> |
|
14 |
<th>[% 'Number' | $T8 %]</th> |
|
15 |
<td>[% L.input_tag("project.projectnumber", SELF.project.projectnumber, class="wi-wide initial_focus") %]</td> |
|
16 |
</tr> |
|
17 |
<tr> |
|
18 |
<th>[% 'Description' | $T8 %]</th> |
|
19 |
<td>[% L.areainput_tag("project.description", SELF.project.description, size=37, class='wi-wide', wrap="soft") %] </td> |
|
20 |
</tr> |
|
21 |
<tr> |
|
22 |
<th>[% 'Project Type' | $T8 %]</th> |
|
23 |
<td>[% L.select_tag('project.project_type_id', SELF.project_types, default=SELF.project.project_type_id, title_key='description', class='wi-wide') %]</td> |
|
24 |
</tr> |
|
25 |
<tr> |
|
26 |
<th>[% 'Project Status' | $T8 %]</th> |
|
27 |
<td>[% L.select_tag('project.project_status_id', SELF.project_statuses, default=SELF.project.project_status_id, title_key='description', class='wi-wide') %]</td> |
|
28 |
</tr> |
|
29 |
<tr> |
|
30 |
<th>[% 'Customer' | $T8 %]</th> |
|
31 |
<td> |
|
32 |
[% P.customer_vendor.picker('project.customer_id', SELF.project.customer_id, type='customer', fat_set_item=1, class='wi-wide', default=SELF.project.customer_id)%] |
|
33 |
[% #PENDENT: Was bedeutet das? %] [% IF SELF.project.customer_id %][% END %] |
|
34 |
</td> |
|
35 |
</tr> |
|
36 |
<tr> |
|
37 |
<th>[% 'Valid' | $T8 %]</th> |
|
38 |
<td>[% L.select_tag('project.valid', [ [ 1, LxERP.t8('Valid') ], [ 0, LxERP.t8('Invalid') ] ], default=SELF.project.valid, class='wi-wide') %]</td> |
|
39 |
</tr> |
|
40 |
[% IF SELF.project.id %] |
|
41 |
<tr> |
|
42 |
<th>[% 'Active' | $T8 %]</th> |
|
43 |
<td>[% L.select_tag('project.active', [ [ 1, LxERP.t8('Active') ], [ 0, LxERP.t8('Inactive') ] ], default=SELF.project.active, class='wi-wide') %]</td> |
|
44 |
</tr> |
|
45 |
[% END %] |
|
46 |
</tbody> |
|
47 | 47 |
</table> |
48 |
|
|
49 |
</div><!-- /.wrapper --> |
templates/webpages/project/_cvars.html | ||
---|---|---|
1 |
[%- USE HTML %]
|
|
2 |
<table> |
|
3 |
[%- FOREACH var = CUSTOM_VARIABLES %]
|
|
1 |
[% USE HTML %] |
|
2 |
<table class="tbl-horizontal">
|
|
3 |
[% FOREACH var = CUSTOM_VARIABLES %] |
|
4 | 4 |
<tr> |
5 |
<td align="right" valign="top">[% HTML.escape(var.description) %]</td>
|
|
6 |
<td valign="top">[% var.HTML_CODE %]</td>
|
|
5 |
<th>[% HTML.escape(var.description) %]</th>
|
|
6 |
<td>[% var.HTML_CODE %]</td> |
|
7 | 7 |
</tr> |
8 |
[%- END %]
|
|
8 |
[% END %] |
|
9 | 9 |
</table> |
templates/webpages/project/_filter.html | ||
---|---|---|
1 |
[%- USE T8 %]
|
|
2 |
[%- USE HTML %]
|
|
3 |
[%- USE L %]
|
|
4 |
[%- USE LxERP %]
|
|
1 |
[% USE T8 %] |
|
2 |
[% USE HTML %] |
|
3 |
[% USE L %] |
|
4 |
[% USE LxERP %] |
|
5 | 5 |
|
6 | 6 |
[% L.hidden_tag("_include_cvars_from_form", 1) %] |
7 | 7 |
|
8 |
<table id="filter_table"> |
|
9 |
<tr> |
|
10 |
<th align="right">[% 'Number' | $T8 %]</th> |
|
11 |
<td>[% L.input_tag('filter.projectnumber:substr::ilike', filter.projectnumber_substr__ilike, size=60) %]</td> |
|
12 |
</tr> |
|
13 |
|
|
14 |
<tr> |
|
15 |
<th align="right">[% 'Description' | $T8 %]</th> |
|
16 |
<td>[% L.input_tag('filter.description:substr::ilike', filter.description_substr__ilike, size=60, class='initial_focus') %]</td> |
|
17 |
</tr> |
|
18 |
|
|
19 |
<tr> |
|
20 |
<th align="right">[% 'Customer' | $T8 %]</th> |
|
21 |
<td>[% L.input_tag('filter.customer.name:substr::ilike', filter.customer.name_substr__ilike, size=60) %]</td> |
|
22 |
</tr> |
|
23 |
|
|
24 |
<tr> |
|
25 |
<th align="right">[% 'Project Type' | $T8 %]</th> |
|
26 |
<td>[% L.select_tag('filter.project_type_id', SELF.project_types, default=filter.project_type_id, title_key='description', with_empty=1, style="width: 200px") %]</td> |
|
27 |
</tr> |
|
28 |
|
|
29 |
<tr> |
|
30 |
<th align="right">[% 'Project Status' | $T8 %]</th> |
|
31 |
<td>[% L.select_tag('filter.project_status_id', SELF.project_statuses, default=filter.project_status_id, title_key='description', with_empty=1, style="width: 200px") %]</td> |
|
32 |
</tr> |
|
8 |
[% BLOCK filter_toggle_panel %] |
|
9 |
<table id="filter_table" class="tbl-horizontal"> |
|
10 |
<caption>[% 'Project' | $T8 %]</caption> |
|
11 |
<tbody> |
|
12 |
<tr> |
|
13 |
<th>[% 'Number' | $T8 %]</th> |
|
14 |
<td>[% L.input_tag('filter.projectnumber:substr::ilike', filter.projectnumber_substr__ilike, class='wi-normal') %]</td> |
|
15 |
</tr> |
|
16 |
<tr> |
|
17 |
<th>[% 'Description' | $T8 %]</th> |
|
18 |
<td>[% L.input_tag('filter.description:substr::ilike', filter.description_substr__ilike, class='wi-normal initial_focus') %]</td> |
|
19 |
</tr> |
|
20 |
<tr> |
|
21 |
<th>[% 'Customer' | $T8 %]</th> |
|
22 |
<td>[% L.input_tag('filter.customer.name:substr::ilike', filter.customer.name_substr__ilike, class='wi-normal') %]</td> |
|
23 |
</tr> |
|
24 |
<tr> |
|
25 |
<th>[% 'Project Type' | $T8 %]</th> |
|
26 |
<td>[% L.select_tag('filter.project_type_id', SELF.project_types, default=filter.project_type_id, title_key='description', with_empty=1, class='wi-normal') %]</td> |
|
27 |
</tr> |
|
28 |
<tr> |
|
29 |
<th>[% 'Project Status' | $T8 %]</th> |
|
30 |
<td>[% L.select_tag('filter.project_status_id', SELF.project_statuses, default=filter.project_status_id, title_key='description', with_empty=1, class='wi-normal') %]</td> |
|
31 |
</tr> |
|
33 | 32 |
|
34 | 33 |
[% FOREACH cvar_cfg = SELF.cvar_configs %] |
35 | 34 |
[%- IF cvar_cfg.searchable %] |
... | ... | |
40 | 39 |
[% END %] |
41 | 40 |
[% END %] |
42 | 41 |
|
43 |
<tr> |
|
44 |
<th>[% 'Include in Report' | $T8 %]</th> |
|
45 |
<td> |
|
46 |
<table> |
|
42 |
</tbody> |
|
43 |
</table> |
|
44 |
|
|
45 |
<table class="tbl-horizontal"> |
|
46 |
<caption>[% 'Include in Report' | $T8 %]</caption> |
|
47 |
<tbody> |
|
47 | 48 |
<tr> |
48 |
<td>[% L.select_tag('filter.active', [ [ 'active', LxERP.t8('Active') ], [ 'inactive', LxERP.t8('Inactive') ], [ 'both', LxERP.t8('Both') ] ], default=filter.active, style="width: 200px") %]</td> |
|
49 |
<td>[% L.select_tag('filter.active', [ [ 'active', LxERP.t8('Active') ], [ 'inactive', LxERP.t8('Inactive') ], [ 'both', LxERP.t8('Both') ] ], default=filter.active, style="width: 200px") %]</td>
|
|
49 | 50 |
</tr> |
50 |
|
|
51 | 51 |
<tr> |
52 |
<td>[% L.select_tag('filter.valid', [ [ 'valid', LxERP.t8('Valid') ], [ 'invalid', LxERP.t8('Invalid') ], [ 'both', LxERP.t8('Both') ] ], default=filter.valid, style="width: 200px") %]</td> |
|
52 |
<td>[% L.select_tag('filter.valid', [ [ 'valid', LxERP.t8('Valid') ], [ 'invalid', LxERP.t8('Invalid') ], [ 'both', LxERP.t8('Both') ] ], default=filter.valid, style="width: 200px") %]</td>
|
|
53 | 53 |
</tr> |
54 |
|
|
55 | 54 |
<tr> |
56 |
<td>[% L.select_tag('filter.status', [ [ 'all', LxERP.t8('All') ], [ 'orphaned', LxERP.t8('Orphaned') ] ], default=filter.status, style="width: 200px") %]</td> |
|
55 |
<td>[% L.select_tag('filter.status', [ [ 'all', LxERP.t8('All') ], [ 'orphaned', LxERP.t8('Orphaned') ] ], default=filter.status, style="width: 200px") %]</td>
|
|
57 | 56 |
</tr> |
58 | 57 |
|
59 | 58 |
[% FOREACH cvar_cfg = SELF.includeable_cvar_configs %] |
... | ... | |
65 | 64 |
</tr> |
66 | 65 |
[% END %] |
67 | 66 |
|
68 |
</table> |
|
69 |
</td> |
|
70 |
</tr> |
|
67 |
</tbody> |
|
71 | 68 |
</table> |
72 | 69 |
|
73 |
[% L.button_tag('$("#search_form").resetForm()', LxERP.t8('Reset')) %] |
|
70 |
<div class="buttons"> |
|
71 |
[% L.button_tag('$("#search_form").resetForm()', LxERP.t8('Reset'), class="neutral") %] |
|
72 |
</div> |
|
73 |
[% END # /BLOCK filter_toggle_panel %] |
|
74 |
|
|
75 |
[% INCLUDE 'common/toggle_panel.html' %] |
templates/webpages/project/_linked_records.html | ||
---|---|---|
1 |
[%- USE P %] |
|
2 |
[% P.record.grouped_list(records) %] |
|
1 |
[% USE P %] |
|
2 |
[% P.record.grouped_list(records) %] |
templates/webpages/project/form.html | ||
---|---|---|
1 |
[%- USE T8 %]
|
|
2 |
[%- USE L %]
|
|
3 |
[%- USE P %]
|
|
4 |
[%- USE HTML %]
|
|
5 |
[%- USE LxERP %]
|
|
1 |
[% USE T8 %] |
|
2 |
[% USE L %] |
|
3 |
[% USE P %] |
|
4 |
[% USE HTML %] |
|
5 |
[% USE LxERP %] |
|
6 | 6 |
<h1>[% title %]</h1> |
7 | 7 |
|
8 |
[%- INCLUDE 'common/flash.html' %]
|
|
8 |
[% INCLUDE 'common/flash.html' %] |
|
9 | 9 |
|
10 | 10 |
<form method="post" action="controller.pl" id="form"> |
11 | 11 |
[% L.hidden_tag("callback", callback) %] |
... | ... | |
14 | 14 |
<div class="tabwidget"> |
15 | 15 |
<ul> |
16 | 16 |
<li><a href="#basic_data">[% 'Basic Data' | $T8 %]</a></li> |
17 |
[%- IF CUSTOM_VARIABLES.size %]
|
|
18 |
<li><a href="#custom_variables">[% 'Custom Variables' | $T8 %]</a></li> |
|
19 |
[%- END %]
|
|
20 |
[%- IF SELF.may_edit_invoice_permissions %]
|
|
17 |
[% IF CUSTOM_VARIABLES.size %] |
|
18 |
<li><a href="#custom_variables">[% 'Custom Variables' | $T8 %]</a></li>
|
|
19 |
[% END %] |
|
20 |
[% IF SELF.may_edit_invoice_permissions %] |
|
21 | 21 |
<li><a href="#invoice_permissions">[% 'Permissions for invoices' | $T8 %]</a></li> |
22 |
[%- END %]
|
|
23 |
[%- IF SELF.project.id and AUTH.assert('record_links', 1) %]
|
|
24 |
<li><a href="#linked_records">[% 'Linked Records' | $T8 %]</a></li> |
|
25 |
[%- END %]
|
|
22 |
[% END %]
|
|
23 |
[% IF SELF.project.id and AUTH.assert('record_links', 1) %] |
|
24 |
<li><a href="#linked_records">[% 'Linked Records' | $T8 %]</a></li>
|
|
25 |
[% END %] |
|
26 | 26 |
</ul> |
27 | 27 |
|
28 |
<div id="basic_data"> |
|
29 |
[%- PROCESS 'project/_basic_data.html' %]
|
|
28 |
<div id="basic_data" class="ui-tabs-panel">
|
|
29 |
[% PROCESS 'project/_basic_data.html' %]
|
|
30 | 30 |
</div> |
31 | 31 |
|
32 |
[%- IF CUSTOM_VARIABLES.size %]
|
|
33 |
<div id="custom_variables">
|
|
34 |
[%- PROCESS 'project/_cvars.html' %]
|
|
35 |
</div> |
|
36 |
[%- END %]
|
|
32 |
[% IF CUSTOM_VARIABLES.size %] |
|
33 |
<div id="custom_variables" class="ui-tabs-panel">
|
|
34 |
[% PROCESS 'project/_cvars.html' %]
|
|
35 |
</div>
|
|
36 |
[% END %] |
|
37 | 37 |
|
38 |
[%- IF SELF.may_edit_invoice_permissions %]
|
|
38 |
[% IF SELF.may_edit_invoice_permissions %] |
|
39 | 39 |
<div id="invoice_permissions"> |
40 |
[%- PROCESS 'project/_invoice_permissions.html' %]
|
|
40 |
[% PROCESS 'project/_invoice_permissions.html' %] |
|
41 | 41 |
</div> |
42 |
[%- END %] |
|
43 |
|
|
44 |
[%- IF SELF.project.id and AUTH.assert('record_links', 1) %] |
|
45 |
<div id="linked_records"> |
|
46 |
[%- PROCESS 'project/_linked_records.html' records=SELF.linked_records %] |
|
47 |
</div> |
|
48 |
[%- END %] |
|
42 |
[% END %] |
|
43 |
[% IF SELF.project.id and AUTH.assert('record_links', 1) %] |
|
44 |
<div id="linked_records" class="ui-tabs-panel"> |
|
45 |
[% PROCESS 'project/_linked_records.html' records=SELF.linked_records %] |
|
46 |
</div> |
|
47 |
[% END %] |
|
49 | 48 |
|
50 | 49 |
</div> |
51 | 50 |
</form> |
templates/webpages/project/report_bottom.html | ||
---|---|---|
1 | 1 |
[% USE L %] |
2 |
[%- L.paginate_controls(models=SELF.models) %] |
|
2 |
[% L.paginate_controls(models=SELF.models) %] |
|
3 |
</div><!-- /.wrapper --> |
templates/webpages/project/report_top.html | ||
---|---|---|
1 |
[%- USE L %] |
|
2 |
[%- USE T8 %] |
|
3 |
[%- USE LxERP %] |
|
4 |
[%- USE HTML %] |
|
5 |
<form action='controller.pl' method='post' id='search_form'> |
|
6 |
<div class='filter_toggle'> |
|
7 |
<a href='#' onClick='javascript:$(".filter_toggle").toggle()'>[% 'Show Filter' | $T8 %]</a> |
|
8 |
[% SELF.filter_summary | html %] |
|
9 |
</div> |
|
10 |
<div class='filter_toggle' style='display:none'> |
|
11 |
<a href='#' onClick='javascript:$(".filter_toggle").toggle()'>[% 'Hide Filter' | $T8 %]</a> |
|
12 |
[%- PROCESS 'project/_filter.html' filter=SELF.models.filtered.laundered %] |
|
13 |
|
|
14 |
[% L.hidden_tag('action', 'Project/dispatch') %] |
|
15 |
[% L.hidden_tag('sort_by', FORM.sort_by) %] |
|
16 |
[% L.hidden_tag('sort_dir', FORM.sort_dir) %] |
|
17 |
[% L.hidden_tag('page', FORM.page) %] |
|
18 |
</div> |
|
1 |
[% USE L %] |
|
2 |
[% USE T8 %] |
|
3 |
[% USE LxERP %] |
|
4 |
[% USE HTML %] |
|
19 | 5 |
|
6 |
<form action="controller.pl" method="post" id="search_form"> |
|
7 |
<div class="wrapper"> |
|
8 |
[% PROCESS 'project/_filter.html' filter=SELF.models.filtered.laundered %] |
|
9 |
[% L.hidden_tag('action', 'Project/dispatch') %] |
|
10 |
[% L.hidden_tag('sort_by', FORM.sort_by) %] |
|
11 |
[% L.hidden_tag('sort_dir', FORM.sort_dir) %] |
|
12 |
[% L.hidden_tag('page', FORM.page) %] |
|
13 |
</div><!-- /.wrapper --> |
|
20 | 14 |
</form> |
21 |
<hr> |
|
15 |
<div class="wrapper"> |
Auch abrufbar als: Unified diff
Neues kivitendo Design Aenderungen in templates/webpages/project/..