Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 055700fb

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

  • ID 055700fbf58d5a29f30440fd21cad51b1b4f60bc
  • Vorgänger a646557b
  • Nachfolger d2d1ecbf

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

Unterschiede anzeigen:

templates/webpages/generic/calculate_qty.html
1 1
[% USE T8 %]
2 2
[% USE HTML %]
3 3

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

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

  
10
   <tr>
11
    <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) %]">
12 10

  
13
     <table>
14
      <tr class="listheading">
11
<table class="tbl-list">
12
  <caption>[% 'Please insert object dimensions below.' | $T8 %]</caption>
13
  <thead>
14
     <tr>
15 15
       [% FOREACH col = HEADER %]
16
        <th nowrap class="listheading">[% col.column_title %]</a></th>
16
         <th>[% col.column_title %]</a></th>
17 17
       [% END %]
18
      </tr>
19

  
20
      [% FOREACH row = VARIABLES %]
21
       <tr class="listrow[% loop.count % 2 %]">
22
        <td>[% HTML.escape(row.description) %]:</td><td><input id="[% row.name %]" name="[% row.name %]" value=""></td>
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>
23 24
        <td>[% HTML.escape(row.unit) %]</td>
24
       </tr>
25
      [% END %]
26
     </table>
27

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

  
34
 <script type="text/javascript">
35
   function calculate_qty() {
36
[%- FOREACH row = VARIABLES %]
37
     var [% row.name %] = kivi.parse_amount($('#calc_qty_form_id #[% row.name %]').val());
38
[%- END %]
39
     var result = [% formel %];
40
     result = kivi.format_amount(result, 2);
41
     if (document.CalcQtyForm.input_id.value) {
42
       document.getElementById(document.CalcQtyForm.input_id.value).value = result;
43
     } else {
44
       document.getElementsByName(document.CalcQtyForm.input_name.value)[0].value = result;
45
     }
46
     $('#calc_qty_dialog').dialog('close');
47
   }
48

  
49
 </script>
25
      </tr>
26
    [% END %]
27
  </tbody>
28
</table>
29

  
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">
37
  function calculate_qty() {
38
    [%- FOREACH row = VARIABLES %]
39
      var [% row.name %] = kivi.parse_amount($('#calc_qty_form_id #[% row.name %]').val());
40
    [%- END %]
41
    var result = [% formel %];
42
    result = kivi.format_amount(result, 2);
43
    /* Every Element should be assigned by ID and not with NAME, modern Browsers handle that since 2006 or a bit later */
44
    if (document.CalcQtyForm.input_id.value) {
45
      document.getElementById(document.CalcQtyForm.input_id.value).value = result;
46
    } else {
47
      document.getElementsByName(document.CalcQtyForm.input_name.value)[0].value = result;
48
    }
49
    $('#calc_qty_dialog').dialog('close');
50
  }
51
</script>
templates/webpages/generic/error.html
1 1
[% USE T8 %]
2 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 1
[% USE LxERP %]
2 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
<div class="message_ok">
2
 <b>[% P.simple_format(message) %]</b>
3
</div>
4 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
<div class="message_ok">[% IF title_information %][% title_information %][% ELSE %][% 'Information' | $T8 %][% END %]</div>
2
<p>[% label_information %]</p>
3 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
[%- IF is_wrong_pclass == NOTFORSALE %]
2
<h4 class="error">[% 'searched part not for sale' | $T8 %]</h4>
3
[%- ELSE %]
4
[%- IF is_wrong_pclass == NOTFORPURCHASE %]
5
<h4 class="error">[% 'searched part not for purchase' | $T8 %]</h4>
6
[%- ELSE %]
7
<h4 class="error">[% 'Item does not exists in the database' | $T8 %]
8
[% IF INSTANCE_CONF.get_create_part_if_not_found %]
9
    <p>[% 'What type of item is this?' | $T8 %]</h4>
10 1
[% USE T8 %]
11 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.html
1 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
<h1>[% title %]</h1>
2

  
3
 <form name="Form">
4

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

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

  
11
   <tr>
12
    <td>
13 1
[% USE T8 %]
14 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>
49 42

  
50 43
</form>
51 44

  
......
61 54
        self.close();
62 55
      }
63 56
      //-->
64
 </script>
65

  
57
</script>
templates/webpages/generic/select_vendor.html
2 2
[% USE HTML %]
3 3
<h1>[% title %]</h1>
4 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 vendor from the list below.' | $T8 %]</td></tr>
12

  
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 %]
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
<p>[% 'Please select a vendor from the list below.' | $T8 %]</p>
11

  
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 1
[% USE L %]
2 2
[% USE LxERP %]
3 3

  
4
<div id="edit_longdescription_dialog" style="display: none">
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>
30
<p class="spacer">&nbsp;</p>
21 31

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

  
24
 <p>
25
  [% L.button_tag("kivi.SalesPurchase.set_longdescription()", LxERP.t8("Assign")) %]
26
  <a onclick="$('#edit_longdescription_dialog').dialog('close');" href="#">[% LxERP.t8("Abort") %]</a>
27
 </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>
28 37
</div>
38

  
39
</div><!-- /#edit_longdescription_dialog -->

Auch abrufbar als: Unified diff