Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision ed6e28c9

Von Hans P. Schlaepfer vor fast 4 Jahren hinzugefügt

  • ID ed6e28c9f2726476e61ffc1735cc77d7c03c1e57
  • Vorgänger 09e950a5
  • Nachfolger 71938d4e

Neues Design 2019 Standard-Code templates/webpages/gl/

Unterschiede anzeigen:

templates/webpages/gl/form_header.html
21 21
<form method="post" name="gl" action="gl.pl" id="form">
22 22

  
23 23
[% FOREACH name IN [ 'id', 'closedto', 'locked', 'storno', 'storno_id', 'previous_id', 'previous_gldate' ] %]
24
[% L.hidden_tag(name, $name) %]
25
[%- END %]
24
  [% L.hidden_tag(name, $name) %]
25
[% END %]
26 26

  
27 27
<input type=hidden name=title value="[% hide_title | html %]">
28 28

  
......
32 32
<input type="hidden" name="follow_up_rowcount" value="1">
33 33

  
34 34
<div id="ir_tabs" class="tabwidget">
35
 <ul>
35

  
36
<ul>
36 37
  <li><a href="#ui-tabs-basic-data">[% 'Basic Data' | $T8 %]</a></li>
37
[%- IF INSTANCE_CONF.get_webdav %]
38
  <li><a href="#ui-tabs-webdav">[% 'WebDAV' | $T8 %]</a></li>
39
[%- END %]
40
[%- IF id %]
41
[%- IF INSTANCE_CONF.get_doc_storage %]
42
  <li><a href="controller.pl?action=File/list&file_type=document&object_type=gl_transaction&object_id=[% HTML.url(id) %]">[% 'Documents' | $T8 %]</a></li>
43
  <li><a href="controller.pl?action=File/list&file_type=attachment&object_type=gl_transaction&object_id=[% HTML.url(id) %]">[% 'Attachments' | $T8 %]</a></li>
44
[%- END %]
45
[%- END %]
46
 </ul>
47
 <div id="ui-tabs-basic-data">
48

  
49
<table width=100%>
50
[%- IF saved_message %]
51
  <tr>
52
    <td>[% saved_message | html %]</th>
53
  </tr>
54
[%- END %]
55

  
56
  <tr height="5"></tr>
57
  <tr>
58
    <td>
59
      <table>
60
        <tr>
61
          <td colspan="6" align="left">[% 'Previous transnumber text' | $T8 %] [% previous_id  %] . [% 'Previous transdate text' | $T8 %] [% previous_gldate %]</td>
62
        </tr>
63
        <tr>
64
          <th align="right">[% 'Reference' | $T8 %]</th>
65
          <td>[% L.input_tag('reference', reference,  size=20, readonly=readonly) %]</td>
66
          <th align="right">[% 'Transdate' | $T8 %]</th>
67
          <td>[% L.date_tag('transdate', transdate, readonly=readonly) %]</td>
68
        </tr>
69
[%- IF id %]
70
        <tr>
71
          <th align="right">[% 'ID' | $T8 %]</th>
72
          <td>[% L.input_tag('id', id,  size=20, readonly=readonly) %]</td>
73
          <th align="right">[% 'Gldate' | $T8 %]</th>
74
          <td>[% L.date_tag('gldate', gldate, readonly=1) %]<img class="ui-datepicker-trigger" src="image/calendar.png" alt="..." title="..." style='visibility:hidden'></td>
75
        </tr>
76
[%- END %]
77

  
78
        [% SET departments_style = "";
79
           SET departments_style = "style='visibility:hidden'" IF ALL_DEPARTMENTS.size == 0 %]
80
        <tr>
81
          <th [%- departments_style -%]align="right">[% 'Department' | $T8 %]</th>
82
          <td [%- departments_style -%]>[% L.select_tag('department_id', ALL_DEPARTMENTS, default = department_id, title_key = 'description', with_empty = 1) %]</td>
83
          <th align=right>[% 'Tax point' | $T8 %]</th>
84
          <td>[% L.date_tag('tax_point', tax_point) %]</td>
85
        </tr>
86
        <tr>
87
          <th align="right">[% 'Description' | $T8 %]</th>
88
          <td>[% L.areainput_tag('description', description, cols=50, readonly=readonly) %]</td>
89
          <th align=right>[% 'Delivery Date' | $T8 %]</th>
90
          <td>[% L.date_tag('deliverydate', deliverydate) %]</td>
91
        </tr>
92
        <tr>
93
          <th align="right">[%- IF id %][% 'Mitarbeiter' | $T8 %][% END %]</th>
94
          <td>[%- IF id %][% L.input_tag('employee', employee, size=20, readonly=readonly) %][% END %]</td>
95
          <th align="right">[% 'MwSt. inkl.' | $T8 %]</th>
96
          <td>[% L.checkbox_tag('taxincluded', checked=taxincluded) %]</td>
97
        </tr>
98

  
99
      <tr>
100
       <td colspan=4>
101
         [% 'OB Transaction' | $T8 %] [% L.checkbox_tag('ob_transaction' checked=ob_transaction) %]
102
         [% 'CB Transaction' | $T8 %] [% L.checkbox_tag('cb_transaction' checked=cb_transaction) %]
103
       </td>
104
      </tr>
105
      <tr>
106
       <td width="1%" align="right" nowrap>[% 'Show details' | $T8 %]</td>
107
       <td width="1%">[% L.checkbox_tag('show_details', checked=show_details, onclick='show_form_details();') %]</td>
108
      </tr>
109

  
110
      <tr>
111
      <td colspan=4>
112
          <table width=100%>
113
           <tr class=listheading>
114
          <th class=listheading style="width:15%">[% 'Account' | $T8 %]</th>
115
          <th class=listheading style="width:10%">[% 'Chart balance' | $T8 %]</th>
116
          <th class=listheading style="width:10%">[% 'Debit' | $T8 %]</th>
117
          <th class=listheading style="width:10%">[% 'Credit' | $T8 %]</th>
118
          <th class=listheading style="width:10%">[% 'Tax' | $T8 %]</th>
119
          <th class=listheading style="width:5%">[% 'Taxkey' | $T8 %]</th>
120

  
121
[%- IF show_details %]
122
          <th class=listheading style="width:20%">[% 'Source' | $T8 %]</th>
123
          <th class=listheading style="width:20%">[% 'Memo' | $T8 %]</th>
124
          <th class=listheading style="width:20%">[% 'Project Number' | $T8 %]</th>
125
[%- END %]
126

  
127
        </tr>
38
  [% IF INSTANCE_CONF.get_webdav %]
39
    <li><a href="#ui-tabs-webdav">[% 'WebDAV' | $T8 %]</a></li>
40
  [% END %]
41
  [% IF id %]
42
    [% IF INSTANCE_CONF.get_doc_storage %]
43
      <li><a href="controller.pl?action=File/list&file_type=document&object_type=gl_transaction&object_id=[% HTML.url(id) %]">[% 'Documents' | $T8 %]</a></li>
44
      <li><a href="controller.pl?action=File/list&file_type=attachment&object_type=gl_transaction&object_id=[% HTML.url(id) %]">[% 'Attachments' | $T8 %]</a></li>
45
    [% END %]
46
  [% END %]
47
</ul>
48

  
49
<div id="ui-tabs-basic-data">
50
[% INCLUDE 'common/flash.html' %][% # PENDENT: SOLL DAS AUCH IN DEN ANDEREN TABS STEHEN? WIRD SCHWIERIG ZUM CSS-PLAZIEREN %]
51

  
52
<div class="wrapper">
53

  
54
[% IF saved_message %]
55
  <div class="message">[% saved_message | html %]</div>
56
[% END %]
57

  
58
[% IF previous_id %]
59
  <div class="message message_hint">
60
    [% 'Previous transnumber text' | $T8 %] <b>[% previous_id %]</b> [% 'Previous transdate text' | $T8 %] <b>[% previous_gldate %] </b>
61
  </div>
62
[% END %]
63

  
64
</div><!-- /.wrapper -->
65

  
66
<div class="wrapper">
67

  
68
<table class="tbl-horizontal">
69
  <tbody>
70
    <tr>
71
      <th>[% 'Reference' | $T8 %]</th>
72
      <td>[% L.input_tag('reference', reference, class='wi-wide', readonly=readonly) %]</td>
73
    </tr>
74
    <tr>
75
      <th>[% 'Transdate' | $T8 %]</th>
76
      <td>[% L.date_tag('transdate', transdate, readonly=readonly) %]</td>
77
    </tr>
78
    [% IF id %]
79
    <tr>
80
      <th>[% 'ID' | $T8 %]</th>
81
      <td>[% L.input_tag('id', id, class="wi-small", readonly=readonly) %]</td>
82
    </tr>
83
    <tr>
84
      <th>[% 'Gldate' | $T8 %]</th>
85
      [%-# hidden img to keep alignment -%]
86
      <td>[% L.date_tag('gldate', gldate, readonly=1) %]<img class="ui-datepicker-trigger" src="image/calendar.png" alt="..." title="..." style='visibility:hidden'></td>
87
    </tr>
88
    [% END %]
89
    <tr>
90
      <th>[% 'Tax point' | $T8 %]</th>
91
      <td>[% L.date_tag('tax_point', tax_point) %]</td>
92
    </tr>
93
    [% SET departments_style = "";
94
       SET departments_style = "style='visibility:hidden'" IF ALL_DEPARTMENTS.size == 0 %]
95
    <tr>
96
      <th [%- departments_style -%]>[% 'Department' | $T8 %]</th>
97
      <td [%- departments_style -%]>[% L.select_tag('department_id', ALL_DEPARTMENTS, default=department_id, title_key='description', with_empty=1, class='wi-wide') %]</td>
98
    </tr>
99

  
100
    <tr>
101
      <th>[% 'Description' | $T8 %]</th>
102
      <td class="wi-wide">[% L.areainput_tag('description', description, readonly=readonly, cols=10, class='wi-wide') %]</td>
103
    </tr>
104
    <tr>
105
      <th class="right" width="50%" nowrap>[% 'Delivery Date' | $T8 %]</th>
106
      <td class="left">[% L.date_tag('deliverydate', deliverydate) %]</td>
107
    </tr>
108
    <tr>
109
      <th>[%- IF id %][% 'Mitarbeiter' | $T8 %][% END %]</th>
110
      <td>[%- IF id %][% L.input_tag('employee', employee, class='wi-normal', readonly=readonly, class='wi-wide') %][% END %]</td>
111
      <th>[% 'MwSt. inkl.' | $T8 %]</th>
112
      <td>[% L.checkbox_tag('taxincluded', checked=taxincluded) %]</td>
113
    </tr>
114
  </tbody>
115
</table>
116

  
117
<table class="tbl-horizontal">
118
  <tbody>
119
    <tr>
120
      <th>
121
        <span class="label above">[% 'Optional Transaction Type' | $T8 %]</span>
122
        <label for="ob_transaction">[% L.checkbox_tag('ob_transaction' checked=ob_transaction) %] [% 'CB Transaction' | $T8 %]</label> <br>
123
        <label for="cb_transaction">[% L.checkbox_tag('cb_transaction' checked=cb_transaction) %] [% 'OB Transaction' | $T8 %]</label>
124
      </th>
125
    </tr>
126
  </tbody>
127
</table>
128

  
129
</div><!-- /.wrapper -->
130
<div class="wrapper">
131

  
132
<div class="buttons positions">
133
  <label class="button neutral" for="show_details">[% IF show_details %][% 'Hide details' | $T8 %][% ELSE %][% 'Show details' | $T8 %][% END %]</label>
134
  [% L.checkbox_tag('show_details', checked=show_details, onclick='show_form_details();', style='display:none') %]
135
</div>
136

  
137
<table class="tbl-list wi-moderate">
138
  <caption>[% 'Transaction' | $T8 %]</caption>
139
  <thead>
140
    <tr>
141
      <th>[% 'Account' | $T8 %]</th>
142
      <th class="right">[% 'Chart balance' | $T8 %]</th>
143
      <th class="right">[% 'Debit' | $T8 %]</th>
144
      <th class="right">[% 'Credit' | $T8 %]</th>
145
      <th class="right">[% 'Tax' | $T8 %]</th>
146
      <th>[% 'Taxkey' | $T8 %]</th>
147
      [% IF show_details %]
148
        <th>[% 'Source' | $T8 %]</th>
149
        <th>[% 'Memo' | $T8 %]</th>
150
        <th>[% 'Project Number' | $T8 %]</th>
151
      [% END %]
152
    </tr>
153
  </thead>
154
  <tbody>
templates/webpages/gl/generate_report_bottom.html
1 1
[% USE HTML %]
2 2
<form method="post" id="create_new_form" action="gl.pl">
3
 <input name="callback" type="hidden" value="[% HTML.escape(callback) %]">
3
  <input name="callback" type="hidden" value="[% HTML.escape(callback) %]">
4 4
</form>
templates/webpages/gl/search.html
4 4
[% USE L %]
5 5
<h1>[% 'Journal' | $T8 %]</h1>
6 6

  
7
<form method=post id="form" action=gl.pl>
7
<form method="post" id="form" action="gl.pl">
8 8

  
9
<input type=hidden name=sort value=datesort>
9
<input type="hidden" name="sort" value="datesort">
10 10

  
11
<table width=100%>
12
  <tr>
13
    <td>
14
      <table>
15
        <tr>
16
          <th align=right>[% 'Reference / Invoice Number' | $T8 %]</th>
17
          <td><input name="reference" size="20" class="initial_focus"></td>
18
          <th align=right>[% 'Source' | $T8 %]</th>
19
          <td><input name=source size=20></td>
20
        </tr>
21
        [%- IF ALL_DEPARTMENTS %]
22
        <tr>
23
          <th align=right nowrap>[% 'Department' | $T8 %]</th>
24
          <td colspan=3>[% L.select_tag('department_id', ALL_DEPARTMENTS, title_key = 'description', with_empty = 1) %]</td>
25
        </tr>
26
        [%- END %]
27
        <tr>
28
          <th align=right>[% 'Description' | $T8 %]</th>
29
          <td><input name=description size=40></td>
30
          <th align=right>[% 'Account Number' | $T8 %]</th>
31
          <td><input name=accno size=20></td>
32
        </tr>
33
        <tr>
34
          <th align=right>[% 'Notes' | $T8 %]</th>
35
          <td colspan=3><input name=notes size=40></td>
36
        </tr>
37
        <tr>
38
          <th align=right>[% 'Project Number' | $T8 %]</th>
39
          <td colspan=3>[% L.select_tag('project_id', ALL_PROJECTS, title_key = 'projectnumber', with_empty = 1) %]</td>
40
        </tr>
41
 <tr>
42
    <th align=right>[% 'Employee' | $T8 %]</th>
43
    <td colspan=3>[% L.select_tag('employee_id', ALL_EMPLOYEES, title_key = 'safe_name', with_empty = 1) %]</td>
44
  </tr>
45
  <tr>
46
    <th align=right>[% 'Filter date by' | $T8 %]</th>
47
    <td colspan=3>
48
    <input name=datesort class=radio type=radio value=transdate checked> [% 'Transdate' | $T8 %]
49
    <input name=datesort class=radio type=radio value=gldate> [% 'Gldate' | $T8 %]
50
  </td>
51
  </tr>
52
  <tr>
53
    <th align=right>[% 'From' | $T8 %]</th>
54
          <td>[% L.date_tag('datefrom') %]</td>
55
          <th align=right>[% 'To (time)' | $T8 %]</th>
56
          <td>[% L.date_tag('dateto') %]</td>
57
        </tr>
58
        <tr>
59
          <th align=right>[% 'Include in Report' | $T8 %]</th>
60
          <td colspan=3>
61
            <table>
62
              <tr>
63
                <td>
64
                  <input name="category" class=radio type=radio value=X checked> [% 'All' | $T8 %]
65
                  <input name="category" class=radio type=radio value=A> [% 'Asset' | $T8 %]
66
                  <input name="category" class=radio type=radio value=L> [% 'Liability' | $T8 %]
67
                  <input name="category" class=radio type=radio value=I> [% 'Revenue' | $T8 %]
68
                  <input name="category" class=radio type=radio value=E> [% 'Expense' | $T8 %]
69
                </td>
70
              </tr>
71
              <tr>
72
                <table>
73
                  <tr>
74
                    <td align=right><input name="l_id" class=checkbox type=checkbox value=Y></td>
75
                    <td>[% 'ID' | $T8 %]</td>
76
                    <td align=right><input name="l_transdate" class=checkbox type=checkbox value=Y checked></td>
77
                    <td>[% 'Transdate' | $T8 %]</td>
78
                    <td align=right><input name="l_gldate" class=checkbox type=checkbox value=Y checked></td>
79
                    <td>[% 'Gldate' | $T8 %]</td>
80
                    <td align=right><input name="l_reference" class=checkbox type=checkbox value=Y checked></td>
81
                    <td>[% 'Reference' | $T8 %]</td>
82
                    <td align=right><input name="l_description" class=checkbox type=checkbox value=Y checked></td>
83
                    <td>[% 'Description' | $T8 %]</td>
84
                    <td align=right><input name="l_notes" class=checkbox type=checkbox value=Y></td>
85
                    <td>[% 'Notes' | $T8 %]</td>
86
                  </tr>
87
                  <tr>
88
                    <td align=right><input name="l_debit" class=checkbox type=checkbox value=Y checked></td>
89
                    <td>[% 'Debit' | $T8 %]</td>
90
                    <td align=right><input name="l_credit" class=checkbox type=checkbox value=Y checked></td>
91
                    <td>[% 'Credit' | $T8 %]</td>
92
                    <td align=right><input name="l_source" class=checkbox type=checkbox value=Y checked></td>
93
                    <td>[% 'Source' | $T8 %]</td>
94
                    <td align=right><input name="l_accno" class=checkbox type=checkbox value=Y checked></td>
95
                    <td>[% 'Account' | $T8 %]</td>
96
                    [%- IF ALL_DEPARTMENTS %]
97
                      <td align=right><input name="l_department" class=checkbox type=checkbox value=Y></td>
98
                      <td>[% 'Department' | $T8 %]</td>
99
                    [%- END %]
100
                  </tr>
101
                  <tr>
102
                    <td align=right><input name="l_projectnumbers" class=checkbox type=checkbox value=Y></td>
103
                    <td>[% 'Project Number' | $T8 %]</td>
104
                    <td align=right><input name="l_employee" class=checkbox type=checkbox value=Y></td>
105
                    <td>[% 'Employee' | $T8 %]</td>
106
                  </tr>
107
                  <tr>
108
                    <td align=right><input name="l_subtotal" class=checkbox type=checkbox value=Y></td>
109
                    <td>[% 'Subtotal' | $T8 %]</td>
110
                  </tr>
111
                </table>
112
              </tr>
113
            </table>
114
        </tr>
115
      </table>
116
    </td>
117
  </tr>
11
<div class="wrapper">
12

  
13
<table class="tbl-horizontal">
14
  <tbody>
15
    <tr>
16
      <th>[% 'Reference / Invoice Number' | $T8 %]</th>
17
      <td><input name="reference" class="wi-normal initial_focus" type="text"></td>
18
    </tr>
19
    <tr>
20
      <th>[% 'Source' | $T8 %]</th>
21
      <td><input name="source" class="wi-normal" type="text"></td>
22
    </tr>
23
    [% IF ALL_DEPARTMENTS %]
24
    <tr>
25
      <th>[% 'Department' | $T8 %]</th>
26
      <td>[% L.select_tag('department_id', ALL_DEPARTMENTS, title_key='description', with_empty=1, class='wi-normal') %]</td>
27
    </tr>
28
    [% END %]
29
    <tr>
30
      <th>[% 'Description' | $T8 %]</th>
31
      <td><input name="description" class="wi-normal" type="text"></td>
32
    </tr>
33
    <tr>
34
      <th>[% 'Account Number' | $T8 %]</th>
35
      <td><input name="accno" class="wi-normal" type="text"></td>
36
    </tr>
37
    <tr>
38
      <th>[% 'Notes' | $T8 %]</th>
39
      <td><input name="notes" class="wi-normal" type="text"></td>
40
    </tr>
41
    <tr>
42
      <th>[% 'Project Number' | $T8 %]</th>
43
      <td>[% L.select_tag('project_id', ALL_PROJECTS, title_key='projectnumber', with_empty=1, class='wi-normal') %]</td>
44
    </tr>
45
    <tr>
46
      <th>[% 'Employee' | $T8 %]</th>
47
      <td>[% L.select_tag('employee_id', ALL_EMPLOYEES, title_key='safe_name', with_empty=1, class='wi-normal') %]</td>
48
    </tr>
49
    <tr>
50
      <th>[% 'Filter date by' | $T8 %]</th>
51
      <td>
52
        <input name="datesort" type="radio" value="transdate" checked> [% 'Transdate' | $T8 %] <br>
53
        <input name="datesort" type="radio" value="gldate"> [%            'Gldate'    | $T8 %]</td>
54
    </tr>
55
    <tr>
56
      <th>[% 'From' | $T8 %]</th>
57
      <td>[% L.date_tag('datefrom') %] [% 'To (time)' | $T8 %] [% L.date_tag('dateto') %]</td>
58
    </tr>
59
  </tbody>
118 60
</table>
61

  
62
</div><!-- /.wrapper -->
63

  
64
<div class="wrapper form-addition control-panel">
65
  <h3>[% 'Include in Report' | $T8 %]</h3>
66
  <div class="list col">
67
    <h4 class="caption">[% 'Scope' | $T8 %]</h4>
68
    <div>
69
      <input name="category" type="radio" value="X" checked> [% 'All' | $T8 %]
70
    </div>
71
    <div>
72
      <input name="category" type="radio" value="A"> [% 'Asset' | $T8 %]
73
    </div>
74
    <div>
75
      <input name="category" type="radio" value="L"> [% 'Liability' | $T8 %]
76
    </div>
77
    <div>
78
      <input name="category" type="radio" value="I"> [% 'Revenue' | $T8 %]
79
    </div>
80
    <div>
81
      <input name="category" type="radio" value="E"> [% 'Expense' | $T8 %]
82
    </div>
83
  </div>
84
  <div class="list col">
85
    <h4>[% 'Transaction Details' | $T8 %]</h4>
86
    <div>
87
      <input name="l_transdate" type="checkbox" value="Y" checked> [% 'Transdate' | $T8 %]
88
    </div>
89
    <div>
90
      <input name="l_gldate" type="checkbox" value="Y" checked> [% 'Gldate' | $T8 %]
91
    </div>
92
    <div>
93
      <input name="l_id" type="checkbox" value="Y"> [% 'ID' | $T8 %]
94
    </div>
95
    <div>
96
      <input name="l_reference" type="checkbox" value="Y" checked> [% 'Reference' | $T8 %]
97
    </div>
98
    <div>
99
      <input name="l_source" type="checkbox" value="Y" checked> [% 'Source' | $T8 %]
100
    </div>
101
    <div>
102
      <input name="l_description" type="checkbox" value="Y" checked> [% 'Description' | $T8 %]
103
    </div>
104
    <div>
105
      <input name="l_notes" type="checkbox" value="Y"> [% 'Notes' | $T8 %]
106
    </div>
107
  </div>
108
  <div class="list col">
109
    <h4>[% 'Accounts' | $T8 %] & [% 'Sum' | $T8 %]</h4>
110
    <div>
111
      <input name="l_debit" type="checkbox" value="Y" checked> [% 'Debit' | $T8 %]
112
    </div>
113
    <div>
114
      <input name="l_credit" type="checkbox" value="Y" checked> [% 'Credit' | $T8 %]
115
    </div>
116
    <div>
117
      <input name="l_accno" type="checkbox" value="Y" checked> [% 'Account' | $T8 %]
118
    </div>
119
    <div>
120
      <input name="l_subtotal" type="checkbox" value="Y"> [% 'Subtotal' | $T8 %]
121
    </div>
122
  </div>
123
  <div class="list col">
124
    <h4>[% 'Divers' | $T8 %]</h4>
125
    <div>
126
      <input name="l_projectnumbers" type="checkbox" value="Y"> [% 'Project Number' | $T8 %]
127
    </div>
128
    <div>
129
      <input name="l_employee" type="checkbox" value="Y"> [% 'Employee' | $T8 %]
130
    </div>
131
    [%- IF ALL_DEPARTMENTS %]
132
      <div>
133
        <input name="l_department" class=checkbox type=checkbox value=Y> [% 'Department' | $T8 %]
134
      </div>
135
    [%- END %]
136
  </div>
137
</div>
138
<!-- /.wrapper.form-addition -->
139

  
140

  
119 141
</form>

Auch abrufbar als: Unified diff