Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 7ce093c0

Von Hans Peter Schlaepfer vor mehr als 3 Jahren hinzugefügt

  • ID 7ce093c0712a5fdafbcbbb8b6043e227ba80b25a
  • Vorgänger 2641a546
  • Nachfolger d53e6c7e

Neues kivitendo Design Aenderungen in templates/webpages/common/..

Unterschiede anzeigen:

templates/webpages/common/_send_email_dialog.html
1
[%- USE HTML %][%- USE LxERP -%][%- USE L -%][%- USE P -%]
2
[%- SET have_files = 0 %]
1
[% USE HTML %]
2
[% USE LxERP %]
3
[% USE L %]
4
[% USE P %]
5
[% SET have_files = 0 %]
3 6

  
4 7
[% BLOCK attach_file_list %]
5 8
  [% IF files.as_list.size %]
6
   [% SET have_files = 1;
7
      FOREACH file = files.as_list %]
8
    <tr>
9
     <th align="right" nowrap>
10
      [% IF loop.first %]
11
       [% label %]
12
      [% END %]
13
     </th>
14
     <td>
15
      [% IF checked %]
16
        [% P.checkbox_tag("email_form.attach_file_ids[]", label=file.db_file.file_name, value=file.db_file.id, checked="1") %]
17
      [% ELSE %]
18
        [% P.checkbox_tag("email_form.attach_file_ids[]", label=file.db_file.file_name, value=file.db_file.id, checked="0") %]
9
    <table class="tbl-horizontal">
10
      <tbody>
11
      [% SET have_files = 1 ;
12
        FOREACH file = files.as_list %]
13
        <tr>
14
         <th>[% IF loop.first %][% label %][% END %]</th>
15
         <td>[% P.checkbox_tag("email_form.attach_file_ids[]", label=file.db_file.file_name, value=file.db_file.id, checked="1") %]</td>
16
        </tr>
19 17
      [% END %]
20
     </td>
21
    </tr>
22
   [% END %]
18
      </tbody>
19
    </table>
23 20
  [% END %]
24 21
[% END %]
25 22

  
26
<table>
27
 <tbody>
28
  <tr>
29
   <th align="right" nowrap>
30
    [% IF is_invoice_mail  %]
31
      [% LxERP.t8("Invoice to:") %]
32
    [% ELSE %]
33
      [% LxERP.t8("Recipients") %]
34
    [% END %]
35
   </th>
36
   <td>
37
    [% L.input_tag("email_form.to", email_form.to, size="80",readonly=is_invoice_mail ) %]
38
    <span class="interactive cursor-pointer"        onclick="$('[data-toggle-recipients=1]').toggle()" data-toggle-recipients="1">[+]</span>
39
    <span class="interactive cursor-pointer hidden" onclick="$('[data-toggle-recipients=1]').toggle()" data-toggle-recipients="1">[-]</span>
40
   </td>
41
  </tr>
42

  
43
  <tr class="hidden" data-toggle-recipients="1">
44
   <th align="right" nowrap>[% LxERP.t8("Cc") %]</th>
45
   <td>[% L.input_tag("email_form.cc", email_form.cc, size="80") %]</td>
46
  </tr>
47

  
48
 [%- IF show_bcc %]
49
  <tr class="hidden" data-toggle-recipients="1">
50
   <th align="right" nowrap>[% LxERP.t8("Bcc") %]</th>
51
   <td>[% L.input_tag("email_form.bcc", email_form.bcc, size="80") %]</td>
52
  </tr>
53
 [%- END %]
54

  
55
  <tr>
56
   <th align="right" nowrap>[% LxERP.t8("Subject") %]</th>
57
   <td>[% L.input_tag("email_form.subject", email_form.subject, size="80") %]</td>
58
  </tr>
59

  
60
  <tr valign="top">
61
   <th align="right" nowrap>[% LxERP.t8("Message") %]
62
    <sup> [% L.link("generictranslations.pl?action=edit_email_strings", "1)", title=LxERP.t8('Tired of copying always nice phrases for this message? Click here to use the new preset message option!'), target="_blank") %]</sup>
63
  </th>
64
   <td>[% L.textarea_tag("email_form.message", email_form.message, rows="15" cols="80" wrap="soft") %]</td>
65
  </tr>
66 23

  
67
[% IF INSTANCE_CONF.get_doc_storage %]
68
  <tr>
69
   <th align="right" nowrap>[% LxERP.t8("Send printout of record") %]</th>
70
   <td>
71
    [% SET no_file_label = have_files ? LxERP.t8("Don't include a printout of the record with the email, only selected files") : LxERP.t8("Don't include a printout of the record with the email") ;
72
           options       = [
73
             [ "normal",   LxERP.t8("Create and send a new printout for this record") ],
74
             [ "old_file", LxERP.t8("Send the last printout created for this record") ],
75
             [ "no_file",  no_file_label ],
76
           ] ;
77
       L.select_tag("email_form.attachment_policy", options, onchange="kivi.SalesPurchase.activate_send_email_actions_regarding_printout()") %]
78
   </td>
79
  </tr>
80
[% END %]
81

  
82
  <tr>
83
   <th align="right" nowrap>
84
[% IF !INSTANCE_CONF.get_doc_storage %]
85
    [% LxERP.t8("Attachment name") %]
86
[% END %]
87
   </th>
88
   <td>[% L.input_tag("email_form.attachment_filename", email_form.attachment_filename, size="80") %]</td>
89
  </tr>
90

  
91
[% IF INSTANCE_CONF.get_doc_storage %]
92
  [% PROCESS attach_file_list
93
             files = FILES.files
94
             checked = INSTANCE_CONF.get_email_attachment_record_files_checked
95
             label = LxERP.t8("Record's files") %]
96

  
97
  [% PROCESS attach_file_list
98
             files = FILES.vc_files
99
             checked = INSTANCE_CONF.get_email_attachment_vc_files_checked
100
             label = is_customer ? LxERP.t8("Files from customer") : LxERP.t8("Files from vendor") %]
101

  
102
  [% PROCESS attach_file_list
103
             files = FILES.part_files
104
             checked = INSTANCE_CONF.get_email_attachment_part_files_checked
105
             label = LxERP.t8("Files from parts") %]
106
[% END %]
107
 </tbody>
24
<table class="tbl-horizontal">
25
  <tbody>
26
    <tr>
27
      <th>
28
        [% IF is_invoice_mail  %]
29
          [% LxERP.t8("Invoice to:") %]
30
        [% ELSE %]
31
          [% LxERP.t8("Recipients") %]
32
        [% END %]
33
        <span class="interactive cursor-pointer" onclick="$('[data-toggle-recipients=1]').toggle()" data-toggle-recipients="1">[+]</span>
34
        <span class="interactive cursor-pointer hidden" onclick="$('[data-toggle-recipients=1]').toggle()" data-toggle-recipients="1">[-]</span>
35
      </th>
36
      <td>
37
        [% L.input_tag("email_form.to", email_form.to, class="wi-wide", size="50", readonly=is_invoice_mail) %]
38
      </td>
39
    </tr>
40
    <tr class="hidden" data-toggle-recipients="1">
41
      <th>[% LxERP.t8("Cc") %]</th>
42
      <td>[% L.input_tag("email_form.cc", email_form.cc, class="wi-wide", size="50") %]</td>
43
    </tr>
44
    [% IF show_bcc %]
45
      <tr class="hidden" data-toggle-recipients="1">
46
      <th>[% LxERP.t8("Bcc") %]</th>
47
      <td>[% L.input_tag("email_form.bcc", email_form.bcc, class="wi-wide", size="50") %]</td>
48
    </tr>
49
    [% END %]
50
    <tr>
51
      <th>[% LxERP.t8("Subject") %]</th>
52
      <td>[% L.input_tag("email_form.subject", email_form.subject, class="wi-wide", size="50") %]</td>
53
    </tr>
54
    <tr>
55
      <th>[% LxERP.t8("Message") %] <sup> [% L.link("generictranslations.pl?action=edit_email_strings", "1)", title=LxERP.t8('Tired of copying always nice phrases for this message? Click here to use the new preset message option!'), target="_blank") %]</sup> </th>
56
      <td>[% L.textarea_tag("email_form.message", email_form.message, rows="12" cols="50" wrap="soft", class="wi-wide") %]</td>
57
    </tr>
58
    [% IF INSTANCE_CONF.get_doc_storage %]
59
      <tr>
60
      <th>[% LxERP.t8("Send printout of record") %]</th>
61
      <td>
62
        [% SET no_file_label = have_files ? LxERP.t8("Don't include a printout of the record with the email, only selected files") : LxERP.t8("Don't include a printout of the record with the email") ; options = [ [ "normal", LxERP.t8("Create and send a new printout for this record") ], [ "old_file", LxERP.t8("Send the last printout created for this record") ], [ "no_file", no_file_label ], ] ; L.select_tag("email_form.attachment_policy", options, onchange="kivi.SalesPurchase.activate_send_email_actions_regarding_printout()",class="wi-wide",size="50") %] </td>
63
    </tr>
64
    [% END %]
65
    <tr>
66
      <th>[% IF !INSTANCE_CONF.get_doc_storage %] [% LxERP.t8("Attachment name") %] [% END %] </th>
67
      <td>[% L.input_tag("email_form.attachment_filename", email_form.attachment_filename, size="50") %]</td>
68
    </tr>
69
    [% IF INSTANCE_CONF.get_doc_storage %]
70
      [% PROCESS attach_file_list files = FILES.files label = LxERP.t8("Record's files") %]
71
      [% PROCESS attach_file_list files = FILES.vc_files label = is_customer ? LxERP.t8("Files from customer") : LxERP.t8("Files from vendor") %]
72
      [% PROCESS attach_file_list files = FILES.part_files label = LxERP.t8("Files from parts") %]
73
    [% END %]
74
  </tbody>
108 75
</table>
109 76

  
77

  
110 78
<div id="email_form_print_options"></div>
111 79

  
112
<p>
113
 [% L.button_tag(email_form.js_send_function, LxERP.t8("Send email")) %]
114
 [% L.button_tag("\$('#send_email_dialog').dialog('close');", LxERP.t8("Abort")) %]
115
</p>
80
<div class="buttons">
81
  [% L.button_tag(email_form.js_send_function, LxERP.t8("Send email")) %]
82
  [% L.button_tag("\$('#send_email_dialog').dialog('close');", LxERP.t8("Abort"), class="button neutral") %]
83
</div>

Auch abrufbar als: Unified diff