Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision ac4f772b

Von Cem Aydin vor fast 2 Jahren hinzugefügt

  • ID ac4f772b4dec3654d72eec9914d6829c0646919d
  • Vorgänger 6d8c402c
  • Nachfolger f9bdde1a

design40: Fehlende Templates zum CSV Import kopiert

- Einrückung angepasst
- inline Styles durch Klassen ersetzt

Unterschiede anzeigen:

templates/design40_webpages/csv_import/_deferred_report.html
1
[% INCLUDE 'common/flash.html' %]
2
<div id='csv_import_report'></div>
3

  
4
<script type='text/javascript'>
5
  function get_report(target, source, data){
6
    $.ajax({
7
      url:        source,
8
      success:    function (rsp) {
9
        $(target).html(rsp);
10
        $(target).find('.paginate').find('a').click(function(event){ redirect_event(event, target) });
11
      },
12
      data:       data,
13
    });
14
  };
15

  
16
  function redirect_event(event, target){
17
    event.preventDefault();
18
    get_report(target, event.target + '', {});
19
  }
20

  
21
  $(document).ready(function(){
22
    [%- IF SELF.background_job.data_as_hash.report_id %]
23
      get_report('#csv_import_report', 'controller.pl', { action: 'CsvImport/report', 'no_layout': 1, 'id': [% SELF.background_job.data_as_hash.report_id %] });
24
    [%- END %]
25
  });
26

  
27
</script>
templates/design40_webpages/csv_import/_form_artransactions.html
1
[% USE LxERP %]
2
[% USE L %]
3

  
4
<tr>
5
  <th>[% LxERP.t8('AR Transaction/AccTrans Item row names') %]:</th>
6
  <td>
7
    [% L.input_tag('settings.ar_column', SELF.profile.get('ar_column'), class='wi-normal') %]
8
    [% L.input_tag('settings.transaction_column', SELF.profile.get('transaction_column'),
9
                    class='wi-normal') %]
10
  </td>
11
</tr>
12
<tr>
13
  <th>[% LxERP.t8('Maximal amount difference') %]:</th>
14
  <td>
15
    [% L.input_tag('settings.max_amount_diff',
16
                    LxERP.format_amount(SELF.profile.get('max_amount_diff')),
17
                    class='wi-verysmall') %]
18
  </td>
19
</tr>
templates/design40_webpages/csv_import/_form_contacts.html
1
[% USE LxERP %]
2
[% USE L %]
3

  
4
<tr>
5
  <th>[% LxERP.t8("Existing contacts (with column 'cp_id')") %]:</th>
6
  <td>
7
    [% opts = [
8
      [ 'update_existing', LxERP.t8('Update properties of existing entries') ],
9
      [ 'insert_new', LxERP.t8('Insert with new database ID') ],
10
      [ 'skip', LxERP.t8('Skip entry') ] ] %]
11
    [% L.select_tag('settings.update_policy',
12
                    opts, default = SELF.profile.get('update_policy'),
13
                    class='wi-wide') %]
14
  </td>
15
</tr>
templates/design40_webpages/csv_import/_form_delivery_orders.html
1
[% USE LxERP %]
2
[% USE L %]
3

  
4
<tr>
5
  <th>[% LxERP.t8('Order/Item/Stock row name') %]:</th>
6
  <td>
7
    [% L.input_tag('settings.order_column', SELF.profile.get('order_column'), class='wi-normal') %]
8
    [% L.input_tag('settings.item_column',  SELF.profile.get('item_column'), class='wi-normal') %]
9
    [% L.input_tag('settings.stock_column', SELF.profile.get('stock_column'), class='wi-normal') %]
10
  </td>
11
</tr>
12
<tr>
13
  <th>[% LxERP.t8('Error handling') %]:</th>
14
  <td>
15
    [% L.checkbox_tag('settings.ignore_faulty_positions',
16
                      label   => LxERP.t8('Ignore faulty positions'),
17
                      checked => SELF.profile.get('ignore_faulty_positions')) %]
18
  </td>
19
</tr>
templates/design40_webpages/csv_import/_form_inventories.html
1
[% USE LxERP %]
2
[% USE L %]
3

  
4
<tr>
5
  <th>[% LxERP.t8('Warehouse') %]/[% LxERP.t8('Bin') %]:</th>
6
  <td>
7
    [% L.input_tag('settings.warehouse', SELF.profile.get('warehouse'), class='wi-wide') %]
8
    <br>
9
    [% opts = [
10
      [ 'never', LxERP.t8('Do not set this warehouse') ],
11
      [ 'missing', LxERP.t8('Apply to transfers without warehouse') ],
12
      [ 'all', LxERP.t8('Apply to all transfers') ] ] %]
13
    [% L.select_tag('settings.apply_warehouse', opts,
14
                    default = SELF.profile.get('apply_warehouse'), class='wi-wide') %]
15
    <br>
16
    [% L.input_tag('settings.bin', SELF.profile.get('bin'), class='wi-wide') %]
17
    <br>
18
    [% opts = [
19
      [ 'never', LxERP.t8('Do not set this bin') ],
20
      [ 'missing', LxERP.t8('Apply to transfers without bin') ],
21
      [ 'all', LxERP.t8('Apply to all transfers') ] ] %]
22
    [% L.select_tag('settings.apply_bin', opts,
23
                    default = SELF.profile.get('apply_bin'), class='wi-wide') %]
24
  </td>
25
</tr>
26
<tr>
27
  <th>[% LxERP.t8('Comment') %]:</th>
28
  <td>
29
    [% L.input_tag('settings.comment', SELF.profile.get('comment'), class='wi-wide') %]
30
    <br>
31
    [% opts = [
32
      [ 'never', LxERP.t8('Do not set this comment') ],
33
      [ 'missing', LxERP.t8('Apply to transfers without comment') ],
34
      [ 'all', LxERP.t8('Apply to all transfers') ] ] %]
35
    [% L.select_tag('settings.apply_comment', opts,
36
                    default = SELF.profile.get('apply_comment'), class='wi-wide') %]
37
  </td>
38
</tr>
templates/design40_webpages/csv_import/_form_orders.html
1
[% USE LxERP %]
2
[% USE L %]
3

  
4
<tr>
5
  <th>[% LxERP.t8('Order/Item row name') %]:</th>
6
  <td>
7
    [% L.input_tag('settings.order_column', SELF.profile.get('order_column'), class='wi-normal') %]
8
    [% L.input_tag('settings.item_column', SELF.profile.get('item_column'), class='wi-normal') %]
9
  </td>
10
</tr>
11
<tr>
12
  <th>[% LxERP.t8('Maximal amount difference') %]:</th>
13
  <td>
14
    [% L.input_tag('settings.max_amount_diff',
15
                    LxERP.format_amount(SELF.profile.get('max_amount_diff')),
16
                    class='wi-verysmall') %]
17
  </td>
18
</tr>
templates/design40_webpages/csv_import/_form_parts.html
1
[% USE LxERP %]
2
[% USE L %]
3
[% USE P %]
4

  
5
<tr>
6
  <th>[% LxERP.t8('Parts with existing part numbers') %]:</th>
7
  <td>
8
    [% opts = [
9
      [ 'update_parts', LxERP.t8('Update properties of existing entries') ],
10
      [ 'update_parts_sn', LxERP.t8('Update properties of existing entries / skip non-existent') ],
11
      [ 'update_prices', LxERP.t8('Update prices of existing entries') ],
12
      [ 'update_prices_sn', LxERP.t8('Update prices of existing entries / skip non-existent') ],
13
      [ 'insert_new', LxERP.t8('Insert with new part number') ],
14
      [ 'skip', LxERP.t8('Skip entry') ] ] %]
15
    [% L.select_tag('settings.article_number_policy', opts,
16
                    default = SELF.profile.get('article_number_policy'), class='wi-wide') %]
17
  </td>
18
</tr>
19
<tr>
20
  <th>[% LxERP.t8('Sellprice significant places') %]:</th>
21
  <td>
22
    [% L.select_tag('settings.sellprice_places', [ 0, 1, 2, 3, 4, 5 ],
23
                    default = SELF.profile.get('sellprice_places'), class='wi-wide') %]
24
  </td>
25
</tr>
26
<tr>
27
  <th>[% LxERP.t8('Sellprice adjustment') %]:</th>
28
  <td>
29
    [% L.input_tag('settings.sellprice_adjustment',
30
                    LxERP.format_amount(SELF.profile.get('sellprice_adjustment')),
31
                    size => "5") %]
32
    [% opts = [
33
      [ 'percent', LxERP.t8('percental') ],
34
      [ 'absolute', LxERP.t8('absolute') ] ] %]
35
    [% L.select_tag('settings.sellprice_adjustment_type', opts,
36
                    default = SELF.profile.get('sellprice_adjustment_type')) %]
37
  </td>
38
</tr>
39
<tr>
40
  <th>[% LxERP.t8('Mark as shop article if column missing') %]:</th>
41
  <td>
42
    [% opts = [ [ '1', LxERP.t8('yes') ], [ '0', LxERP.t8('no') ] ] %]
43
    [% L.select_tag('settings.shoparticle_if_missing', opts,
44
                    default = SELF.profile.get('shoparticle_if_missing'), class='wi-wide') %]
45
  </td>
46
</tr>
47
<tr>
48
  <th>[% LxERP.t8('Type') %]:</th>
49
  <td>
50
    [% opts = [
51
      [ 'part', LxERP.t8('Parts') ],
52
      [ 'service', LxERP.t8('Services') ],
53
      [ 'mixed', LxERP.t8('Mixed (requires column "type" or "pclass")') ] ] %]
54
    [% L.select_tag('settings.part_type', opts,
55
                    default = SELF.profile.get('part_type'), class='wi-wide') %]
56
  </td>
57
</tr>
58
<tr>
59
  <th>[% LxERP.t8('Parts Classification') %]:</th>
60
  <td>
61
    [% P.part.select_classification('settings.part_classification',
62
                                    default = SELF.profile.get('part_classification'),
63
                                    class='wi-wide') %]
64
  </td>
65
  </tr>
66
<tr>
67
  <th>[% LxERP.t8('Default booking group') %]:</th>
68
  <td>
69
    [% L.select_tag('settings.default_buchungsgruppe', SELF.all_buchungsgruppen,
70
                    title_key = 'description',
71
                    default = SELF.profile.get('default_buchungsgruppe'),
72
                    class='wi-wide') %]
73
    <br>
74
    [% opts = [
75
      [ 'never', LxERP.t8('Do not set default booking group') ],
76
      [ 'all', LxERP.t8('Apply to all parts') ],
77
      [ 'missing', LxERP.t8('Apply to parts without booking group') ] ] %]
78
    [% L.select_tag('settings.apply_buchungsgruppe', opts,
79
                    default = SELF.profile.get('apply_buchungsgruppe'), class='wi-wide') %]
80
  </td>
81
  </tr>
82
<tr>
83
  <th>[% LxERP.t8('Default unit') %]:</th>
84
  <td>
85
    [% L.select_tag('settings.default_unit', SELF.all_units, title_key='name',
86
                    value_key='name', default=SELF.profile.get('default_unit'),
87
                    class='wi-wide') %]
88
  </td>
89
</tr>

Auch abrufbar als: Unified diff