Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 9684230e

Von Hans Peter Schlaepfer vor etwa 5 Jahren hinzugefügt

  • ID 9684230e49fedf374dce6768a87aef4ac0aa75e4
  • Vorgänger 394f67b5
  • Nachfolger 0d009fe6

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

Unterschiede anzeigen:

templates/webpages/gl/form_header.html
1
[%- USE HTML %]
2
[%- USE LxERP %]
3
[%- USE T8 %]
4
[%- USE L %]
1
[% USE HTML %]
2
[% USE LxERP %]
3
[% USE T8 %]
4
[% USE L %]
5 5
<h1>[% title | html %]</h1>
6 6

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

  
9
<script type="text/javascript">
10
  <!--
7
<script type="text/javascript"><!--
11 8
  function copy_debit_to_credit() {
12 9
    var txt = document.getElementsByName('debit_1')[0].value;
13 10
    document.getElementsByName('credit_2')[0].value = txt;
14 11
  };
15
  //-->
16
  </script>
17
  <script type="text/javascript" src="js/show_form_details.js"></script>
12
  //--></script>
13
<script type="text/javascript" src="js/show_form_details.js"></script>
18 14
<script type="text/javascript" src="js/follow_up.js"></script>
19 15
<script type="text/javascript" src="js/kivi.Draft.js"></script>
20 16

  
21 17
<form method="post" name="gl" action="gl.pl" id="form">
22 18

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

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

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

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

  
32
<ul>
36 33
  <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 width=100%>
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
          <td align=left>
67
            <table>
68
              <tr>
69
                <th align=right width=50% nowrap>[% 'Transdate' | $T8 %]</th>
70
                <td>[% L.date_tag('transdate', transdate, readonly=readonly) %]</td>
71
              </tr>
72
            </table>
73
          </td>
74
        </tr>
75
[%- IF id %]
76
        <tr>
77
          <th align=right>[% 'ID' | $T8 %]</th>
78
          <td>[% L.input_tag('id', id,  size=20, readonly=readonly) %]</td>
79
          <td align=left>
80
          <table>
81
              <tr>
82
                <th align=right width=50%>[% 'Gldate' | $T8 %]</th>
83
                <td align=left>[% L.date_tag('gldate', gldate, readonly=1) %]</td>
84
              </tr>
85
            </table>
86
          </td>
87
        </tr>
88
[%- END %]
89

  
90
[%- IF ALL_DEPARTMENTS %]
91
        <tr>
92
          <th align=right nowrap>[% 'Department' | $T8 %]</th>
93
          <td>[% L.select_tag('department_id', ALL_DEPARTMENTS, default = department_id, title_key = 'description', with_empty = 1) %]</td>
94
        </tr>
95
[%- END %]
96

  
97
        <tr>
98
          <th align=right width=1%>[% 'Description' | $T8 %]</th>
99
          <td width=1%>[% L.areainput_tag('description', description, cols=50, readonly=readonly) %]</td>
100
          <td>
101
            <table>
102
              <tr>
103
                <th align=left>[% 'MwSt. inkl.' | $T8 %]</th>
104
                <td>[% L.checkbox_tag('taxincluded', checked=taxincluded) %]</td>
105
              </tr>
106
            </table>
107
         </td>
108
[%- IF id %]
109
          <td align=left>
110
            <table width=100%>
111
              <tr>
112
                <th align=right width=50%>[% 'Mitarbeiter' | $T8 %]</th>
113
                <td align=left>[% L.input_tag('employee', employee, size=20, readonly=readonly) %]</td>
114
              </tr>
115
            </table>
116
          </td>
117
[%- END %]
118
        </tr>
119

  
120
      <tr>
121
       <td colspan=4>
122
        <table>
123
         <tr>
124
          <td>[% 'OB Transaction' | $T8 %] [% L.checkbox_tag('ob_transaction' checked=ob_transaction) %]</td>
125
          <td>[% 'CB Transaction' | $T8 %] [% L.checkbox_tag('cb_transaction' checked=cb_transaction) %]</td>
126
         </tr>
127
        </table>
128
       </td>
129
      </tr>
130
      <tr>
131
       <td width="1%" align="right" nowrap>[% 'Show details' | $T8 %]</td>
132
       <td width="1%">[% L.checkbox_tag('show_details', checked=show_details, onclick='show_form_details();') %]</td>
133
      </tr>
134

  
135
      <tr>
136
      <td colspan=4>
137
          <table width=100%>
138
           <tr class=listheading>
139
          <th class=listheading style="width:15%">[% 'Account' | $T8 %]</th>
140
          <th class=listheading style="width:10%">[% 'Chart balance' | $T8 %]</th>
141
          <th class=listheading style="width:10%">[% 'Debit' | $T8 %]</th>
142
          <th class=listheading style="width:10%">[% 'Credit' | $T8 %]</th>
143
          <th class=listheading style="width:10%">[% 'Tax' | $T8 %]</th>
144
          <th class=listheading style="width:5%">[% 'Taxkey' | $T8 %]</th>
145

  
146
[%- IF show_details %]
147
          <th class=listheading style="width:20%">[% 'Source' | $T8 %]</th>
148
          <th class=listheading style="width:20%">[% 'Memo' | $T8 %]</th>
149
          <th class=listheading style="width:20%">[% 'Project Number' | $T8 %]</th>
150
[%- END %]
151

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

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

  
48
<div class="wrapper">
49

  
50
[% IF saved_message %]
51
  <div class="message">[% saved_message | html %]</div>
52
[% END %]
53

  
54
[% IF previous_id %]
55
  <div class="message message_hint">
56
    [% 'Previous transnumber text' | $T8 %] <b>[% previous_id %]</b> [% 'Previous transdate text' | $T8 %] <b>[% previous_gldate %] </b>
57
  </div>
58
[% END %]
59

  
60
</div><!-- /.wrapper -->
61

  
62
<div class="wrapper">
63

  
64
<table class="tbl-horizontal">
65
  <tbody>
66
    <tr>
67
      <th>[% 'Reference' | $T8 %]</th>
68
      <td>[% L.input_tag('reference', reference, class='wi-wide', readonly=readonly) %]</td>
69
    </tr>
70
    <tr>
71
      <th>[% 'Transdate' | $T8 %]</th>
72
      <td>[% L.date_tag('transdate', transdate, readonly=readonly) %]</td>
73
    </tr>
74
    [% IF id %]
75
    <tr>
76
      <th>[% 'ID' | $T8 %]</th>
77
      <td>[% L.input_tag('id', id, class="wi-small", readonly=readonly) %]</td>
78
    </tr>
79
    <tr>
80
      <th>[% 'Gldate' | $T8 %]</th>
81
      <td>[% L.date_tag('gldate', gldate, readonly=1) %]</td>
82
    </tr>
83
    [% END %]
84
    [% IF ALL_DEPARTMENTS %]
85
    <tr>
86
      <th>[% 'Department' | $T8 %]</th>
87
      <td>[% L.select_tag('department_id', ALL_DEPARTMENTS, default=department_id, title_key='description', with_empty=1, class='wi-wide') %]</td>
88
    </tr>
89
    [% END %]
90
    <tr>
91
      <th>[% 'Description' | $T8 %]</th>
92
      <td class="wi-wide">[% L.areainput_tag('description', description, readonly=readonly, cols=10, class='wi-wide') %]</td>
93
    </tr>
94
    <tr>
95
      <th><label for="taxincluded">[% 'MwSt. inkl.' | $T8 %]</label></th>
96
      <td>[% L.checkbox_tag('taxincluded', checked=taxincluded) %]</td>
97
    </tr>
98
    [% IF id %]
99
    <tr>
100
      <th>[% 'Mitarbeiter' | $T8 %]</th>
101
      <td>[% L.input_tag('employee', employee, class='wi-normal', readonly=readonly, class='wi-wide') %]</td>
102
    </tr>
103
    [% END %]
104
  </tbody>
105
</table>
106

  
107
<table class="tbl-horizontal">
108
  <tbody>
109
    <tr>
110
      <th>
111
        <span class="label above">[% 'Optional Transaction Type' | $T8 %]</span>
112
        <label for="ob_transaction">[% L.checkbox_tag('ob_transaction' checked=ob_transaction) %] [% 'CB Transaction' | $T8 %]</label> <br>
113
        <label for="cb_transaction">[% L.checkbox_tag('cb_transaction' checked=cb_transaction) %] [% 'OB Transaction' | $T8 %]</label>
114
      </th>
115
    </tr>
116
  </tbody>
117
</table>
118

  
119
</div><!-- /.wrapper -->
120
<div class="wrapper">
121

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

  
127
<table class="tbl-list wi-moderate">
128
  <caption>[% 'Transaction' | $T8 %]</caption>
129
  <thead>
130
    <tr>
131
      <th>[% 'Account' | $T8 %]</th>
132
      <th class="right">[% 'Chart balance' | $T8 %]</th>
133
      <th class="right">[% 'Debit' | $T8 %]</th>
134
      <th class="right">[% 'Credit' | $T8 %]</th>
135
      <th class="right">[% 'Tax' | $T8 %]</th>
136
      <th>[% 'Taxkey' | $T8 %]</th>
137
      [% IF show_details %]
138
        <th>[% 'Source' | $T8 %]</th>
139
        <th>[% 'Memo' | $T8 %]</th>
140
        <th>[% 'Project Number' | $T8 %]</th>
141
      [% END %]
142
    </tr>
143
  </thead>
144
  <tbody>

Auch abrufbar als: Unified diff