Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 439c6f90

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

  • ID 439c6f90339eeb8ed94df09f674e50283423e725
  • Vorgänger 02f07743
  • Nachfolger bdf885d0

Neues Design 2019 Standard-Code templates/webpages/record_links/add_filter.html

Unterschiede anzeigen:

templates/webpages/record_links/add_filter.html
1
<h1>[%- LxERP.t8("Add link: select records to link with") %]</h1>
2 1
[% USE L %]
3 2
[% USE LxERP %]
4 3
[% USE JavaScript %]
......
6 5

  
7 6

  
8 7
<form method="post" action="controller.pl" id="record_links_add_filter_form">
9
 [% L.hidden_tag('object_model',   SELF.object_model) %]
10
 [% L.hidden_tag('object_id',      SELF.object_id) %]
11

  
12
 <table>
13
  <tr>
14
   <td>[%- LxERP.t8("Link to") %]:</td>
15
   <td>[% L.select_tag('link_type', LINK_TYPES, default=DEFAULT_LINK_TYPE, style=style, id='record_links_add_filter_link_type') %]</td>
16
  </tr>
17

  
18
  <tr>
19
   <td>[%- LxERP.t8("Link direction") %]:</td>
20
   <td>[% L.select_tag('link_direction',
21
                       [ [ 'from', LxERP.t8("The link target to add has been created from the existing record."), ],
22
                         [ 'to',   LxERP.t8("The existing record has been created from the link target to add."), ], ],
23
                       style=style) %]</td>
24
  </tr>
25

  
26
  <tr>
27
   <td>[%- LxERP.t8("Customer/Vendor Number") %]:</td>
28
   <td>[% L.input_tag('vc_number', is_sales ? SELF.object.customer.customernumber : SELF.object.vendor.vendornumber, style=style) %]</td>
29
  </tr>
30

  
31
  <tr>
32
   <td>[%- LxERP.t8("Customer/Vendor Name") %]:</td>
33
   <td>[% L.input_tag('vc_name', is_sales ? SELF.object.customer.name : SELF.object.vendor.name, style=style) %]</td>
34
  </tr>
35

  
36
  <tr id="record_links_add_filter_project_row">
37
   <td>[%- LxERP.t8("Project") %]:</td>
38
   <td>[% L.select_tag('globalproject_id', PROJECTS, default=SELF.object.globalproject_id, with_empty=1, style=style) %]</td>
39
  </tr>
40

  
41
  <tr>
42
   <td><span id="record_links_add_filter_title">[%- LxERP.t8("Transaction description") %]</span>:</td>
43
   <td>[% L.input_tag('transaction_description', '', style=style) %]</td>
44
  </tr>
45
 </table>
46

  
47
 <p>
48
  [% L.button_tag('filter_record_links()', LxERP.t8("Search")) %]
8
[% L.hidden_tag('object_model',   SELF.object_model) %]
9
[% L.hidden_tag('object_id',      SELF.object_id) %]
10

  
11
<table class="tbl-horizontal">
12
  <caption>[% LxERP.t8("Add link: select records to link with") %]</caption>
13
  <colgroup> <col class="wi-normal"><col class="wi-verywide"> </colgroup> 
14
  <tbody>
15
    <tr>
16
      <th>[% LxERP.t8("Link to") %]</th>
17
      <td>[% L.select_tag('link_type', LINK_TYPES, default=DEFAULT_LINK_TYPE, class='wi-wide', id='record_links_add_filter_link_type') %]</td>
18
    </tr>
19
    <tr>
20
      <th>[% LxERP.t8("Link direction") %]</th>
21
      <td>[% L.select_tag('link_direction',
22
                          [ [ 'from', LxERP.t8("The link target to add has been created from the existing record."), ],
23
                            [ 'to',   LxERP.t8("The existing record has been created from the link target to add."), ], ],
24
                            class='wi-verywide') %]</td>
25
    </tr>
26
    <tr>
27
      <th>[% LxERP.t8("Customer/Vendor Number") %]</th>
28
      <td>[% L.input_tag('vc_number', is_sales ? SELF.object.customer.customernumber : SELF.object.vendor.vendornumber, class='wi-wide') %]</td>
29
    </tr>
30
    <tr>
31
      <th>[% LxERP.t8("Customer/Vendor Name") %]</th>
32
      <td>[% L.input_tag('vc_name', is_sales ? SELF.object.customer.name : SELF.object.vendor.name, class='wi-wide') %]</td>
33
    </tr>
34
    <tr id="record_links_add_filter_project_row">
35
      <th>[% LxERP.t8("Project") %]</tdh>
36
      <td>[% L.select_tag('globalproject_id', PROJECTS, default=SELF.object.globalproject_id, with_empty=1, class='wi-wide') %]</td>
37
    </tr>
38
    <tr>
39
      <th><span id="record_links_add_filter_title">[% LxERP.t8("Transaction description") %]</span></th>
40
      <td>[% L.input_tag('transaction_description', '', class='wi-wide') %]</td>
41
    </tr>
42
  </tbody>
43
</table>
44

  
45
<div class="buttons">
46
  [% L.button_tag('filter_record_links()', LxERP.t8("Search"), class='neutral') %]
49 47
  [% L.button_tag('add_selected_record_links()', LxERP.t8("Add links"), id='add_selected_record_links_button', disabled=1) %]
50
  [% L.button_tag('$("#record_links_add_filter_form").resetForm()', LxERP.t8('Reset')) %]
51
  <a href="#" onclick="$('#record_links_add').dialog('close');">[% LxERP.t8("Cancel") %]</a>
52
 </p>
48
  [% L.button_tag('$("#record_links_add_filter_form").resetForm()', LxERP.t8('Reset'), class='neutral') %]
49
  <a href="#" onclick="$('#record_links_add').dialog('close');" class="button neutral">[% LxERP.t8("Cancel") %]</a>
50
</div>
53 51

  
54
 <hr>
55 52

  
56
 <div id="record_list_filtered_list"></div>
53
<div id="record_list_filtered_list"></div>
57 54

  
58 55
</form>
59 56

  
60
<script type="text/javascript">
61
<!--
57
<script type="text/javascript"><!--
62 58
$(function() {
63 59
  $('#record_links_add input[name=vc_name]').focus();
64 60
  $('#record_links_add_filter_link_type').change(record_links_change_form_to_match_type);
......
102 98

  
103 99
  $('#record_links_add_filter_title').html(title);
104 100
}
105
-->
106
</script>
101
--></script>

Auch abrufbar als: Unified diff