Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision f55e65a2

Von Hans Peter Schlaepfer vor fast 6 Jahren hinzugefügt

  • ID f55e65a21a6ee5afeb7165f3ba22cf2905a6a8b9
  • Vorgänger 3ed7d9a6
  • Nachfolger 1db867eb

Neues kivitendo Design Aenderungen in templates/webpages/generic*

Dateien in generic/* und generictranslations/*

Unterschiede anzeigen:

templates/webpages/generic/calculate_qty.html
1
[%- USE T8 %]
2
[%- USE HTML %]
3
 <form name="CalcQtyForm" id="calc_qty_form_id">
1
[% USE T8 %]
2
[% USE HTML %]
4 3

  
5
  <input type="hidden" name="input_name" value="[% HTML.escape(input_name) %]">
6
  <input type="hidden" name="input_id"   value="[% HTML.escape(input_id) %]">
4
<form name="CalcQtyForm" id="calc_qty_form_id">
7 5

  
8
  <table width="100%">
9
   <tr><td>[% 'Please insert object dimensions below.' | $T8 %]</td></tr>
6
<!-- <h1>[% #title %]</h1> --><!-- PENDENT: wieso wurde das entfernt? Braucht es hier keinen Titel? -->
10 7

  
11
   <tr>
12
    <td>
8
<input type="hidden" name="input_name" value="[% HTML.escape(input_name) %]">
9
<input type="hidden" name="input_id" value="[% HTML.escape(input_id) %]">
13 10

  
14
     <table>
15
      <tr class="listheading">
11
<table class="tbl-list">
12
  <caption>[% 'Please insert object dimensions below.' | $T8 %]</caption>
13
  <thead>
14
     <tr>
16 15
       [% FOREACH col = HEADER %]
17
        <th nowrap class="listheading">[% col.column_title %]</a></th>
16
         <th>[% col.column_title %]</a></th>
18 17
       [% END %]
18
     </tr>
19
  </thead>
20
  <tbody>
21
    [% FOREACH row = VARIABLES %]
22
      <tr class="listrow[% loop.count % 2 %]">
23
        <td>[% HTML.escape(row.description) %]:</td><td><input type="text" id="[% row.name %]" name="[% row.name %]" value=""></td>
24
        <td>[% HTML.escape(row.unit) %]</td>
19 25
      </tr>
26
    [% END %]
27
  </tbody>
28
</table>
20 29

  
21
      [% FOREACH row = VARIABLES %]
22
       <tr class="listrow[% loop.count % 2 %]">
23
        <td>[% HTML.escape(row.description) %]:</td><td><input id="[% row.name %]" name="[% row.name %]" value=""></td>
24
        <td>[% HTML.escape(row.unit) %]</td>
25
       </tr>
26
      [% END %]
27
     </table>
30
<div class="buttons">
31
  <button type="button" onclick="calculate_qty()">[% 'Calculate' | $T8 %]</button>
32
</div>
33

  
34
</form>
35

  
36
<script type="text/javascript">
28 37

  
29
    </td>
30
   </tr>
31
  </table>
32
 <button type="button" onclick="calculate_qty()">[% 'Calculate' | $T8 %]</button>
33
 </form>
38
  function calculate_qty() {
34 39

  
35
 <script type="text/javascript">
36
   function calculate_qty() {
37
[%- FOREACH row = VARIABLES %]
38
     var [% row.name %] = parse_amount('[% MYCONFIG.numberformat %]', $('#calc_qty_form_id #[% row.name %]').val());
39
[%- END %]
40
    [% FOREACH row = VARIABLES %]
41
      var [% row.name %] = parse_amount('[% MYCONFIG.numberformat %]', $('#calc_qty_form_id #[% row.name %]').val());
42
    [% END %]
40 43
     var result = [% formel %];
41 44
     result = number_format(result, 2, '[% MYCONFIG.numberformat %]');
45
     /* Every Element should be assigned by ID and not with NAME, modern Browsers handle that since 2006 or a bit later */
42 46
     if (document.CalcQtyForm.input_id.value) {
43 47
       document.getElementById(document.CalcQtyForm.input_id.value).value = result;
44 48
     } else {
45 49
       document.getElementsByName(document.CalcQtyForm.input_name.value)[0].value = result;
46 50
     }
47 51
     $('#calc_qty_dialog').dialog('close');
48
   }
49 52

  
50
   function parse_amount(numberformat, amount) {
51
     if (numberformat == '1.000,00' || numberformat == '1000,00')
52
       amount = amount.replace(/\./g, "").replace(/,/, ".");
53
     if (numberformat == "1'000.00")
54
       amount = amount.replace(/\'/g, '');
55
     return amount.replace(/,/g, '');
56
   }
53
  }
57 54

  
58
   function number_format(number, precision, numberformat) {
59
     number = Math.round( number * Math.pow(10, precision) ) / Math.pow(10, precision);
60
     var nf     = numberformat.replace(/\d/g, '').split('').reverse();
61
     var sep    = nf[0];
62
     var th_sep = nf[1];
55
  function parse_amount(numberformat, amount) {
56
  
57
    if (numberformat == '1.000,00' || numberformat == '1000,00')
58
      amount = amount.replace(/\./g, "").replace(/,/, ".");
59
    if (numberformat == "1'000.00")
60
      amount = amount.replace(/\'/g, '');
61
    return amount.replace(/,/g, '');
63 62

  
64
     str_number = number+"";
65
     arr_int = str_number.split(".");
66
     if(!arr_int[0]) arr_int[0] = "0";
67
     if(!arr_int[1]) arr_int[1] = "";
68
     if(arr_int[1].length < precision) {
69
       nachkomma = arr_int[1];
70
       for(i=arr_int[1].length+1; i <= precision; i++) {
71
         nachkomma += "0";
72
       }
73
       arr_int[1] = nachkomma;
74
     }
75
     if(th_sep != "" && arr_int[0].length > 3) {
76
       raw_arr_int = arr_int[0];
77
       arr_int[0] = "";
78
       for(j = 3; j < raw_arr_int.length ; j+=3) {
79
         arr_int[0] = th_sep + raw_arr_int.slice(raw_arr_int.length - j, raw_arr_int.length - j + 3) +  arr_int[0] + "";
80
       }
81
       str_first = raw_arr_int.substr(0, (raw_arr_int.length % 3 == 0) ? 3 : (raw_arr_int.length % 3));
82
       arr_int[0] = str_first + arr_int[0];
83
     }
84
     return arr_int[0] + sep + arr_int[1];
85
   }
86
 </script>
63
  }
64

  
65
  function number_format(number, precision, numberformat) {
66
  
67
    number = Math.round( number * Math.pow(10, precision) ) / Math.pow(10, precision);
68
    var nf     = numberformat.replace(/\d/g, '').split('').reverse();
69
    var sep    = nf[0];
70
    var th_sep = nf[1];
71

  
72
    str_number = number+"";
73
    arr_int = str_number.split(".");
74
    if(!arr_int[0]) arr_int[0] = "0";
75
    if(!arr_int[1]) arr_int[1] = "";
76
    if(arr_int[1].length < precision) {
77
      nachkomma = arr_int[1];
78
      for(i=arr_int[1].length+1; i <= precision; i++) {
79
        nachkomma += "0";
80
      }
81
      arr_int[1] = nachkomma;
82
    }
83
    if(th_sep != "" && arr_int[0].length > 3) {
84
      raw_arr_int = arr_int[0];
85
      arr_int[0] = "";
86
      for(j = 3; j < raw_arr_int.length ; j+=3) {
87
        arr_int[0] = th_sep + raw_arr_int.slice(raw_arr_int.length - j, raw_arr_int.length - j + 3) +  arr_int[0] + "";
88
      }
89
      str_first = raw_arr_int.substr(0, (raw_arr_int.length % 3 == 0) ? 3 : (raw_arr_int.length % 3));
90
      arr_int[0] = str_first + arr_int[0];
91
    }
92
    return arr_int[0] + sep + arr_int[1];
93
    
94
  }
95
</script>
templates/webpages/generic/error.html
1
[%- USE T8 %]
2
[%- USE HTML %]
1
[% USE T8 %]
2
[% USE HTML %]
3 3

  
4
 <div class="message_error">[% IF title_error %][% title_error %][% ELSE %][% 'Error!' | $T8 %][% END %]
5
 <p class="message_error_label">[% label_error %]</p>
6
 </div>
4
<div class="message message_error">
5
  <h4>[% IF title_error %][% title_error %][% ELSE %][% 'Error!' | $T8 %][% END %]</h4>
6
  <p>[% label_error %]</p>
7
</div>
templates/webpages/generic/exception.html
1
[%- USE LxERP %]
2
[%- USE HTML %]
1
[% USE LxERP %]
2
[% USE HTML %]
3 3

  
4
 <h1 class="message_error">[%- LxERP.t8('Error!') %]</h1>
4
<div class="message message_error">[% LxERP.t8('Error!') %]</div>
5 5

  
6
 <p>
7
  [%- LxERP.t8('An exception occurred during execution.') %]
8
 </p>
6
<div class="wrapper">
9 7

  
10
 <div>
11
  <table>
12
   <tr>
13
    <td valign="top">[%- LxERP.t8('Type') %]:</td>
14
    <td valign="top">[%- HTML.escape(error.type) %]</td>
15
   </tr>
8
<p>[% LxERP.t8('An exception occurred during execution.') %]</p>
9

  
10
<table class="tbl-horizontal">
11
  <tr>
12
    <td>[% LxERP.t8('Type') %]:</td>
13
    <td>[% HTML.escape(error.type) %]</td>
14
  </tr>
15
  <tr>
16
    <td>[% LxERP.t8('Information') %]:</td>
17
    <td><code>[% HTML.escape(error.info) %]</code></td>
18
  </tr>
19
</table>
20

  
21
</div><!-- /.wrapper -->
16 22

  
17
   <tr>
18
    <td valign="top">[%- LxERP.t8('Information') %]:</td>
19
    <td valign="top"><pre>[%- HTML.escape(error.info) %]</pre></td>
20
   </tr>
21
  </table>
22
 </div>
templates/webpages/generic/form_info.html
1
[%- USE P -%]
2
<div class="message_ok">
3
 <b>[% P.simple_format(message) %]</b>
4
</div>
1
[% USE P %]
5 2

  
6
<script type="text/javascript">
7
<!--
3
<div class="message message_ok">[% P.simple_format(message) %]</div>
4

  
5
<script type="text/javascript"><!--
8 6
 // If JavaScript is enabled, the whole thing will be reloaded.
9 7
 // The reason is: When one changes his menu setup (HTML / CSS ...)
10 8
 // it now loads the correct code into the browser instead of do nothing.
11 9
 setTimeout("top.frames.location.href='login.pl?action=company_logo'",500);
12
-->
13
</script>
10
--></script>
templates/webpages/generic/information.html
1
[%- USE T8 %]
2
<div class="message_ok">[% IF title_information %][% title_information %][% ELSE %][% 'Information' | $T8 %][% END %]</div>
3
<p>[% label_information %]</p>
1
[% USE T8 %]
4 2

  
3
<div class="message message_info">
4
  <h4>[% IF title_information %][% title_information %][% ELSE %][% 'Information' | $T8 %][% END %]</h4>
5
  <p>[% label_information %]</p>
6
</div>
templates/webpages/generic/new_item.html
1
[%- USE T8 %]
2
[%- USE HTML %]
3
[%- IF is_wrong_pclass == NOTFORSALE %]
4
<h4 class="error">[% 'searched part not for sale' | $T8 %]</h4>
5
[%- ELSE %]
6
[%- IF is_wrong_pclass == NOTFORPURCHASE %]
7
<h4 class="error">[% 'searched part not for purchase' | $T8 %]</h4>
8
[%- ELSE %]
9
<h4 class="error">[% 'Item does not exists in the database' | $T8 %]
10
[% IF INSTANCE_CONF.get_create_part_if_not_found %]
11
    <p>[% 'What type of item is this?' | $T8 %]</h4>
1
[% USE T8 %]
2
[% USE HTML %]
12 3

  
13
    <form method="post" action="controller.pl">
4
<form method="post" action="controller.pl">
5
<div class="wrapper">
6
  [% IF is_wrong_pclass == NOTFORSALE %]
7
    <p class="message message_error">[% 'searched part not for sale' | $T8 %]</p>
8
  [% ELSE %]
9
    [% IF is_wrong_pclass == NOTFORPURCHASE %]
10
      <p class="message message_error">[% 'searched part not for purchase' | $T8 %]</p>
11
    [% ELSE %]
12
      <p class="message message_error">[% 'Item does not exists in the database' | $T8 %]</p>
13
      [% IF INSTANCE_CONF.get_create_part_if_not_found %]
14
        <p>[% 'What type of item is this?' | $T8 %]</p>
15
        <p>
16
          <input type="radio" name="part.part_type" value="part" checked> [% 'Part' | $T8 %]<br>
17
          <input type="radio" name="part.part_type" value="assembly"> [% 'Assembly' | $T8 %]<br>
18
          <input type="radio" name="part.part_type" value="service"> [% 'Service' | $T8 %]<br>
19
          <input type="radio" name="part.part_type" value="assortment"> [% 'Assortment' | $T8 %]
20
        </p>
21
        [% FOREACH var = HIDDENS %]
22
          <input type="hidden" name="[% HTML.escape(var.name) %]" value="[% HTML.escape(var.value) %]">
23
        [% END %]
24
        <input type="hidden" name="action" value="Part/dispatch">
25
        <div class="buttons">
26
          <input type="submit" name="action_add_from_record" value="[% 'Continue' | $T8 %]">
27
        </div>
28
      [% END %]<!-- /IF INSTANCE_CONF.get_create_part_if_not_found -->
29
    [% END %]<!-- /ELSE -> IF is_wrong_pclass == NOTFORPURCHASE -->
30
  [% END %]<!-- /ELSE -> IF is_wrong_pclass == NOTFORSALE -->
31
  <div class="buttons"><input id='back_button' type='button' class="neutral" value="[% 'Back' | $T8 %]"></div>
32
</div><!-- /.wrapper -->
33
</form>
14 34

  
15
      <p>
16 35

  
17
      <input class="radio" type="radio" name="part.part_type" value="part" checked>&nbsp;[% 'Part'       | $T8 %]<br>
18
      <input class="radio" type="radio" name="part.part_type" value="assembly">    &nbsp;[% 'Assembly'   | $T8 %]<br>
19
      <input class="radio" type="radio" name="part.part_type" value="service">     &nbsp;[% 'Service'    | $T8 %]<br>
20
      <input class="radio" type="radio" name="part.part_type" value="assortment">  &nbsp;[% 'Assortment' | $T8 %]
21
      <p>
22

  
23
      [%- FOREACH var = HIDDENS %]
24
      <input type="hidden" name="[% HTML.escape(var.name) %]" value="[% HTML.escape(var.value) %]">
25
      [%- END %]
26
    </p>
27

  
28
      <input type="hidden" name="action" value="Part/dispatch">
29
      <input class="submit" type="submit" name="action_add_from_record" value="[% 'Continue' | $T8 %]">
30
[%- ELSE %]
31
</h4>
32
[%- END %]
33
[%- END %]
34
[%- END %]
35
      <input id='back_button' type='button' class="submit" value="[% 'Back' | $T8 %]">
36
    </p>
37
  </form>
38 36
<script type='text/javascript'>
39 37
  $(function(){ $('#back_button').click(function(){ window.history.back(-1) }) })
40 38
</script>
templates/webpages/generic/print_options.BACKUP.html
1
[% USE T8 %]
2
[% USE HTML %]
3
<!-- 
4
  PENDENT: Was soll diese Form des Dialogs? 
5
           Show_Headers sollte hier sowieso auf TRUE gestellt sein, 
6
           und der Dialog könnte vertikal statt horizontal ausgerichtet sein. 
7
-->
8
<table class="tbl-plain condensed">
9
  [% IF show_headers %]
10
    <thead>
11
      <tr>
12
       [% FOREACH row = SELECTS %]
13
         [% IF row.show %]
14
           <th id="print_options_header_[% row.sname %]">[% row.hname %]</th>
15
         [% END %]
16
       [% END %]
17
       [% IF display_copies %]
18
         <th id="print_options_header_copies">[% 'Copies' | $T8 %]</th>
19
       [% END %]
20
       [% IF display_groupitems %]
21
         <th id="print_options_header_groupitems">[% 'Group Items' | $T8 %]</th>
22
       [% END %]
23
       [% IF display_bothsided %]
24
         <th id="print_options_header_bothsided">[% 'Both-sided' | $T8 %]</th>
25
       [% END %]
26
       [% IF display_remove_draft %]
27
         <th id="print_options_header_remove_draft">[% 'Remove Draft' | $T8 %]</th>
28
       [% END %]
29
      </tr>
30
    </thead>
31
  [% END %]
32
  <tbody>
33
    <tr>
34
      [% FOREACH row = SELECTS %]
35
        [% IF row.show %]
36
          <td id="print_options_input_[% row.sname %]">
37
            <select name="[% name_prefix %][% row.sname %]" id="[% id_prefix %][% row.sname %]">
38
              [% FOREACH data = row.DATA %]
39
                <option value="[% data.value %]" [% data.selected %]>[% data.oname %]</option>
40
              [% END %]
41
            </select>
42
          </td>
43
        [% END %]
44
      [% END %]
45
      [% IF display_copies %]
46
        <td id="print_options_input_copies">
47
          [% IF !show_headers %][% 'Copies' | $T8 %][% END %]
48
          <input type="text" name="[% name_prefix %]copies" id="[% id_prefix %]copies" size="2" value="[% HTML.escape(copies) %]">
49
        </td>
50
      [% END %]
51
      [% IF display_groupitems %]
52
        <td id="print_options_input_groupitems">
53
          [% IF !show_headers %][% 'Group Items' | $T8 %][% END %]
54
          <input name="[% name_prefix %]groupitems" id="[% id_prefix %]groupitems" type="checkbox" [% groupitems_checked %]>
55
        </td>
56
      [% END %]
57
      [% IF display_bothsided %]
58
        <td id="print_options_input_bothsided">
59
          [% IF !show_headers %][% 'Both-sided' | $T8 %][% END %]
60
          <input name="[% name_prefix %]bothsided" id="[% id_prefix %]bothsided" type="checkbox" [% bothsided_checked %]>
61
        </td>
62
      [% END %]
63
      [% IF display_remove_draft %]
64
        <td id="print_options_input_remove_draft">
65
          [% IF !show_headers %][% 'Remove Draft' | $T8 %][% END %]
66
          <input name="[% name_prefix %]remove_draft" id="[% id_prefix %]remove_draft" type="checkbox" [% remove_draft_checked %]>
67
        </td>
68
     [% END %]
69
    </tr>
70
    </tbody>
71
</table>
72

  
73
[% IF status_msg %] 
74
  <div class="message message_hint">[% status_msg %]</div>
75
[% END %] 
templates/webpages/generic/print_options.html
1
[%- USE T8 %]
1
[% USE T8 %]
2 2
[% USE HTML %]
3
<!--
4
  PENDENT: Was soll diese Form des Dialogs?
5
           Show_Headers sollte hier sowieso auf TRUE gestellt sein,
6
           und der Dialog könnte vertikal statt horizontal ausgerichtet sein.
7
-->
3 8

  
4
<table width="100%" cellspacing="0" cellpadding="0">
5
 <tr>
6
  <td>
7
   <table>
8
    [%- IF show_headers %]
9
    <tr>
10
     [%- FOREACH row = SELECTS %]
11
     [%- IF row.show %]
12
     <th align="left" id="print_options_header_[% row.sname %]">[%- row.hname %]</th>
13
     [%- END %]
14
     [%- END %]
15
     [%- IF display_copies %]
16
     <th align="left" id="print_options_header_copies">[% 'Copies' | $T8 %]</th>
17
     [%- END %]
18
     [%- IF display_groupitems %]
19
     <th align="left" id="print_options_header_groupitems">[% 'Group Items' | $T8 %]</th>
20
     [%- END %]
21
     [%- IF display_bothsided %]
22
     <th align="left" id="print_options_header_bothsided">[% 'Both-sided' | $T8 %]</th>
23
     [%- END %]
24
     [%- IF display_remove_draft %]
25
     <th align="left" id="print_options_header_remove_draft">[% 'Remove Draft' | $T8 %]</th>
26
     [%- END %]
27
    </tr>
28
    [%- END %]
29
    <tr>
30
     [%- FOREACH row = SELECTS %]
31
     [%- IF row.show %]
32
     <td id="print_options_input_[% row.sname %]">
33
      <select name="[%- name_prefix %][%- row.sname %]" id="[%- id_prefix %][%- row.sname %]">
34
       [%- FOREACH data = row.DATA %]
35
        <option value="[% data.value %]" [% data.selected %]>[% data.oname %]</option>
36
       [%- END %]
37
      </select>
38
     </td>
39
     [%- END %]
40
     [%- END %]
41
     [%- IF display_copies %]
42
     <td id="print_options_input_copies">[%- IF !show_headers %][%- 'Copies' | $T8 %][%- END %]<input name="[%- name_prefix %]copies" id="[% id_prefix %]copies" size="2" value="[% HTML.escape(copies) %]"></td>
43
     [%- END %]
44
     [%- IF display_groupitems %]
45
     <td id="print_options_input_groupitems">[%- IF !show_headers %][% 'Group Items' | $T8 %][%- END %]
46
      <input name="[%- name_prefix %]groupitems" id="[% id_prefix %]groupitems" type="checkbox" class="checkbox" [% groupitems_checked %]>
47
     </td>
48
     [%- END %]
49
     [%- IF display_bothsided %]
50
     <td id="print_options_input_bothsided">[%- IF !show_headers %][% 'Both-sided' | $T8 %][%- END %]
51
      <input name="[%- name_prefix %]bothsided" id="[% id_prefix %]bothsided" type="checkbox" class="checkbox" [% bothsided_checked %]>
52
     </td>
53
     [%- END %]
54
     [%- IF display_remove_draft %]
55
     <td id="print_options_input_remove_draft">[%- IF !show_headers %][% 'Remove Draft' | $T8 %][%- END %]
56
      <input name="[%- name_prefix %]remove_draft" id="[% id_prefix %]remove_draft" type="checkbox" class="checkbox" [% remove_draft_checked %]>
57
     </td>
58
     [%- END %]
59
    </tr>
60
   </table>
61
  </td>
62
  <td align=right>
63
   <table><tr><th>[% status_msg %]</th></tr></table>
64
  </td>
65
 </tr>
9
<table class="tbl-horizontal">
10
  <colgroup> <col class="wi-small"><col class="wi-lightwide"> </colgroup>
11
  [% # IF show_headers %]
12
    <body>
13
       [% FOREACH row = SELECTS %]
14
         [% IF row.show %]
15
           <tr>
16
             <th id="print_options_header_[% row.sname %]">[% row.hname %]</th>
17
             <td id="print_options_input_[% row.sname %]">
18
               <select name="[% name_prefix %][% row.sname %]" id="[% id_prefix %][% row.sname %]" class="wi-lightwide">
19
                 [% FOREACH data = row.DATA %]
20
                   <option value="[% data.value %]" [% data.selected %]>[% data.oname %]</option>
21
                 [% END %]
22
               </select>
23
             </td>
24
           </tr>
25
         [% END %]
26
       [% END %]
27
       [% IF display_copies %]
28
         <tr>
29
           <th id="print_options_header_copies">[% 'Copies' | $T8 %]</th>
30
           <td id="print_options_input_copies">
31
             <input type="text" name="[% name_prefix %]copies" id="[% id_prefix %]copies" size="2" value="[% HTML.escape(copies) %]" class="wi-small">
32
           </td>
33
         </tr>
34
       [% END %]
35
       [% IF display_groupitems %]
36
         <tr>
37
           <th id="print_options_header_groupitems">[% 'Group Items' | $T8 %]</th>
38
           <td id="print_options_input_groupitems">
39
             <input name="[% name_prefix %]groupitems" id="[% id_prefix %]groupitems" type="checkbox" [% groupitems_checked %]>
40
           </td>
41
         </tr>
42
       [% END %]
43
       [% IF display_bothsided %]
44
         <tr>
45
           <th id="print_options_header_bothsided">[% 'Both-sided' | $T8 %]</th>
46
           <td id="print_options_input_bothsided">
47
             <input name="[% name_prefix %]bothsided" id="[% id_prefix %]bothsided" type="checkbox" [% bothsided_checked %]>
48
           </td>
49
         </tr>
50
       [% END %]
51
       [% IF display_remove_draft %]
52
         <tr>
53
           <th id="print_options_header_remove_draft">[% 'Remove Draft' | $T8 %]</th>
54
           <td id="print_options_input_remove_draft">
55
             <input name="[% name_prefix %]remove_draft" id="[% id_prefix %]remove_draft" type="checkbox" [% remove_draft_checked %]>
56
           </td>
57
         </tr>
58
       [% END %]
59
    </body>
60
  [% # END %]
66 61
</table>
62

  
63
[% IF status_msg %]
64
  <div class="message message_hint">[% status_msg %]</div>
65
[% END %]
templates/webpages/generic/select_delivery_customer.html
1
[%- USE T8 %]
2
[%- USE HTML %]
3
<h1>[% title %]</h1>
4

  
5
 <form name="Form">
6

  
7
  <input type="hidden" name="input_name" value="[% HTML.escape(input_name) %]">
8
  <input type="hidden" name="input_id" value="[% HTML.escape(input_id) %]">
9

  
10
  <table width="100%">
11
   <tr><td>[% 'Please select a customer from the list below.' | $T8 %]</td></tr>
12

  
13
   <tr>
14
    <td>
1
[% USE T8 %]
2
[% USE HTML %]
15 3

  
16
     <table>
17
      <tr class="listheading">
18
       <th class="listheading">&nbsp;</th>
19
       [%- FOREACH col = HEADER %]
20
       <th nowrap class="listheading"><a href="[% HTML.escape(col.callback) %]">[% col.column_title %]</a></th>
21
       [%- END %]
22
      </tr>
4
<h1>[% title %]</h1>
23 5

  
24
      [%- FOREACH row = DELIVERY %]
25
      <tr class="listrow[% loop.count % 2 %]">
26
       <td><button type="button" onclick="customer_selected('[% loop.count %]')">Auswahl</button></td>
6
<form name="Form">
7

  
8
<input type="hidden" name="input_name" value="[% HTML.escape(input_name) %]">
9
<input type="hidden" name="input_id" value="[% HTML.escape(input_id) %]">
10

  
11
<p>[% 'Please select a customer from the list below.' | $T8 %]</p>
12

  
13

  
14
<table class="tbl-list">
15
  <thead>
16
    <tr>
17
      <th>&nbsp;</th>
18
      [% FOREACH col = HEADER %]
19
        <th><a href="[% HTML.escape(col.callback) %]">[% col.column_title %]</a></th>
20
      [% END %]
21
    </tr>
22
  </thead>
23
  <tbody>
24
    [% FOREACH row = DELIVERY %]
25
    <tr class="listrow[% loop.count % 2 %]">
26
      <td><button type="button" onclick="customer_selected('[% loop.count %]')" class="neutral">Auswahl</button></td>
27
      <td> <input type="hidden" id="id_[% loop.count %]" name="id_[% loop.count %]" value="[% HTML.escape(row.id) %]">
28
      <input type="hidden" id="name_[% loop.count %]" name="name_[% loop.count %]" value="[% HTML.escape(row.name) %]">
29
      [% HTML.escape(row.name) %] </td>
30
      <td>[% HTML.escape(row.customernumber) %]</td>
31
      <td>[% HTML.escape(row.address) %]</td>
32
<!--
27 33
       <td>
28
        <input type="hidden" id="id_[% loop.count %]" name="id_[% loop.count %]" value="[% HTML.escape(row.id) %]">
29
        <input type="hidden" id="name_[% loop.count %]" name="name_[% loop.count %]" value="[% HTML.escape(row.name) %]">
30
        [% HTML.escape(row.name) %]
34
        <input type="hidden" id="description_[% loop.count %]" name="description_[% loop.count %]" value="[% HTML.escape(row.description) %]">
35
        [% HTML.escape(row.description) %]
31 36
       </td>
32
       <td>[% HTML.escape(row.customernumber) %]</td>
33
       <td>[% HTML.escape(row.address) %]</td>
34
<!--        <td> -->
35
<!--         <input type="hidden" id="description_[% loop.count %]" name="description_[% loop.count %]" value="[% HTML.escape(row.description) %]"> -->
36
<!--         [% HTML.escape(row.description) %] -->
37
<!--        </td> -->
38
      </tr>
39
      [%- END %]
40
     </table>
41

  
42
    </td>
43
   </tr>
44
  </table>
45

  
46
 </form>
47

  
48
 <script type="text/javascript">
37
 -->
38
    </tr>
39
    [% END %]
40
  </tbody>
41
</table>
42

  
43
</form>
44

  
45
<script type="text/javascript">
49 46
  <!--
50 47
      function customer_selected(selected) {
51 48
        var name = document.getElementsByName("name_" + selected)[0].value
......
57 54
        self.close();
58 55
      }
59 56
      //-->
60
 </script>
61

  
57
</script>
templates/webpages/generic/select_vendor.html
1
[%- USE T8 %]
2
[%- USE HTML %]
1
[% USE T8 %]
2
[% USE HTML %]
3 3
<h1>[% title %]</h1>
4 4

  
5
 <form name="Form">
5
<form name="Form">
6 6

  
7
  <input type="hidden" name="input_name" value="[% HTML.escape(input_name) %]">
8
  <input type="hidden" name="input_id" value="[% HTML.escape(input_id) %]">
7
<input type="hidden" name="input_name" value="[% HTML.escape(input_name) %]">
8
<input type="hidden" name="input_id" value="[% HTML.escape(input_id) %]">
9 9

  
10
  <table width="100%">
11
   <tr><td>[% 'Please select a vendor from the list below.' | $T8 %]</td></tr>
10
<p>[% 'Please select a vendor from the list below.' | $T8 %]</p>
12 11

  
13
   <tr>
14
    <td>
15

  
16
     <table>
17
      <tr class="listheading">
18
       <th class="listheading">&nbsp;</th>
19
       [%- FOREACH col = HEADER %]
20
       <th nowrap class="listheading"><a href="[% HTML.escape(col.callback) %]">[% col.column_title %]</a></th>
21
       [%- END %]
22
      </tr>
23

  
24
      [%- FOREACH row = VENDOR %]
12
<table class="tbl-list">
13
  <thead>
14
    <tr>
15
      <th>&nbsp;</th>
16
      [% FOREACH col = HEADER %]
17
        <th><a href="[% HTML.escape(col.callback) %]">[% col.column_title %]</a></th>
18
      [% END %]
19
    </tr>
20
  </thead>
21
  <tbody>
22
    [% FOREACH row = VENDOR %]
25 23
      <tr class="listrow[% loop.count % 2 %]">
26
       <td><button type="button" onclick="vendor_selected('[% loop.count %]')">Auswahl</button></td>
27
       <td>
28
        <input type="hidden" id="id_[% loop.count %]" name="id_[% loop.count %]" value="[% HTML.escape(row.id) %]">
29
        <input type="hidden" id="name_[% loop.count %]" name="name_[% loop.count %]" value="[% HTML.escape(row.name) %]">
30
        [% HTML.escape(name) %]
31
       </td>
32
       <td>[% HTML.escape(row.customernumber) %]</td>
33
       <td>[% HTML.escape(row.address) %]</td>
34
<!--        <td> -->
35
<!--         <input type="hidden" id="description_[% loop.count %]" name="description_[% loop.count %]" value="[% HTML.escape(row.description) %]"> -->
36
<!--         [% HTML.escape(row.description) %] -->
37
<!--        </td> -->
24
        <td><button type="button" onclick="vendor_selected('[% loop.count %]')">Auswahl</button></td>
25
        <td>[% HTML.escape(name) %]
26
          <input type="hidden" id="id_[% loop.count %]" name="id_[% loop.count %]" value="[% HTML.escape(row.id) %]">
27
          <input type="hidden" id="name_[% loop.count %]" name="name_[% loop.count %]" value="[% HTML.escape(row.name) %]">
28
        </td>
29
        <td>[% HTML.escape(row.customernumber) %]</td>
30
        <td>[% HTML.escape(row.address) %]</td>
31
  <!--        <td> -->
32
  <!--         <input type="hidden" id="description_[% loop.count %]" name="description_[% loop.count %]" value="[% HTML.escape(row.description) %]"> -->
33
  <!--         [% HTML.escape(row.description) %] -->
34
  <!--        </td> -->
38 35
      </tr>
39
      [%- END %]
40
     </table>
41

  
42
    </td>
43
   </tr>
44
  </table>
45

  
46
 </form>
47

  
48
 <script type="text/javascript">
49
  <!--
50
      function vendor_selected(selected) {
51
        var name = document.getElementsByName("name_" + selected)[0].value
52
        var id = document.getElementsByName("id_" + selected)[0].value
53
        window.opener.document.getElementsByName(document.Form.input_name.value)[0].value = name;
54
        if (document.Form.input_id.value != "") {
55
          window.opener.document.getElementsByName(document.Form.input_id.value)[0].value = id;
56
        }
57
        self.close();
36
    [% END %]
37
  </tbody>
38
</table>
39

  
40
</form>
41

  
42
<script type="text/javascript"><!--
43
    function vendor_selected(selected) {
44
      var name = document.getElementsByName("name_" + selected)[0].value
45
      var id = document.getElementsByName("id_" + selected)[0].value
46
      window.opener.document.getElementsByName(document.Form.input_name.value)[0].value = name;
47
      if (document.Form.input_id.value != "") {
48
        window.opener.document.getElementsByName(document.Form.input_id.value)[0].value = id;
58 49
      }
59
      //-->
60
 </script>
50
      self.close();
51
    }
52
--></script>
61 53

  
templates/webpages/generic/set_longdescription.html
1
[%- USE L -%][%- USE LxERP -%]
1
[% USE L %]
2
[% USE LxERP %]
2 3

  
3
<div id="edit_longdescription_dialog" style="display: none">
4
 <p>
5
  <table>
6
   <tr>
7
    <th align="right">[% LxERP.t8("Row") %]:</th>
8
    <td id="popup_edit_longdescription_runningnumber"></td>
9
   </tr>
4
<div id="edit_longdescription_dialog" class="wrapper" style="display: none">
5
<!--
6
  PENDENT:
7
  Eigentlich gibt es hier kein Formular, sollte es aber,
8
  damit wir nicht zuletzt das ganze im CSS-Namensraum FORM
9
  designen können. Es werden sonst nur die Standard-Elemente angezeigt.
10
-->
10 11

  
11
   <tr>
12
    <th align="right">[% LxERP.t8("Part Number") %]:</th>
13
    <td id="popup_edit_longdescription_partnumber"></td>
14
   </tr>
12
<table class="tbl-horizontal checkered" style="clear:left;">
13
  <colgroup> <col class="wi-small"><col class="wi-lightwide"> </colgroup>
14
  <tbody>
15
    <tr>
16
      <th>[% LxERP.t8("Row") %]:</th>
17
      <td id="popup_edit_longdescription_runningnumber"></td>
18
    </tr>
19
    <tr>
20
      <th>[% LxERP.t8("Part Number") %]:</th>
21
      <td id="popup_edit_longdescription_partnumber"></td>
22
    </tr>
23
    <tr>
24
      <th>[% LxERP.t8("Description") %]:</th>
25
      <td id="popup_edit_longdescription_description"></td>
26
    </tr>
27
  </tbody>
28
</table>
15 29

  
16
   <tr>
17
    <th align="right">[% LxERP.t8("Description") %]:</th>
18
    <td id="popup_edit_longdescription_description"></td>
19
   </tr>
20
  </table>
21
 </p>
30
<p class="spacer">&nbsp;</p>
22 31

  
23
 <p id="popup_edit_longdescription_input_container"></p>
32
<p id="popup_edit_longdescription_input_container" style="clear:left;"></p>
24 33

  
25
 <p>
26
  [% L.button_tag("kivi.SalesPurchase.set_longdescription()", LxERP.t8("Assign")) %]
27
  <a onclick="$('#edit_longdescription_dialog').dialog('close');" href="#">[% LxERP.t8("Abort") %]</a>
28
 </p>
34
<div class="buttons">
35
  [% L.button_tag("kivi.SalesPurchase.set_longdescription()", LxERP.t8("Assign"), class="button neutral") %]
36
  <a onclick="$('#edit_longdescription_dialog').dialog('close');" href="#" class="button neutral">[% LxERP.t8("Abort") %]</a>
29 37
</div>
38

  
39
</div><!-- /#edit_longdescription_dialog -->
templates/webpages/generic/toggle_wrapper.html
1
[% USE T8 %]
2
[%
3
  # Include this JS and these HTML toggle buttons right on the first position of a .wrapper container
4
  # for minimizing / maximizing the surrounding .wrapper container
5
  # First Symbols: former &or; & &lt; but now with icons
6
  # It seems advantageous to give an id to the .wrapper-block e.g. #wrapper-1 or #wrapper-basic-data
7

  
8
  # PENDENT: vielleicht noch generischer programmieren.
9
%]
10

  
11
<div class="toggles" id="toggles">
12
  <script type="text/javascript">
13
    var toggles_id = "#toggles" ; // surrounding container of the toggle buttons
14
    var wrapper = new Object() ;
15
    $(document).ready(function(){
16
      if( $(toggles_id).parent().attr('class') == "wrapper" ) {
17
        wrapper = $(toggles_id).parent() ; // closest surrounding wrapper to toggle, must have the class .wrapper
18
        $(wrapper).addClass("toggled") ; // change the wrapper into a inline-block instead of a 100%-width-block
19
      }
20
      if( wrapper != "") {
21
        var hi = -1; //height of the wrapper
22
        $(wrapper).ready(function(){
23
          if( hi <= -1 ) hi = $(wrapper).height(); // height of the wrapper
24
        });
25
        // Toggle to minimum
26
        $("#toggler-1").click(function(){
27
          $(wrapper).animate({height:"30px"},200).addClass("bordered");
28
          $(this).toggle();
29
          $("#toggler-2").toggle();
30
        });
31
        // Toggle back to maximum
32
        $("#toggler-2").click(function(){
33
          $(wrapper).animate({height:hi},200).removeClass("bordered");
34
          $(this).toggle();
35
          $("#toggler-1").toggle();
36
        });
37
      }
38
    });
39
  </script>
40
  <a class="toggle min" id="toggler-1" href="#" style="display:visible;" title="[% 'Minimize Panel' | $T8 %]"></a>
41
  <a class="toggle max" id="toggler-2" href="#" style="display:none;" title="[% 'Open Panel' | $T8 %]"></a>
42

  
43
</div><!-- /.toggles /#toggles -->
templates/webpages/generictranslations/edit_email_strings.html
1
[%- USE T8 %]
2
[%- USE HTML %]
1
[% USE T8 %]
2
[% USE HTML %]
3

  
3 4
<h1>[% HTML.escape(title) %]</h1>
4
[%- IF message %]
5
 <p>
6
 [% HTML.escape(message) %]
7
 </p>
8
[%- END %]
9
 <form method="post" action="generictranslations.pl" id="form">
10
  <table>
11
   [%- FOREACH mail_string IN MAIL_STRINGS.keys.sort %]
12
    <tr>
13
      <th class="listheading">&nbsp;</th>
14
      <th class="listheading">[% MAIL_STRINGS.$mail_string %]</th>
15
     </tr>
16

  
17
     [%- FOREACH language = LANGUAGES %]
18
     <tr>
19
      <td>
20
       [%- IF language.id == 'default' %]
21
       [% 'Default (no language selected)' | $T8 %]
22
       [%- ELSE %]
23
       [%- HTML.escape(language.description) %]
24
       [%- END %]
25
       [%- IF mail_string.search('preset_text_periodic_invoices') %]
26
        <br />
27
        <a href="doc/html/ch03.html#features.periodic-invoices.variables" target="_blank">?</a>
28
       [%- END %]
29
      </td>
30
      <td>
31
       [%- IF mail_string.search('preset') %]
32
        <textarea name="translation__[% language.id %]__[% mail_string %]" rows="4" cols="60">[% HTML.escape(language.$mail_string) %]</textarea>
33
       [%- ELSE %]
34
        <input name="translation__[% language.id %]__[% mail_string %]" size="40" value="[% HTML.escape(language.$mail_string) %]">
35
       [%- END %]
36
      </td>
37
     </tr>
38
     [%- END %]
39
   [%- END %]
40
  </table>
41
 </form>
5

  
6
<div class="wrapper">
7

  
8
[% IF message %]<p>[% HTML.escape(message) %]</p>[% END %]
9

  
10
<form method="post" action="generictranslations.pl" id="form">
11

  
12
<div class="long-description">[% 'Default means "if no language selected then..."' | $T8 %]</div>
13

  
14
<table class="tbl-horizontal">
15
  <colgroup><col class="wi-small"><col class="wi-wider"></colgroup>
16
  <tbody>
17
    [% FOREACH mail_string IN MAIL_STRINGS.keys.sort %]
18
      <tr>
19
        <th class="caption" colspan="2">[% MAIL_STRINGS.$mail_string %]</th>
20
      </tr>
21
       [% FOREACH language = LANGUAGES %]
22
       <tr>
23
        <td>
24
         [% IF language.id == 'default' %]
25
           [% 'Default (no language selected)' | $T8 %]
26
         [% ELSE %]
27
           [% HTML.escape(language.description) %]
28
         [% END %]
29
        </td>
30
        <td>
31
          [% IF mail_string.search('preset') %]
32
            <textarea name="translation__[% language.id %]__[% mail_string %]" rows="4" cols="50" class="wi-wide" style="float:left;">[% HTML.escape(language.$mail_string) %]</textarea>
33
          [% ELSE %]
34
            <input name="translation__[% language.id %]__[% mail_string %]" value="[% HTML.escape(language.$mail_string) %]" type="text" class="wi-wide" style="float:left;">
35
          [% END %]
36
           [% IF mail_string.search('preset_text_periodic_invoices') %]
37
             <a href="doc/html/ch03.html#features.periodic-invoices.variables" target="_blank" class="button wi-tiny neutral tooltipster-html" style="float:left;" title="[% 'Documentation about Variables in a new window/tab' | $T8 %]">?</a>
38
           [% END %]
39
        </td>
40
      </tr>
41
      [% END %]
42
    [% END %]
43
  </tbody>
44
</table>
45

  
46
</form>
47

  
48
</div><!-- /.wrapper -->
templates/webpages/generictranslations/edit_greetings.html
1
[%- USE T8 %]
2
[%- USE HTML %]
1
[% USE T8 %]
2
[% USE HTML %]
3 3
<h1>[% HTML.escape(title) %]</h1>
4 4

  
5
 [%- IF message %]
6
 <p>
7
  [% HTML.escape(message) %]
8
 </p>
9
 [%- END %]
5
<div class="wrapper">
10 6

  
11
 <form method="post" action="generictranslations.pl" id="form">
7
<!-- UPDATE: Message -->
8
[% IF message %]
9
  <p>[% HTML.escape(message) %]</p>
10
[% END %]
12 11

  
13
  <table>
12
<form method="post" action="generictranslations.pl" id="form">
14 13

  
15
   <tr>
16
    <th class="listheading">&nbsp;</th>
17
    <th class="listheading">[% 'male' | $T8 %]</th>
18
    <th class="listheading">[% 'female' | $T8 %]</th>
19
   </tr>
20 14

  
21
   [%- FOREACH language = LANGUAGES %]
22
   <tr>
23
    <td>
24
     [%- IF language.id == 'default' %]
25
     [% 'Default (no language selected)' | $T8 %]
26
     [%- ELSE %]
27
     [%- HTML.escape(language.description) %]
28
     [%- END %]
29
    </td>
30
    <td><input name="translation__[% language.id %]__male" size="40" value="[% HTML.escape(language.male) %]"></td>
31
    <td><input name="translation__[% language.id %]__female" size="40" value="[% HTML.escape(language.female) %]"></td>
32
   </tr>
33
   [%- END %]
15
<table class="tbl-list">
16
  <thead>
17
    <tr>
18
      <th>&nbsp;</th>
19
      <th>[% 'male' | $T8 %]</th>
20
      <th>[% 'female' | $T8 %]</th>
21
    </tr>
22
  </thead>
23
  <tbody>
24
    [% FOREACH language = LANGUAGES %]
25
    <tr>
26
      <td>[% IF language.id == 'default' %] [% 'Default (no language selected)' | $T8 %] [% ELSE %] [% HTML.escape(language.description) %] [% END %]</td>
27
      <td><input name="translation__[% language.id %]__male" value="[% HTML.escape(language.male) %]" class="wi-wide" type="text"></td>
28
      <td><input name="translation__[% language.id %]__female" value="[% HTML.escape(language.female) %]" class="wi-wide" type="text"> </td>
29
    </tr>
30
    [% END %]
31
  </tbody>
32
</table>
34 33

  
35
  </table>
36
 </form>
34
</form>
35

  
36
</div><!-- /.wrapper -->
templates/webpages/generictranslations/edit_sepa_strings.html
1
[%- USE T8 %]
2
[%- USE HTML %]
1
[% USE T8 %]
2
[% USE HTML %]
3 3
<h1>[% HTML.escape(title) %]</h1>
4 4

  
5
 [%- IF message %]
6
 <p>
7
  [% HTML.escape(message) %]
8
 </p>
9
 [%- END %]
5
<div class="wrapper">
10 6

  
11
 <form method="post" action="generictranslations.pl" id="form">
7
[% IF message %]
8
  <p>[% HTML.escape(message) %]</p>
9
[% END %]
12 10

  
13
  <table>
11
<form method="post" action="generictranslations.pl" id="form">
14 12

  
15
   <tr>
16
    <th class="listheading">&nbsp;</th>
17
    <th class="listheading">[% 'Remittance information prefix' | $T8 %]</th>
18
   </tr>
13
<table class="tbl-list width-moderate">
14
  <thead>
15
    <tr>
16
      <th>&nbsp;</th>
17
      <th>[% 'Remittance information prefix' | $T8 %]</th>
18
      <th>[% 'Remittance information optional Vendor/Customer No postfix' | $T8 %]</th>
19
    </tr>
20
  </thead>
21
  <tbody>
22
    [% FOREACH language = LANGUAGES %]
23
    <tr>
24
      <th>[% IF language.id == 'default' %] [% 'Default (no language selected)' | $T8 %] [% ELSE %] [% HTML.escape(language.description) %] [% END %]</th>
25
      <td><input name="translation__[% language.id %]" value="[% HTML.escape(language.translation) %]" type="text" class="wi-wide"></td>
26
      <td><input name="translation__[% language.id %]__vc" value="[% HTML.escape(language.translation_vc) %]" type="text" class="wi-wide"></td>
27
    </tr>
28
    [% END %]
29
  </tbody>
30
</table>
19 31

  
20
   [%- FOREACH language = LANGUAGES %]
21
   <tr>
22
    <td>
23
     [%- IF language.id == 'default' %]
24
     [% 'Default (no language selected)' | $T8 %]
25
     [%- ELSE %]
26
     [%- HTML.escape(language.description) %]
27
     [%- END %]
28
    </td>
29
    <td><input name="translation__[% language.id %]" size="40" value="[% HTML.escape(language.translation) %]"></td>
30
   </tr>
31
   [%- END %]
32
   <tr>
33
    <th class="listheading">&nbsp;</th>
34
    <th class="listheading">[% 'Remittance information optional Vendor/Customer No postfix' | $T8 %]</th>
35
   </tr>
32
</form>
36 33

  
37
   [%- FOREACH language = LANGUAGES %]
38
   <tr>
39
    <td>
40
     [%- IF language.id == 'default' %]
41
     [% 'Default (no language selected)' | $T8 %]
42
     [%- ELSE %]
43
     [%- HTML.escape(language.description) %]
44
     [%- END %]
45
    </td>
46
    <td><input name="translation__[% language.id %]__vc" size="40" value="[% HTML.escape(language.translation_vc) %]"></td>
47
   </tr>
48
   [%- END %]
49

  
50
  </table>
51
 </form>
34
</div>

Auch abrufbar als: Unified diff