Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision b568872b

Von Hans Peter Schlaepfer vor etwa 5 Jahren hinzugefügt

  • ID b568872b361ed269bf4a35180d34a81563498e4c
  • Vorgänger 723e3155
  • Nachfolger 909bab71

Neues kivitendo Design Aenderungen in templates/webpages/project/..

Unterschiede anzeigen:

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 %]
5

  
6
<table id="filter_table">
7
 <tr>
8
  <th align="right">[% 'Number' | $T8 %]</th>
9
  <td>[% L.input_tag('filter.projectnumber:substr::ilike', filter.projectnumber_substr__ilike, size=60) %]</td>
10
 </tr>
11

  
12
 <tr>
13
  <th align="right">[% 'Description' | $T8 %]</th>
14
  <td>[% L.input_tag('filter.description:substr::ilike', filter.description_substr__ilike, size=60, class='initial_focus') %]</td>
15
 </tr>
16

  
17
 <tr>
18
  <th align="right">[% 'Customer' | $T8 %]</th>
19
  <td>[% L.input_tag('filter.customer.name:substr::ilike', filter.customer.name_substr__ilike, size=60) %]</td>
20
 </tr>
21

  
22
 <tr>
23
  <th align="right">[% 'Project Type' | $T8 %]</th>
24
  <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>
25
 </tr>
26

  
27
 <tr>
28
  <th align="right">[% 'Project Status' | $T8 %]</th>
29
  <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>
30
 </tr>
31

  
32
 [% CUSTOM_VARIABLES_FILTER_CODE %]
33

  
34
 <tr>
35
  <th>[% 'Include in Report' | $T8 %]</th>
36
  <td>
37
   <table>
1
[% USE T8 %]
2
[% USE HTML %]
3
[% USE L %]
4
[% USE LxERP %]
5

  
6
[% BLOCK filter_toggle_panel %]
7
<table id="filter_table" class="tbl-horizontal">
8
  <caption>[% 'Project' | $T8 %]</caption>
9
  <tbody>
38 10
    <tr>
39
     <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>
11
      <th>[% 'Number' | $T8 %]</th>
12
      <td>[% L.input_tag('filter.projectnumber:substr::ilike', filter.projectnumber_substr__ilike, class='wi-normal') %]</td>
40 13
    </tr>
41

  
42 14
    <tr>
43
     <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>
15
      <th>[% 'Description' | $T8 %]</th>
16
      <td>[% L.input_tag('filter.description:substr::ilike', filter.description_substr__ilike, class='wi-normal initial_focus') %]</td>
17
    </tr>
18
    <tr>
19
      <th>[% 'Customer' | $T8 %]</th>
20
      <td>[% L.input_tag('filter.customer.name:substr::ilike', filter.customer.name_substr__ilike, class='wi-normal') %]</td>
44 21
    </tr>
45

  
46 22
    <tr>
47
     <td>[% L.select_tag('filter.status', [ [ 'all', LxERP.t8('All') ], [ 'orphaned', LxERP.t8('Orphaned') ] ], default=filter.status, style="width: 200px") %]</td>
23
      <th>[% 'Project Type' | $T8 %]</th>
24
      <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>
48 25
    </tr>
26
    <tr>
27
      <th>[% 'Project Status' | $T8 %]</th>
28
      <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>
29
    </tr>
30
    [% CUSTOM_VARIABLES_FILTER_CODE %]
31
  </tbody>
32
</table>
49 33

  
34
<table class="tbl-horizontal">
35
  <caption>[% 'Include in Report' | $T8 %]</caption>
36
  <tbody>
37
    <tr>
38
      <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>
39
    </tr>
40
    <tr>
41
      <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>
42
    </tr>
43
    <tr>
44
      <td>[% L.select_tag('filter.status', [ [ 'all', LxERP.t8('All') ], [ 'orphaned', LxERP.t8('Orphaned') ] ], default=filter.status, style="width: 200px") %]</td>
45
    </tr>
50 46
    [% CUSTOM_VARIABLES_INCLUSION_CODE %]
51

  
52
   </table>
53
  </td>
54
 </tr>
47
  </tbody>
55 48
</table>
56 49

  
57
[% L.button_tag('$("#search_form").resetForm()', LxERP.t8('Reset')) %]
50
<div class="buttons">
51
  [% L.button_tag('$("#search_form").resetForm()', LxERP.t8('Reset'), class="neutral") %]
52
</div>
53
[% END # /BLOCK filter_toggle_panel %]
54

  
55
[% 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.project.id and AUTH.assert('record_links', 1) %]
21
    <li><a href="#linked_records">[% 'Linked Records' | $T8 %]</a></li>
22
    [%- END %]
17
    [% IF CUSTOM_VARIABLES.size %]
18
      <li><a href="#custom_variables">[% 'Custom Variables' | $T8 %]</a></li>
19
    [% END %]
20
    [% IF SELF.project.id and AUTH.assert('record_links', 1) %]
21
      <li><a href="#linked_records">[% 'Linked Records' | $T8 %]</a></li>
22
    [% END %]
23 23
   </ul>
24 24

  
25
   <div id="basic_data">
26
   [%- PROCESS 'project/_basic_data.html' %]
25
   <div id="basic_data" class="ui-tabs-panel">
26
     [% PROCESS 'project/_basic_data.html' %]
27 27
   </div>
28 28

  
29
   [%- IF CUSTOM_VARIABLES.size %]
30
   <div id="custom_variables">
31
   [%- PROCESS 'project/_cvars.html' %]
32
   </div>
33
   [%- END %]
29
   [% IF CUSTOM_VARIABLES.size %]
30
     <div id="custom_variables" class="ui-tabs-panel">
31
       [% PROCESS 'project/_cvars.html' %]
32
     </div>
33
   [% END %]
34 34

  
35
   [%- IF SELF.project.id and AUTH.assert('record_links', 1) %]
36
   <div id="linked_records">
37
   [%- PROCESS 'project/_linked_records.html' records=SELF.linked_records %]
38
   </div>
39
   [%- END %]
35
   [% IF SELF.project.id and AUTH.assert('record_links', 1) %]
36
     <div id="linked_records" class="ui-tabs-panel">
37
       [% PROCESS 'project/_linked_records.html' records=SELF.linked_records %]
38
     </div>
39
   [% END %]
40 40

  
41 41
  </div>
42 42
 </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">
templates/webpages/project/search.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
<h1>[% 'Search projects' | $T8 %]</h1>
6 7

  
7
[%- INCLUDE 'common/flash.html' %]
8 8

  
9
 <form method="post" action="controller.pl" id="search_form">
9
<form method="post" action="controller.pl" id="search_form">
10
<div class="wrapper">
11

  
12
[% INCLUDE 'common/flash.html' %]
13

  
14

  
15
[% INCLUDE 'project/_filter.html' %]
10 16

  
11
  <p>
12
[%- INCLUDE 'project/_filter.html' %]
13
  </p>
14
 </form>
17
</div>
18
</form>

Auch abrufbar als: Unified diff