Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 489e85ab

Von Hans Peter Schlaepfer vor fast 6 Jahren hinzugefügt

  • ID 489e85ab92caab31364e580ca8d0ba3460f0a6df
  • Vorgänger 77f7372c
  • Nachfolger 57d1e5a2

Neues kivitendo Design Aenderungen in templates/webpages/l*

Dateien letter/* liquidity_projection/* login/* login_screen/*

Unterschiede anzeigen:

templates/webpages/letter/edit.html
1
[%- USE HTML %]
2
[%- USE T8 %]
3
[%- USE L %]
4
[%- USE P %]
5
[%- USE LxERP %]
6
[%- SET WEBDAV = SELF.webdav_objects %]
1
[% USE HTML %]
2
[% USE T8 %]
3
[% USE L %]
4
[% USE P %]
5
[% USE LxERP %]
6

  
7
[% SET WEBDAV = SELF.webdav_objects %]
8

  
7 9
<h1>[% title | html %]</h1>
8 10

  
9 11
<form action='controller.pl' method='POST' id='form'>
10
  <input type="hidden" name="letter.id" value="[% letter.id | html %]">
11
  <input type="hidden" name="draft.id" value="[% draft.id | html %]">
12
  <input type="hidden" name="type" value="[% type | html %]">
13
  [% L.hidden_tag('is_sales', SELF.is_sales) %]
12
<input type="hidden" name="letter.id" value="[% letter.id | html %]">
13
<input type="hidden" name="draft.id" value="[% draft.id | html %]">
14
<input type="hidden" name="type" value="[% type | html %]">
15
[% L.hidden_tag('is_sales', SELF.is_sales) %]
14 16

  
15
  [%- INCLUDE 'common/flash.html' %]
17
[% INCLUDE 'common/flash.html' %]
16 18

  
17
  <div id="oe_tabs" class="tabwidget">
18
   <ul>
19
<div id="oe_tabs" class="tabwidget">
20
  <ul>
19 21
    <li><a href="#ui-tabs-letter">[% LxERP.t8("Letter") %]</a></li>
20
[%- IF letter.id %]
21
 [%- IF INSTANCE_CONF.get_webdav %]
22
     <li><a href="#ui-tabs-webdav">[% LxERP.t8('WebDAV') %]</a></li>
23
 [%- END %]
24
    <li><a href="controller.pl?action=RecordLinks/ajax_list&object_model=Letter&object_id=[% HTML.url(letter.id) %]">[% LxERP.t8("Linked Records") %]</a></li>
25
[%- END %]
26
   </ul>
27

  
28
   <div id="ui-tabs-letter">
29

  
30
<table width=100%>
31
<tr>
32
 <td width=50%>
33
  <!-- upper left block -->
34
   <table width=90%>
35
[%- IF SELF.is_sales %]
36
    <tr>
37
     <th align='right'>[% 'Customer' | $T8 %]:</th>
38
     <td>[% P.customer_vendor.picker('letter.customer_id', letter.customer_id, type='customer') %]</td>
39
    </tr>
40
[%- ELSE %]
22
    [% IF letter.id %]
23
      [% IF INSTANCE_CONF.get_webdav %]
24
        <li><a href="#ui-tabs-webdav">[% LxERP.t8('WebDAV') %]</a></li>
25
      [% END %]
26
      <li><a href="controller.pl?action=RecordLinks/ajax_list&object_model=Letter&object_id=[% HTML.url(letter.id) %]">[% LxERP.t8("Linked Records") %]</a></li>
27
    [% END %]
28
  </ul>
29

  
30
<div id="ui-tabs-letter">
31

  
32
<div class="wrapper">
33

  
34
  <table class="tbl-horizontal col">
35
    <colgroup> <col class="wi-small"><col class="wi-lightwide"> </colgroup>
36
    <tbody>
37
      [% IF SELF.is_sales %]
38
      <tr>
39
        <th>[% 'Customer' | $T8 %]</th>
40
        <td class="wi-wider">[% P.customer_vendor.picker('letter.customer_id', letter.customer_id, type='customer', class='wi-wider') %]</td>
41
      </tr>
42
      [% ELSE %]
43
      <tr>
44
        <th>[% 'Vendor' | $T8 %]</th>
45
        <td class="wi-wider">[% P.customer_vendor.picker('letter.vendor_id', letter.vendor_id, type='vendor', class='wi-wider') %]</td>
46
      </tr>
47
      [% END %]
48
      <tr>
49
        <th>[% 'Contact Person' | $T8 %]</th>
50
        <td class="wi-wider">[% L.select_tag('letter.cp_id', letter.customer_vendor_id ? letter.customer_vendor.contacts : [], value_key='cp_id', title_key='full_name', default=letter.cp_id, class='wi-wider') %]</td>
51
      </tr>
52
    </tbody>
53
  </table>
54

  
55
  <table class="tbl-horizontal col">
56
    <tbody>
57
      <tr>
58
        <th>[% 'Your Reference' | $T8 %]</th>
59
        <td><input type="text" name='letter.reference' value='[% letter.reference | html %]' class="wi-small">
60
        </td>
61
      </tr>
62
      <tr>
63
        <th>[% 'Letternumber' | $T8 %]:</th>
64
        <td><input type="text" name='letter.letternumber' value='[% letter.letternumber | html %]' class="wi-small">
65
        </td>
66
      </tr>
67
    </tbody>
68
  </table>
69

  
70
  <table class="tbl-horizontal col">
71
    <tbody>
72
      <tr>
73
        <th>[% 'Employee' | $T8 %]</th>
74
        <td>[% L.select_tag('letter.employee_id', employees, default=letter.employee_id, title_key='safe_name', class='wi-wide', allow_empty=1,) %]</td>
75
      </tr>
76
      <tr>
77
        <th>[% 'Salesman' | $T8 %]</th>
78
        <td>[% L.select_tag('letter.salesman_id', employees, default=letter.salesman_id, title_key='safe_name', class='wi-wide', allow_empty=1,) %]</td>
79
      </tr>
80
    </tbody>
81
  </table>
82

  
83
</div><!-- /.wrapper -->
84

  
85

  
86
<div class="wrapper">
87

  
88
<table class="tbl-horizontal">
89
  <colgroup> <col class="wi-small"><col class="wi-wider"> </colgroup>
90
  <tbody>
41 91
    <tr>
42
     <th align='right'>[% 'Vendor' | $T8 %]:</th>
43
     <td>[% P.customer_vendor.picker('letter.vendor_id', letter.vendor_id, type='vendor') %]</td>
92
      <th>[% 'Date' | $T8 %]</th>
93
      <td>[% L.date_tag('letter.date_as_date', letter.date_as_date, readonly=readonly, class='wi-date') %]</td>
44 94
    </tr>
45
[%- END %]
46 95
    <tr>
47
     <th align='right'>[% 'Contact Person' | $T8 %]</th>
48
     <td>[% L.select_tag('letter.cp_id', letter.customer_vendor_id ? letter.customer_vendor.contacts : [], value_key='cp_id', title_key='full_name', default=letter.cp_id) %]</td>
96
      <th>[% 'Subject' | $T8 %]</th>
97
      <td><textarea name='letter.subject' rows="1" class="wi-wider">[% letter.subject | html %]</textarea></td>
49 98
    </tr>
50 99
    <tr>
51
     <th align='right'>[% 'Your Reference' | $T8 %]:</th>
52
     <td><input name='letter.reference' style='width:70%' value='[% letter.reference | html %]'></td>
100
      <th>[% 'Greeting' | $T8 %]</th>
101
      <td><input type="text" name='letter.greeting' value="[% letter.greeting | html %]" class="wi-wider"> </td>
53 102
    </tr>
54
   </table>
55
  <!-- /upper left block -->
56
 </td>
57
 <td width=50%>
58
  <!-- upper right block -->
59
   <table align=center width=90%>
60 103
    <tr>
61
     <th align='right'>[% 'Letternumber' | $T8 %]:</th>
62
     <td><input name='letter.letternumber' style='width:70%' value='[% letter.letternumber | html %]'></td>
104
      <th>[% 'Body' | $T8 %]</th>
105
      <td class="wi-wider">[% L.textarea_tag('letter.body_as_restricted_html', letter.body_as_restricted_html, rows=20, class='texteditor wi-wider') %]</td>
63 106
    </tr>
64 107
    <tr>
65
     <th align='right'>[% 'Date' | $T8 %]:</th>
66
      <td>[% L.date_tag('letter.date_as_date', letter.date_as_date, readonly=readonly) %]</td>
67
     </td>
108
      <th>[% 'Internal Notes' | $T8 %]</th>
109
      <td><textarea name='letter.intnotes' rows="4" class="wi-wider">[% letter.intnotes | html %]</textarea></td>
68 110
    </tr>
69
   </table>
70
  <!-- /upper right block -->
71
 </td>
72
</tr>
111
  </tbody>
112
</table>
73 113

  
74
<tr height=20></tr>
114
<div id="email_inputs" class="hidden"></div>
115
<div id="print_options" class="hidden">[% print_options %]</div>
75 116

  
76
<tr>
77
 <td colspan=2 width=100%>
78
  <!-- central block -->
79
   <table width=80%>
80
    <tr>
81
     <th align=right>[% 'Subject' | $T8 %]</th>
82
     <td><textarea name='letter.subject' style='width:100%;font-weight:bold' rows=1>[% letter.subject | html %]</textarea></td>
83
    </tr>
84
     <th align=right>[% 'Greeting' | $T8 %]</th>
85
     <td><input name='letter.greeting' style='width:100%;font-weight:bold' value="[% letter.greeting | html %]"></td>
86
    </tr>
87
    <tr>
88
    <tr>
89
     <th align=right>[% 'Body' | $T8 %]</th>
90
     <td>[% L.textarea_tag('letter.body_as_restricted_html', letter.body_as_restricted_html, style='width:100%', rows=20, class="texteditor") %]</td>
91
    </tr>
92
    <tr height=10></tr>
93
     <th align=right>[% 'Internal Notes' | $T8 %]</th>
94
     <td><textarea name='letter.intnotes' style='width:100%' rows=4>[% letter.intnotes | html %]</textarea></td>
95
    </tr>
117
</div><!-- /.wrapper -->
96 118

  
97
    <tr>
98
     <th></th>
99
     <td>
100
      <table width=90% align='center'>
101
       <tr>
102
        <td>
103
         <table width=100%>
104
          <tr>
105
           <td>[% 'Employee' | $T8 %]</td>
106
          </tr>
107
          <tr>
108
           <td>
109
            [%- L.select_tag('letter.employee_id', employees, default=letter.employee_id, title_key='safe_name', class='bold', allow_empty=1, style='width:70%') %]
110
           </td>
111
          </tr>
112
         </table>
113
        </td>
114
        <td>
115
         <table width=100%>
116
          <tr>
117
           <td>[% 'Salesman' | $T8 %]</td>
118
          </tr>
119
          <tr>
120
           <td>
121
            [%- L.select_tag('letter.salesman_id', employees, default=letter.salesman_id, title_key='safe_name', class='bold', allow_empty=1, style='width:70%') %]
122
           </td>
123
          </tr>
124
         </table>
125
        </td>
126
        <td>
127
        </td>
128
       </tr>
129
      </table>
130
     </td>
131
    </tr>
132
   </table>
133
  <!-- /central block -->
134
 </td>
135
</tr>
136
</table>
119
</div><!-- /.ui-tabs-letter -->
137 120

  
138
<div id="email_inputs" class="hidden"></div>
139
<div id="print_options" class="hidden">
140
 [% print_options %]
121
[% PROCESS 'webdav/_list.html' %]
122
<div id="ui-tabs-1">
123
  <div class="wrapper">
124
  [% LxERP.t8("Loading...") %]
125
  </div>
141 126
</div>
142 127

  
143
 </div>
144
 [% PROCESS 'webdav/_list.html' %]
145
 <div id="ui-tabs-1">
146
  [%- LxERP.t8("Loading...") %]
147
 </div>
148
</div>
128
</div><!-- /.tabwidget -->
129

  
149 130
</form>
150 131

  
151 132
<div id="print_dialog" class="hidden">
152
 [%- PROCESS 'common/_print_dialog.html' %]
133
  [% PROCESS 'common/_print_dialog.html' %]
153 134
</div>
templates/webpages/letter/load_drafts.html
1
[%- USE T8 %]
2
[%- USE HTML %][%- USE L -%]
1
[% USE T8 %]
2
[% USE HTML %]
3
[% USE L %]
4

  
3 5
<h1>[% 'Load letter draft' | $T8 %]</h1>
4 6

  
5 7
 <form method="post" name="Form" action="controller.pl" id="form">
......
12 14
    <td>
13 15
     <table>
14 16
      <tr>
15
       <th class="listheading">&nbsp;</th>
16
       <th class="listheading">[% 'Date' | $T8 %]</th>
17
       <th class="listheading">[% 'Subject' | $T8 %]</th>
18
[%- IF SELF.is_sales %]
19
       <th class="listheading">[% 'Customer' | $T8 %]</th>
20
[%- ELSE %]
21
       <th class="listheading">[% 'Vendor' | $T8 %]</th>
22
[%- END %]
17
       <th>&nbsp;</th>
18
       <th>[% 'Date' | $T8 %]</th>
19
       <th>[% 'Subject' | $T8 %]</th>
20
[% IF SELF.is_sales %]
21
       <th>[% 'Customer' | $T8 %]</th>
22
[% ELSE %]
23
       <th>[% 'Vendor' | $T8 %]</th>
24
[% END %]
23 25
      </tr>
24 26

  
25 27
      [% FOREACH row = LETTER_DRAFTS %]
......
27 29
        <td>[% L.checkbox_tag("ids[+]", value=row.id) %]</td>
28 30
        <td>[% row.date.to_kivitendo | html %]</td>
29 31
        <td><a href="[% SELF.url_for(action='edit', 'draft.id'=row.id) %]">[% row.subject | html %]</a></td>
30
[%- IF SELF.is_sales %]
32
[% IF SELF.is_sales %]
31 33
        <td>[% row.customer.displayable_name | html %]</td>
32
[%- ELSE %]
34
[% ELSE %]
33 35
        <td>[% row.vendor.displayable_name | html %]</td>
34
[%- END %]
36
[% END %]
35 37
       </tr>
36 38
      [% END %]
37 39
     </table>
templates/webpages/letter/report_bottom.html
1 1
[% USE HTML%]
2
[%- USE T8 %]
3
[%- USE L %][%- USE LxERP -%]
4
 [% L.paginate_controls(models=SELF.models) %]
5
 <input type="hidden" name="rowcount" value="[% HTML.escape(rowcount) %]">
6
 [%- FOREACH item = HIDDEN %]
7
 <input type="hidden" name="[% HTML.escape(item.key) %]" value="[% HTML.escape(item.value) %]">
8
 [%- END %]
2
[% USE T8 %]
3
[% USE L %]
4
[% USE LxERP %]
5

  
6
[% L.paginate_controls(models=SELF.models) %]
7
</div><!-- /.wrapper -->
8
<input type="hidden" name="rowcount" value="[% HTML.escape(rowcount) %]">
9
[% FOREACH item = HIDDEN %]
10
  <input type="hidden" name="[% HTML.escape(item.key) %]" value="[% HTML.escape(item.value) %]">
11
[% END %]
12

  
9 13
</form>
templates/webpages/letter/report_top.html
1
[%- PROCESS 'letter/search.html' filter=SELF.models.filtered.laundered %]
2
<hr>
1
[% PROCESS 'letter/search.html' filter=SELF.models.filtered.laundered %]
2
<div class="wrapper">
templates/webpages/letter/search.html
3 3
[% USE L %]
4 4
[% USE P %]
5 5
[% USE LxERP %]
6
<form action="controller.pl" method="post" name="Form" id="search_form">
7

  
8
<div class='filter_toggle'>
9
<a href='#' onClick='javascript:$(".filter_toggle").toggle()'>[% 'Show Filter' | $T8 %]</a>
10
  [% SELF.filter_summary | html %]
11
</div>
12
<div class='filter_toggle' style='display:none'>
13
<a href='#' onClick='javascript:$(".filter_toggle").toggle()'>[% 'Hide Filter' | $T8 %]</a>
14 6

  
7
<form action="controller.pl" method="post" name="Form" id="search_form">
8
<div class="wrapper">
15 9

  
16
 <table id='filter_table'>
17
  <tr>
18
   <th align='right'>[% 'Letternumber' | $T8 %]</th>
19
   <td>[% L.input_tag('filter.letternumber:substr::ilike', filter.letternumber_substr__ilike, style='width:250px') %]</th>
20
  </tr>
21
[%- IF SELF.is_sales %]
22
  <tr>
23
   <td align="right">[% 'Customer' | $T8 %]</td>
24
   <td>[% P.customer_vendor.picker('filter.customer_id', filter.customer_id, type='customer', style='width:250px') %]</td>
25
  </tr>
26
[%- ELSE %]
27
  <tr>
28
   <td align="right">[% 'Vendor' | $T8 %]</td>
29
   <td>[% P.customer_vendor.picker('filter.vendor_id', filter.vendor_id, type='vendor', style='width:250px') %]</td>
30
  </tr>
31
[%- END %]
32
  <tr>
33
   <td align="right">[% 'Contact' | $T8 %]</td>
34
   <td>[% L.input_tag('filter.contact.cp_name:substr::ilike', filter.contact.cp_name_substr__ilike, style='width:250px') %]</th>
35
  </tr>
36

  
37
  <tr>
38
   <td align="right">[% 'Subject' | $T8 %]</td>
39
   <td>[% L.input_tag('filter.subject:substr::ilike', filter.subject_substr__ilike, style='width:250px') %]</th>
40
  </tr>
10
[% BLOCK filter_toggle_panel %]
11
<table id='filter_table' class="tbl-horizontal">
12
  <tbody>
13
    <tr>
14
      <th>[% 'Letternumber' | $T8 %]</th>
15
      <td>[% L.input_tag('filter.letternumber:substr::ilike', filter.letternumber_substr__ilike, class='wi-lightwide') %]</td>
16
    </tr>
17
    [% IF SELF.is_sales %]
18
      <tr>
19
        <th>[% 'Customer' | $T8 %]</th>
20
        <td class="wi-lightwide">[% P.customer_vendor.picker('filter.customer_id', filter.customer_id, type='customer') %]</td>
21
      </tr>
22
    [% ELSE %]
23
      <tr>
24
        <th>[% 'Vendor' | $T8 %]</th>
25
        <td class="wi-lightwide">[% P.customer_vendor.picker('filter.vendor_id', filter.vendor_id, type='vendor') %]</td>
26
      </tr>
27
    [% END %]
28
    <tr>
29
      <th>[% 'Contact' | $T8 %]</th>
30
      <td>[% L.input_tag('filter.contact.cp_name:substr::ilike', filter.contact.cp_name_substr__ilike, class='wi-lightwide') %]</td>
31
    </tr>
32
    <tr>
33
      <th>[% 'Subject' | $T8 %]</th>
34
      <td>[% L.input_tag('filter.subject:substr::ilike', filter.subject_substr__ilike, class='wi-lightwide') %]</td>
35
    </tr>
36
    <tr>
37
      <th>[% 'Body' | $T8 %]</th>
38
      <td>[% L.input_tag('filter.body:substr::ilike', filter.body_substr__ilike, class='wi-lightwide') %]</td>
39
    </tr>
40
    <tr>
41
      <th>[% 'Date' | $T8 %]</th>
42
      <td>[% L.date_tag('filter.date:date::ge', filter.date_date__ge, class='wi-date') %] [% 'To (time)' | $T8 %] [% L.date_tag('filter.date:date::le', filter.date_date__le, class='wi-date') %]</td>
43
    </tr>
44
  </tbody>
45
</table>
41 46

  
42
  <tr>
43
   <td align="right">[% 'Body' | $T8 %]</td>
44
   <td>[% L.input_tag('filter.body:substr::ilike', filter.body_substr__ilike, style='width:250px') %]</th>
45
  </tr>
47
[% L.hidden_tag('is_sales', SELF.is_sales) %]
48
[% L.hidden_tag('sort_by', FORM.sort_by) %]
49
[% L.hidden_tag('sort_dir', FORM.sort_dir) %]
50
[% L.hidden_tag('page', FORM.page) %]
51
<div class="buttons">
52
  [% L.button_tag("\$('#search_form').resetForm()", LxERP.t8("Reset"), class='neutral') %]
53
</div>
54
[% END # /BLOCK filter_toggle_panel %]
46 55

  
47
  <tr>
48
   <td align='right'>[% 'From' | $T8 %]</td>
49
   <td> [% L.date_tag('filter.date:date::ge', filter.date_date__ge) %]
50
        [% 'To (time)' | $T8 %]
51
        [% L.date_tag('filter.date:date::le', filter.date_date__le) %]</td>
52
  </tr>
53
 </table>
56
[% INCLUDE 'common/toggle_panel.html' %]
54 57

  
55
 [% L.hidden_tag('is_sales', SELF.is_sales) %]
56
 [% L.hidden_tag('sort_by', FORM.sort_by) %]
57
 [% L.hidden_tag('sort_dir', FORM.sort_dir) %]
58
 [% L.hidden_tag('page', FORM.page) %]
59
 [% L.button_tag("\$('#search_form').resetForm()", LxERP.t8("Reset")) %]
60 58
</div>
61 59
</form>
templates/webpages/liquidity_projection/_filter.html
1
[%- USE LxERP -%][%- USE L -%]
1
[% USE LxERP %]
2
[% USE L %]
3
[% USE T8 %]  
4
<div class="wrapper">
2 5

  
3 6
<form method="post" action="controller.pl" id="filter_form">
4
 <table border="0">
5
  <tr>
6
   <th align="right">[% LxERP.t8("Number of months") %]</th>
7
   <td>[% L.input_tag("params.months", FORM.params.months, class="initial_focus") %]</td>
8
  </tr>
9

  
10
  <tr>
11
   <th align="right" valign="top">[% LxERP.t8("Break down by") %]</th>
12
   <td valign="top">
13
    [% L.checkbox_tag("params.type",           value=1, checked=FORM.params.type,           label=LxERP.t8("Basis of calculation")) %]
14
    <br>
15
    [% L.checkbox_tag("params.salesman",       value=1, checked=FORM.params.salesman,       label=LxERP.t8("Salesman")) %]
16
    <br>
17
    [% L.checkbox_tag("params.buchungsgruppe", value=1, checked=FORM.params.buchungsgruppe, label=LxERP.t8("Booking group")) %]
18
   </td>
19
  </tr>
20
 </table>
7
  <table class="tbl-horizontal">
8
  <caption>[% 'Filter' | $T8 %]</caption>
9
  <tbody>
10
    <tr>
11
      <th>[% LxERP.t8("Number of months") %]</th>
12
      <td>[% L.input_tag("params.months", FORM.params.months, class="initial_focus") %]</td>
13
    </tr>
14
    <tr>
15
      <th>[% LxERP.t8("Break down by") %]</th>
16
      <td> 
17
        [% L.checkbox_tag("params.type",           value=1, checked=FORM.params.type,           label=LxERP.t8("Basis of calculation")) %] <br>
18
        [% L.checkbox_tag("params.salesman",       value=1, checked=FORM.params.salesman,       label=LxERP.t8("Salesman")) %] <br>
19
        [% L.checkbox_tag("params.buchungsgruppe", value=1, checked=FORM.params.buchungsgruppe, label=LxERP.t8("Booking group")) %] 
20
      </td>
21
    </tr>
22
  </tbody>
23
  </table>
21 24
</form>
25

  
26
</div><!-- /.wrapper -->
27

  
templates/webpages/liquidity_projection/_result.html
1
[%- USE HTML -%][%- USE LxERP -%]
2
[%- SET name_col = FORM.params.salesman || FORM.params.buchungsgruppe || FORM.params.type %]
1
[% USE HTML %]
2
[% USE LxERP %]
3
[% SET name_col = FORM.params.salesman || FORM.params.buchungsgruppe || FORM.params.type %]
3 4

  
4
<table border="0">
5
 <tr>
6
  <th class="listheading">[% LxERP.t8("Type") %]</th>
7
  [%- IF name_col %]
8
   <th class="listheading">[% LxERP.t8("Name") %]</th>
9
  [%- END %]
10
  [%- FOREACH month = SELF.liquidity.sorted.month %]
11
   <th class="listheading" align="right">[%- IF month == 'old' %][% LxERP.t8("old") %][% ELSIF month == 'future' %][% LxERP.t8("prospective") %][% ELSE %][%- HTML.escape(month) %][% END %]</th>
12
  [%- END %]
13
 </tr>
14

  
15
 [% IF FORM.params.type %]
16
  [% FOREACH type = SELF.liquidity.sorted.type %]
17
   <tr class="listrow">
18
    <td>[% IF loop.first %][% LxERP.t8("Basis of calculation") %][% END %]</td>
19
    <td>
20
     [% IF    type == 'order' %][% LxERP.t8("Sales Orders") %]
21
     [% ELSIF type == 'partial' %][% LxERP.t8("Partial invoices") %]
22
     [% ELSE %][% LxERP.t8("Periodic Invoices") %]
23
     [% END %]
24
    </td>
25

  
26
    [%- FOREACH month = SELF.liquidity.sorted.month %]
27
     <td align="right">[% LxERP.format_amount(SELF.liquidity.$type.$month, 2) %]</td>
28
    [%- END %]
29
   </tr>
30
  [%- END %]
31
 [%- END %]
32

  
33
 [%- IF FORM.params.salesman %]
34
  [%- FOREACH salesman = SELF.liquidity.sorted.salesman %]
35
   <tr class="listrow">
36
    <td>[% IF loop.first %][% LxERP.t8("Salesman") %][% END %]</td>
37
    <td>[%- HTML.escape(salesman) %]</td>
5
<table class="tbl-list wi-moderate">
6
  <caption>[% 'Search Result' | $T8 %]</caption>
7
  <thead>
8
    <tr>
9
      <th>[% LxERP.t8("Type") %]</th>
10
      [% IF name_col %] 
11
        <th>[% LxERP.t8("Name") %]</th>
12
      [% END %] 
13
      [% FOREACH month = SELF.liquidity.sorted.month %] 
14
        <th>[% IF month == 'old' %][% LxERP.t8("old") %][% ELSIF month == 'future' %][% LxERP.t8("prospective") %][% ELSE %][% HTML.escape(month) %][% END %]</th>
15
      [% END %] 
16
    </tr>
17
  </thead>
18
  <tbody>
19
    [% IF FORM.params.type %] [% FOREACH type = SELF.liquidity.sorted.type %] 
20
    <tr>
21
      <td>[% IF loop.first %][% LxERP.t8("Basis of calculation") %][% END %]</td>
22
      <td>[% IF type == 'order' %][% LxERP.t8("Sales Orders") %] [% ELSIF type == 'partial' %][% LxERP.t8("Partial invoices") %] [% ELSE %][% LxERP.t8("Periodic Invoices") %] [% END %] </td>
23
      [% FOREACH month = SELF.liquidity.sorted.month %] 
24
      <td class="numeric">[% LxERP.format_amount(SELF.liquidity.$type.$month, 2) %]</td>
25
      [% END %] 
26
    </tr>
27
    [% END %] 
28
    [% END %]
38 29

  
39
    [%- FOREACH month = SELF.liquidity.sorted.month %]
40
     <td align="right">[% LxERP.format_amount(SELF.liquidity.salesman.$salesman.$month, 2) %]</td>
41
    [%- END %]
42
   </tr>
43
  [%- END %]
44
 [%- END %]
30
     [% IF FORM.params.salesman %]
31
      [% FOREACH salesman = SELF.liquidity.sorted.salesman %]
32
       <tr>
33
        <td>[% IF loop.first %][% LxERP.t8("Salesman") %][% END %]</td>
34
        <td>[% HTML.escape(salesman) %]</td>
45 35

  
46
 [%- IF FORM.params.buchungsgruppe %]
47
  [%- FOREACH buchungsgruppe = SELF.liquidity.sorted.buchungsgruppe %]
48
   <tr class="listrow">
49
    <td>[% IF loop.first %][% LxERP.t8("Booking group") %][% END %]</td>
50
    <td>[%- HTML.escape(buchungsgruppe) %]</td>
36
        [% FOREACH month = SELF.liquidity.sorted.month %]
37
         <td class="numeric">[% LxERP.format_amount(SELF.liquidity.salesman.$salesman.$month, 2) %]</td>
38
        [% END %]
39
       </tr>
40
      [% END %]
41
     [% END %]
51 42

  
52
    [%- FOREACH month = SELF.liquidity.sorted.month %]
53
     <td align="right">[% LxERP.format_amount(SELF.liquidity.buchungsgruppe.$buchungsgruppe.$month, 2) %]</td>
54
    [%- END %]
55
   </tr>
56
  [%- END %]
57
 [%- END %]
43
     [% IF FORM.params.buchungsgruppe %]
44
      [% FOREACH buchungsgruppe = SELF.liquidity.sorted.buchungsgruppe %]
45
       <tr>
46
        <td>[% IF loop.first %][% LxERP.t8("Booking group") %][% END %]</td>
47
        <td>[% HTML.escape(buchungsgruppe) %]</td>
58 48

  
59
 <tr class="listrow listtotal">
60
  <td>[% LxERP.t8("Total") %]</td>
61
  [% IF name_col %]<td></td>[% END %]
62
  [%- FOREACH month = SELF.liquidity.sorted.month %]
63
   <td align="right">
64
    [% IF SELF.liquidity.total.$month > 0 %]
65
     <a href="[% HTML.escape(SELF.link_to_old_orders(reqdate=month, months=params.months)) %]">
66
    [% END %]
67
    [% LxERP.format_amount(SELF.liquidity.total.$month, 2) %]
68
    [% IF SELF.liquidity.total.$month > 0 %]
69
     </a>
70
    [% END %]
71
   </td>
72
  [%- END %]
73
 </tr>
49
        [% FOREACH month = SELF.liquidity.sorted.month %]
50
         <td class="numeric">[% LxERP.format_amount(SELF.liquidity.buchungsgruppe.$buchungsgruppe.$month, 2) %]</td>
51
        [% END %]
52
       </tr>
53
      [% END %]
54
     [% END %]
55
  </tbody>
56
<tfoot>
57
  <tr class="listrow listtotal">
58
    <td>[% LxERP.t8("Total") %]</td>
59
    [% IF name_col %]<td></td>[% END %]
60
    [% FOREACH month = SELF.liquidity.sorted.month %]
61
      <td class="numeric">
62
        [% IF SELF.liquidity.total.$month > 0 %]
63
          <a href="[% HTML.escape(SELF.link_to_old_orders(reqdate=month, months=params.months)) %]">
64
        [% END %]
65
        [% LxERP.format_amount(SELF.liquidity.total.$month, 2) %]
66
        [% IF SELF.liquidity.total.$month > 0 %]
67
          </a>
68
        [% END %]
69
      </td>
70
   [% END %]
71
  </tr>
72
</tfoot>
74 73
</table>
templates/webpages/liquidity_projection/show.html
1
[% USE HTML %][% USE LxERP %][%- USE L -%]
1
[% USE HTML %]
2
[% USE LxERP %]
3
[% USE L %]
2 4
<body>
3 5

  
4
 <h1>[% HTML.escape(title) %]</h1>
6
<h1>[% HTML.escape(title) %]</h1>
5 7

  
6
 [% PROCESS 'liquidity_projection/_filter.html' %]
7

  
8
 [%- IF SELF.liquidity %]
9
  <hr>
8
[% PROCESS 'liquidity_projection/_filter.html' %]
10 9

  
10
[% IF SELF.liquidity %]
11 11
  [% PROCESS 'liquidity_projection/_result.html' %]
12
 [% END %]
12
[% END %]
13 13

  
14 14
</body>
15 15
</html>
templates/webpages/login/company_logo.html
1
[%- USE T8 %]
2
[%- USE HTML %][%- USE LxERP %]
3
   <noscript>
4
   [% INCLUDE 'generic/information.html'
1
[% USE T8 %]
2
[% USE HTML %]
3
[% USE LxERP %]
4

  
5
<div class="logged-in">
6
  <noscript>
7
  [% INCLUDE 'generic/information.html'
5 8
     title_information = LxERP.t8('Your browser does not currently support Javascript.'),
6 9
     label_information = LxERP.t8('A lot of the usability of kivitendo has been enhanced with javascript. Although it is currently possible to use every aspect of kivitendo without javascript, we strongly recommend it. In a future version this may change and javascript may be necessary to access advanced features.'),
7
   %]
8
   </noscript>
9
 <center>
10
  <a class="nomobile" href="http://www.kivitendo.de" target="_top"><img src="image/kivitendo[% xmas %].png" class='kivitendo-logo' border="0" alt='[% 'kivitendo' | $T8 %]' title="[% 'kivitendo Homepage' | $T8 %]"></a>
11

  
12
  <h3 class="login">[% 'kivitendo' | $T8 %] [% version %]</h3>
13

  
14
[%- IF git_head %]
15
  <p>[%- LxERP.t8("Git revision: #1, #2 #3", git_head.hash.substr(0, 7), git_head.author_date.to_kivitendo, git_head.author_date.strftime('%H:%M:%S %Z')) %]</p>
16
[%- END %]
17

  
18
  <p>[% 'companylogo_subtitle' | $T8 %]</p>
19
  <p>
20
   <b>
21
    [% HTML.escape(defaults.company) %]
22
    <br>
23
    [% HTML.escape(defaults.address).replace('\\\\n', '<br>').replace('\n', '<br>') %]
24
   </b>
10
  %]
11
  </noscript>
12
  <div class="col" style="width:270px">
13
    <a class="nomobile" href="http://www.kivitendo.de" target="_blank" title="[% 'kivitendo Homepage' | $T8 %] ([% 'Open in new window' | $T8 %])">
14
    <img src="image/kivitendo[% xmas %].png" class="kivitendo-logo" alt="[% 'kivitendo' | $T8 %]"></a>
15
  </div>
16
  <div class="col">
17
    <h3 class="login">[% 'kivitendo' | $T8 %] [% version %]</h3>
25 18

  
26
   <br>
27
   <br>
19
    [% IF git_head %]
20
      <p>[% LxERP.t8("Git revision: #1, #2 #3", git_head.hash.substr(0, 7), git_head.author_date.to_kivitendo, git_head.author_date.strftime('%H:%M:%S %Z')) %]</p>
21
    [% END %]
28 22

  
29
   <table border="0">
30
    <tr>
31
     <th align="left"><a href="am.pl?action=config" title="[% 'Preferences' | $T8 %]">[% 'User' | $T8 %]</a></th>
32
     <td>[% HTML.escape(MYCONFIG.name) %]</td>
33
    </tr>
34
    <tr>
35
     <th align="left">[% IF AUTH.assert('admin', 'may_fail') %]<a href="controller.pl?action=ClientConfig/edit" title="[% 'Client Configuration' | $T8 %]">[% END %][% 'Client' | $T8 %][% IF AUTH.assert('admin', 'may_fail') %]</a>[% END %]</th>
36
     <td>[% HTML.escape(client.name) %]</td>
37
    </tr>
38
    <tr>
39
     <th align="left"><a href="am.pl?action=config" title="[% 'Preferences' | $T8 %]">[% 'Language' | $T8 %]</a></th>
40
     <td>[% HTML.escape(MYCONFIG.countrycode) %]</td>
41
    </tr>
42
    <tr>
43
     <th align="left">[% 'Webserver interface' | $T8 %]</th>
44
     <td>[% HTML.escape(interface) %]</td>
45
    </tr>
46
    <tr class="nomobile">
47
     <th align="left">[% 'kivitendo Homepage' | $T8 %]:</th>
48
     <td><a href="http://kivitendo.de" target="_blank" title="[% 'kivitendo Homepage' | $T8 %]">http://kivitendo.de</a></td>
49
    </tr>
50
   </table>
51
 </center>
23
    <table class="tbl-horizontal">
24
      <tbody>
25
        <tr>
26
          <th>[% 'companylogo_subtitle' | $T8 %]</th>
27
          <td><b>[% HTML.escape(defaults.company) %]<br></b>[% HTML.escape(defaults.address).replace('\\\\n', '<br>').replace('\n', '<br>') %]</td>
28
        </tr>
29
        <tr>
30
          <th><a href="am.pl?action=config" title="[% 'Preferences' | $T8 %]">[% 'User' | $T8 %]</a></th>
31
          <td>[% HTML.escape(MYCONFIG.name) %]</td>
32
        </tr>
33
        <tr>
34
          <th>[% IF AUTH.assert('admin', 'may_fail') %]
35
            <a href="controller.pl?action=ClientConfig/edit" title="[% 'Client Configuration' | $T8 %]">[% END %][% 'Client' | $T8 %][% IF AUTH.assert('admin', 'may_fail') %]</a>[% END %]</th>
36
          <td>[% HTML.escape(client.name) %]</td>
37
        </tr>
38
        <tr>
39
          <th><a href="am.pl?action=config" title="[% 'Preferences' | $T8 %]">[% 'Language' | $T8 %]</a></th>
40
          <td>[% HTML.escape(MYCONFIG.countrycode) %]</td>
41
        </tr>
42
        <tr>
43
          <th>[% 'Webserver interface' | $T8 %]</th>
44
          <td>[% HTML.escape(interface) %]</td>
45
        </tr>
46
        <tr class="nomobile">
47
          <th>[% 'kivitendo Homepage' | $T8 %]:</th>
48
          <td><a href="http://kivitendo.de" target="_blank" title="[% 'kivitendo Homepage' | $T8 %] ,[% 'Open in new window' | $T8 %]">http://kivitendo.de</a></td>
49
        </tr>
50
      </tbody>
51
    </table>
52
  </div>
53
</div>
52 54

  
53
 [%- todo_list %]
55
[% todo_list %]
templates/webpages/login_screen/user_login.html
1
[%- USE T8 %]
2
[%- USE HTML %][%- USE L -%][%- USE LxERP -%]
3
[%- SET auth_client = '{AUTH}client' %]
4
[%- SET auth_login  = '{AUTH}login'  %]
5
 <center>
6
  <table class="login" border="3" cellpadding="20">
7
   <tr>
8
    <td class="login" align="center">
9
     <a href="http://www.kivitendo.de" target="_top" class="no-underlined-links"><img src="image/kivitendo.png" class='kivitendo-logo' border="0"></a>
10
     <h1>[% LxERP.t8('kivitendo v#1', version) %]</h1>
1
[% USE T8 %]
2
[% USE HTML %]
3
[% USE L %]
4
[% USE LxERP %]
5
[% SET auth_client = '{AUTH}client' %]
6
[% SET auth_login  = '{AUTH}login'  %]
7

  
8

  
9
<h1>[% LxERP.t8('kivitendo v#1', version) %]</h1>
10
<div id="login-elements">
11
<div class="logo">
12
  <a href="http://www.kivitendo.de" target="_top" class="no-underlined-links"><img src="image/kivitendo.png" class='kivitendo-logo'></a>
13
</div>
11 14

  
12 15
[% IF error %]
13
     <div class="message_error_login">[% HTML.escape(error) %]</div>
16
  <div class="message message_error">[% HTML.escape(error) %]</div>
14 17
[% END %]
15 18
[% IF warning %]
16
     <div class="message_hint">[% HTML.escape(warning) %]</div>
19
  <div class="message message_hint">[% HTML.escape(warning) %]</div>
17 20
[% END %]
18 21
[% IF info %]
19
     <div class="message_ok">[% HTML.escape(info) %]</div>
22
  <div class="message message_ok">[% HTML.escape(info) %]</div>
20 23
[% END %]
21 24

  
22
[% IF SELF.clients.size %]
23
[%- SET style="width: 250px" %]
24
      <form method="post" name="loginscreen" action="controller.pl" target="_top">
25
<div class="separate-form">
25 26

  
26
       <input type="hidden" name="show_dbupdate_warning" value="1">
27
[% IF SELF.clients.size %]
28
<form method="post" name="loginscreen" action="controller.pl" target="_top">
29
<input type="hidden" name="show_dbupdate_warning" value="1">
27 30

  
28
       <table width="100%">
29
        <tr>
30
         <td align="center">
31
          <table>
32
           <tr>
33
            <th align="right">[% 'Login Name' | $T8 %]</th>
34
            <td>[% L.input_tag('{AUTH}login', FORM.$auth_login, id='auth_login', style=style, class='initial_focus') %]</td>
35
           </tr>
36
           <tr>
37
            <th align="right">[% 'Password' | $T8 %]</th>
38
            <td>[% L.input_tag('{AUTH}password', '', type='password', style=style) %]</td>
39
           </tr>
40
           <tr>
41
            <th align="right">[% 'Client' | $T8 %]</th>
42
            <td>[% L.select_tag('{AUTH}client_id', SELF.clients, title_key='name', default=SELF.default_client_id, style=style) %]</td>
43
           </tr>
44
          </table>
31
<table class="tbl-horizontal login">
32
  <caption>[% 'User login' | $T8 %]</caption>
33
  <colgroup><col class="wi-small"><col class="wi-normal"></colgroup>
34
  <tbody>
35
    <tr>
36
      <th>[% 'Login Name' | $T8 %]</th>
37
      <td>[% L.input_tag('{AUTH}login', FORM.$auth_login, id='auth_login', class='initial_focus wi-normal') %]</td>
38
    </tr>
39
    <tr>
40
      <th>[% 'Password' | $T8 %]</th>
41
      <td>[% L.input_tag('{AUTH}password', '', type='password', class='wi-normal') %]</td>
42
    </tr>
43
    <tr>
44
      <th>[% 'Client' | $T8 %]</th>
45
      <td>[% L.select_tag('{AUTH}client_id', SELF.clients, title_key='name', default=SELF.default_client_id, class='wi-normal') %]</td>
46
    </tr>
47
    <tr>
48
      <th>&nbsp;</th>
49
      <td>
50
      <input type="hidden" name="action" value="LoginScreen/login">
51
      <input type="submit" value="[% 'Login' | $T8 %]">
52
      </td>
53
    </tr>
54
  </tbody>
55
</table>
45 56

  
46
          <br>
47
          <input type="hidden" name="action" value="LoginScreen/login">
48
          <input type="submit" value="[% 'Login' | $T8 %]">
49 57

  
50
         </td>
51
        </tr>
52
       </table>
58
</form>
59
</div><!-- /.separate-form -->
53 60

  
54
      </form>
55
[%- ELSE %]
56
      <p>
57
       [% LxERP.t8("No clients have been created yet.") %]
58
       [% LxERP.t8("Please do so in the administration area.") %]
59
      </p>
61
[% ELSE %]
62
  <p>
63
    [% LxERP.t8("No clients have been created yet.") %]
64
    [% LxERP.t8("Please do so in the administration area.") %]
65
  </p>
66
  <p><a href="controller.pl?action=Admin/login">[% LxERP.t8("Administration area") %]</a></p>
67
[% END %]
60 68

  
61
      <p>
62
       <a href="controller.pl?action=Admin/login">[% LxERP.t8("Administration area") %]</a>
63
      </p>
64
[%- END %]
69
<div>
70
  <p> <a href="controller.pl?action=Admin/login" target="_top">[% LxERP.t8('Administration area') %]</a> &nbsp;|&nbsp; <a href="doc/kivitendo-Dokumentation.pdf" target="_top">[% LxERP.t8('Documentation') %]</a> </p>
71
</div>
65 72

  
66
    </td>
67
   </tr>
68
  </table>
73
</div>
69 74

  
70
  <p>
71
   <a href="controller.pl?action=Admin/login" target="_top">[%- LxERP.t8('Administration area') %]</a>
72
   &nbsp;|&nbsp;
73
   <a href="doc/kivitendo-Dokumentation.pdf" target="_top">[%- LxERP.t8('Documentation') %]</a>
74
  </p>
75 75

  
76 76
[% IF FORM.$auth_client %]
77 77
<script type='text/javascript'>

Auch abrufbar als: Unified diff