Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 724e6329

Von Hans P. Schlaepfer vor mehr als 3 Jahren hinzugefügt

  • ID 724e6329410c49ce27e211aa31240ca6ac3bcffb
  • Vorgänger 3349703b
  • Nachfolger e7f6589a

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

Unterschiede anzeigen:

templates/webpages/oe/edit_periodic_invoices_config.html
3 3
[% USE L %]
4 4
[% SET style="width: 400px" %]
5 5

  
6
[%- IF !popup_dialog -%]
7
<h1>[% title %]</h1>
8
[%- END -%]
6
[% IF !popup_dialog %]
7
  <h1>[% title %]</h1>
8
[% END %]
9 9

  
10
 <form name="Form" action="oe.pl" method="post">
10
<form name="Form" action="oe.pl" method="post">
11 11

  
12
  <p>
13
   <table border="0">
14
    <tr>
15
     <th align="right">[% LxERP.t8('Status') %]</th>
16
     <td>[% L.checkbox_tag("active", checked => config.active, label => LxERP.t8('Active')) %]</td>
17
    </tr>
12
<div class="wrapper">
18 13

  
14
<table class="tbl-horizontal">
15
  <caption>[% title %]</caption>
16
  <colgroup> <col class="wi-normal"><col class="wi-lightwide"> </colgroup>
17
  <tbody>
19 18
    <tr>
20
     <td>&nbsp;</td>
19
     <th>[% LxERP.t8('Status') %]</th>
21 20
     <td>
22
      [% L.checkbox_tag('terminated', label => LxERP.t8('terminated'), checked => config.terminated) %]
21
       [% L.checkbox_tag("active", checked => config.active, label => LxERP.t8('Active')) %]<br>
22
       [% L.checkbox_tag('terminated', label => LxERP.t8('terminated'), checked => config.terminated) %]
23 23
     </td>
24 24
    </tr>
25

  
26 25
    <tr>
27
     <th align="right" valign="top">[%- LxERP.t8('Billing Periodicity') %]</th>
28
     <td valign="top">
29
      [% L.select_tag("periodicity", [ [ "o", LxERP.t8("one time") ], [ "m", LxERP.t8("monthly") ], [ "q", LxERP.t8("every third month") ], [ "b", LxERP.t8("semiannually") ], [ "y", LxERP.t8("yearly") ] ], default=config.periodicity, style=style) %]
26
     <th>[% LxERP.t8('Billing Periodicity') %]</th>
27
     <td>
28
       [% L.select_tag("periodicity", [
29
           [ "o", LxERP.t8("one time") ],
30
           [ "m", LxERP.t8("monthly") ],
31
           [ "q", LxERP.t8("every third month") ],
32
           [ "b", LxERP.t8("semiannually") ],
33
           [ "y", LxERP.t8("yearly") ]
34
         ],
35
         default=config.periodicity,
36
         style=style) %]
30 37
     </td>
31 38
    </tr>
32

  
33 39
    <tr>
34
     <th align="right" valign="top">[%- LxERP.t8('Order value periodicity') %]</th>
35
     <td valign="top">
36
      [% L.select_tag("order_value_periodicity",
37
                      [ [ "p", LxERP.t8("same as periodicity") ], [ "m", LxERP.t8("monthly") ], [ "q", LxERP.t8("every third month") ], [ "b", LxERP.t8("semiannually") ], [ "y", LxERP.t8("yearly") ],
38
                        [ "2", LxERP.t8("2 years") ], [ "3", LxERP.t8("3 years") ], [ "4", LxERP.t8("4 years") ], [ "5", LxERP.t8("5 years") ], ],
39
                      default=config.order_value_periodicity, style=style) %]
40
     <th>[% LxERP.t8('Order value periodicity') %]</th>
41
     <td>
42
      [% L.select_tag("order_value_periodicity", [
43
            [ "p", LxERP.t8("same as periodicity") ],
44
            [ "m", LxERP.t8("monthly") ],
45
            [ "q", LxERP.t8("every third month") ],
46
            [ "b", LxERP.t8("semiannually") ],
47
            [ "y", LxERP.t8("yearly") ],
48
            [ "2", LxERP.t8("2 years") ],
49
            [ "3", LxERP.t8("3 years") ],
50
            [ "4", LxERP.t8("4 years") ],
51
            [ "5", LxERP.t8("5 years") ],
52
          ],
53
          default=config.order_value_periodicity,
54
          style=style) %]
40 55
     </td>
41 56
    </tr>
42

  
43 57
    <tr>
44
     <th align="right">[%- LxERP.t8('Start date') %]</th>
45
     <td valign="top">
46
      [% L.date_tag("start_date_as_date", config.start_date_as_date) %]
47
     </td>
58
     <th>[% LxERP.t8('Start date') %]</th>
59
     <td>[% L.date_tag("start_date_as_date", config.start_date_as_date) %]</td>
48 60
    </tr>
49

  
50 61
    <tr>
51
     <th align="right">[%- LxERP.t8('End date') %]<sup>(1)</sup></th>
52
     <td valign="top">
53
      [% L.date_tag("end_date_as_date", config.end_date_as_date) %]
54
     </td>
62
     <th>[% LxERP.t8('End date') %]<sup>1</sup></th>
63
     <td>[% L.date_tag("end_date_as_date", config.end_date_as_date) %]</td>
55 64
    </tr>
56

  
57 65
    <tr>
58
     <th align="right">[%- LxERP.t8('Create first invoice on') %]<sup>(2)</sup></th>
59
     <td valign="top">
60
      [% L.date_tag("first_billing_date_as_date", config.first_billing_date_as_date) %]
61
     </td>
66
     <th>[% LxERP.t8('Create first invoice on') %]<sup>2</sup></th>
67
     <td>[% L.date_tag("first_billing_date_as_date", config.first_billing_date_as_date) %]</td>
62 68
    </tr>
63

  
64 69
    <tr>
65
     <th align="right">[% LxERP.t8('Extend automatically by n months') %]</th>
66
     <td valign="top">
70
     <th>[% LxERP.t8('Extend automatically by n months') %]</th>
71
     <td>
67 72
      [% L.input_tag("extend_automatically_by", config.extend_automatically_by, size => 10) %]
68 73
     </td>
69 74
    </tr>
70

  
71 75
    <tr>
72
     <th align="right">[%- LxERP.t8('Record in') %]</th>
73
     <td valign="top">
74
      [% L.select_tag("ar_chart_id", AR, title_key => 'description', default => config.ar_chart_id, style=style) %]
75
     </td>
76
     <th>[% LxERP.t8('Record in') %]</th>
77
     <td>[% L.select_tag("ar_chart_id", AR, title_key => 'description', default => config.ar_chart_id, style=style) %]</td>
76 78
    </tr>
77

  
78 79
    <tr>
79
     <th align="right">[%- LxERP.t8('direct debit') %]</th>
80
     <td valign="top">[% L.checkbox_tag("direct_debit", checked=config.direct_debit) %]</td>
80
     <th>[% LxERP.t8('direct debit') %]</th>
81
     <td>[% L.checkbox_tag("direct_debit", checked=config.direct_debit) %]</td>
81 82
    </tr>
82

  
83 83
    <tr class="rule-before">
84
     <th align="right">[%- LxERP.t8('Print automatically') %]</th>
85
     <td valign="top">
84
     <th>[% LxERP.t8('Print automatically') %]</th>
85
     <td>
86 86
      [% L.checkbox_tag("print", onclick => "toggle_printer_id_ctrl()", checked => config.print) %]
87 87
     </td>
88 88
    </tr>
89

  
90 89
    <tr>
91
     <th align="right">[%- LxERP.t8('Printer') %]</th>
92
     <td valign="top">
90
     <th>[% LxERP.t8('Printer') %]</th>
91
     <td>
93 92
      [% L.select_tag("printer_id", ALL_PRINTERS, title_key = 'printer_description', default = config.printer_id, disabled = !config.print, id = "pic_printer_id", style=style) %]
94 93
     </td>
95 94
    </tr>
96

  
97 95
    <tr>
98
     <th align="right">[%- LxERP.t8('Copies') %]</th>
99
     <td valign="top">[% L.input_tag("copies", config.copies, size => 6, disabled => !config.print, id = "pic_copies") %]</td>
96
     <th>[% LxERP.t8('Copies') %]</th>
97
     <td>[% L.input_tag("copies", config.copies, size => 6, disabled => !config.print, id = "pic_copies") %]</td>
100 98
    </tr>
101

  
102 99
    <tr class="rule-before">
103
     <th align="right">[%- LxERP.t8("Send invoice via email") %]</th>
100
     <th>[% LxERP.t8("Send invoice via email") %]</th>
104 101
     <td>[% L.checkbox_tag("send_email", onclick => "toggle_send_email_ctrl()", checked=config.send_email) %]</td>
105 102
    </tr>
106 103
    <tr>
107
     <th align="right">[%- LxERP.t8("Email of the invoice recipient") %]</th>
104
     <th>[%- LxERP.t8("Email of the invoice recipient") %]</th>
108 105
     <td>[% email_recipient_invoice_address %]</td>
109 106
    </tr>
110 107
    <tr>
111
     <th align="right">[%- LxERP.t8("Contact to send to") %]</th>
108
     <th>[% LxERP.t8("Contact to send to") %]</th>
112 109
     <td>[% L.select_tag("email_recipient_contact_id", ALL_CONTACTS, title_key="full_name_dep", value_key="cp_id", default=config.email_recipient_contact_id, with_empty=1, disabled=!config.send_email, style=style) %]</td>
113 110
    </tr>
114

  
115 111
    <tr>
116
     <th align="right">[%- LxERP.t8("Other recipients") %]<sup>3</sup></th>
112
     <th>[% LxERP.t8("Other recipients") %]<sup>3</sup></th>
117 113
     <td>[% L.input_tag("email_recipient_address", config.email_recipient_address, disabled=!config.send_email, style=style) %]</td>
118 114
    </tr>
119

  
120 115
    <tr>
121
     <th align="right">[%- LxERP.t8("Sender") %]<sup>4</sup></th>
116
     <th>[% LxERP.t8("Sender") %]<sup>4</sup></th>
122 117
     <td>[% L.input_tag("email_sender", config.email_sender, disabled=!config.send_email, style=style) %]</td>
123 118
    </tr>
124

  
125 119
    <tr>
126
     <th align="right">[%- LxERP.t8("Subject") %]</th>
120
     <th>[% LxERP.t8("Subject") %]</th>
127 121
     <td>[% L.input_tag("email_subject", config.email_subject, disabled=!config.send_email, style=style) %]</td>
128 122
    </tr>
129

  
130 123
    <tr>
131
     <th align="right" valign="top">[%- LxERP.t8("Message") %]</th>
132
     <td valign="top">[% L.textarea_tag("email_body", config.email_body, disabled=!config.send_email, rows=8, style=style) %]</td>
124
     <th>[% LxERP.t8("Message") %]</th>
125
     <td>[% L.textarea_tag("email_body", config.email_body, disabled=!config.send_email, rows=8, style=style) %]</td>
133 126
    </tr>
134
   </table>
135
  </p>
136

  
137
  <hr>
127
  </tbody>
128
</table>
138 129

  
139
  <p>(1): [%- LxERP.t8('The end date is the last day for which invoices will possibly be created.') %]</p>
140
  <p>(2): [% LxERP.t8("If missing then the start date will be used.") %]</p>
141
  <p>(3): [% LxERP.t8("Multiple addresses can be entered separated by commas.") %]</p>
142
  <p>(4): [% LxERP.t8("If left empty the default sender from the kivitendo configuration will be used (key 'email_from' in section 'periodic_invoices'; current value: #1).", HTML.escape(LXCONFIG.periodic_invoices.email_from)) %]</p>
130
</div><!-- /.wrapper -->
143 131

  
144
  [%- IF popup_dialog -%]
132
[% IF popup_dialog %]
133
  <div class="buttons">
145 134
    [% L.button_tag(popup_js_assign_function, LxERP.t8('Assign')) %]
146 135
    [% L.button_tag(popup_js_close_function, LxERP.t8('Cancel')) %]
147

  
148
  [%- ELSE -%]
136
  </div>
137
[% ELSE %]
138
  <div class="buttons">
149 139
    [% L.hidden_tag('action', 'save_periodic_invoices_config') %]
150

  
151
    <p>
152
     [% L.submit_tag('', LxERP.t8('Assign')) %]
153
     [% L.submit_tag('', LxERP.t8('Cancel'), onclick => "self.close(); return false;") %]
154
    </p>
155
  [%- END -%]
156
 </form>
157

  
158
 <script type="text/javascript">
159
  <!--
160
    function toggle_printer_id_ctrl() {
161
      var disabled = !$('#print').prop('checked');
162
      $('#pic_printer_id').prop('disabled', disabled);
163
      $('#pic_copies').prop('disabled', disabled);
164
    }
165

  
166
    function toggle_send_email_ctrl() {
167
      var disabled = !$('#send_email').prop('checked');
168
      $('#email_recipient_contact_id').prop('disabled', disabled);
169
      $('#email_recipient_address').prop('disabled', disabled);
170
      $('#email_sender').prop('disabled', disabled);
171
      $('#email_subject').prop('disabled', disabled);
172
      $('#email_body').prop('disabled', disabled);
173
    }
174
    -->
175
 </script>
140
    [% L.submit_tag('', LxERP.t8('Assign')) %]
141
    [% L.submit_tag('', LxERP.t8('Cancel'), onclick => "self.close(); return false;") %]
142
  </div>
143
[% END %]
144

  
145
</form>
146

  
147
<div class="wrapper long-description">
148
  <p><sup>1</sup> [% LxERP.t8('The end date is the last day for which invoices will possibly be created.') %]</p>
149
  <p><sup>2</sup> [% LxERP.t8("If missing then the start date will be used.") %]</p>
150
  <p><sup>3</sup> [% LxERP.t8("Multiple addresses can be entered separated by commas.") %]</p>
151
  <p><sup>4</sup> [% LxERP.t8("If left empty the default sender from the kivitendo configuration will be used (key 'email_from' in section 'periodic_invoices'; current value: #1).", HTML.escape(LXCONFIG.periodic_invoices.email_from)) %]</p>
152
</div>
153

  
154
<script type="text/javascript"><!--
155
  function toggle_printer_id_ctrl() {
156
    var disabled = !$('#print').prop('checked');
157
    $('#pic_printer_id').prop('disabled', disabled);
158
    $('#pic_copies').prop('disabled', disabled);
159
  }
160

  
161
  function toggle_send_email_ctrl() {
162
    var disabled = !$('#send_email').prop('checked');
163
    $('#email_recipient_contact_id').prop('disabled', disabled);
164
    $('#email_recipient_address').prop('disabled', disabled);
165
    $('#email_sender').prop('disabled', disabled);
166
    $('#email_subject').prop('disabled', disabled);
167
    $('#email_body').prop('disabled', disabled);
168
  }
169
--></script>

Auch abrufbar als: Unified diff