Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 5af1f24c

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

  • ID 5af1f24cd01c34d382922da9d7f9f140f493a73b
  • Vorgänger dfaa036e
  • Nachfolger 43a5f43b

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 %]
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>
12 17
      [% END %]
13
     </th>
14
     <td>
15
      [% P.checkbox_tag("email_form.attach_file_ids[]", label=file.db_file.file_name, value=file.db_file.id, checked="1") %]
16
     </td>
17
    </tr>
18
   [% END %]
18
      </tbody>
19
    </table>
19 20
  [% END %]
20 21
[% END %]
21 22

  
22
<table>
23
 <tbody>
24
  <tr>
25
   <th align="right" nowrap>
26
    [% LxERP.t8("Recipients") %]
27
   </th>
28
   <td>
29
    [% L.input_tag("email_form.to", email_form.to, size="80") %]
30
    <span class="interactive cursor-pointer"        onclick="$('[data-toggle-recipients=1]').toggle()" data-toggle-recipients="1">[+]</span>
31
    <span class="interactive cursor-pointer hidden" onclick="$('[data-toggle-recipients=1]').toggle()" data-toggle-recipients="1">[-]</span>
32
   </td>
33
  </tr>
34

  
35
  <tr class="hidden" data-toggle-recipients="1">
36
   <th align="right" nowrap>[% LxERP.t8("Cc") %]</th>
37
   <td>[% L.input_tag("email_form.cc", email_form.cc, size="80") %]</td>
38
  </tr>
39

  
40
 [%- IF show_bcc %]
41
  <tr class="hidden" data-toggle-recipients="1">
42
   <th align="right" nowrap>[% LxERP.t8("Bcc") %]</th>
43
   <td>[% L.input_tag("email_form.bcc", email_form.bcc, size="80") %]</td>
44
  </tr>
45
 [%- END %]
46 23

  
47
  <tr>
48
   <th align="right" nowrap>[% LxERP.t8("Subject") %]</th>
49
   <td>[% L.input_tag("email_form.subject", email_form.subject, size="80") %]</td>
50
  </tr>
51

  
52
  <tr valign="top">
53
   <th align="right" nowrap>[% LxERP.t8("Message") %]
54
    <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>
55
  </th>
56
   <td>[% L.textarea_tag("email_form.message", email_form.message, rows="15" cols="80" wrap="soft") %]</td>
57
  </tr>
58

  
59
[% IF INSTANCE_CONF.get_doc_storage %]
60
  <tr>
61
   <th align="right" nowrap>[% LxERP.t8("Send printout of record") %]</th>
62
   <td>
63
    [% 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") ;
64
           options       = [
65
             [ "normal",   LxERP.t8("Create and send a new printout for this record") ],
66
             [ "old_file", LxERP.t8("Send the last printout created for this record") ],
67
             [ "no_file",  no_file_label ],
68
           ] ;
69
       L.select_tag("email_form.attachment_policy", options, onchange="kivi.SalesPurchase.activate_send_email_actions_regarding_printout()") %]
70
   </td>
71
  </tr>
72
[% END %]
73

  
74
  <tr>
75
   <th align="right" nowrap>
76
[% IF !INSTANCE_CONF.get_doc_storage %]
77
    [% LxERP.t8("Attachment name") %]
78
[% END %]
79
   </th>
80
   <td>[% L.input_tag("email_form.attachment_filename", email_form.attachment_filename, size="80") %]</td>
81
  </tr>
82

  
83
[% IF INSTANCE_CONF.get_doc_storage %]
84
  [% PROCESS attach_file_list
85
             files = FILES.files
86
             label = LxERP.t8("Record's files") %]
87

  
88
  [% PROCESS attach_file_list
89
             files = FILES.vc_files
90
             label = is_customer ? LxERP.t8("Files from customer") : LxERP.t8("Files from vendor") %]
91

  
92
  [% PROCESS attach_file_list
93
             files = FILES.part_files
94
             label = LxERP.t8("Files from parts") %]
95
[% END %]
96
 </tbody>
24
<table class="tbl-horizontal">
25
  <tbody>
26
    <tr>
27
      <th>
28
        [% LxERP.t8("Recipients") %]
29
        <span class="interactive cursor-pointer" onclick="$('[data-toggle-recipients=1]').toggle()" data-toggle-recipients="1">[+]</span>
30
        <span class="interactive cursor-pointer hidden" onclick="$('[data-toggle-recipients=1]').toggle()" data-toggle-recipients="1">[-]</span>
31
      </th>
32
      <td>
33
        [% L.input_tag("email_form.to", email_form.to, class="wi-wide", size="50") %]
34
      </td>
35
    </tr>
36
    <tr class="hidden" data-toggle-recipients="1">
37
      <th>[% LxERP.t8("Cc") %]</th>
38
      <td>[% L.input_tag("email_form.cc", email_form.cc, class="wi-wide", size="50") %]</td>
39
    </tr>
40
    [% IF show_bcc %]
41
      <tr class="hidden" data-toggle-recipients="1">
42
      <th>[% LxERP.t8("Bcc") %]</th>
43
      <td>[% L.input_tag("email_form.bcc", email_form.bcc, class="wi-wide", size="50") %]</td>
44
    </tr>
45
    [% END %]
46
    <tr>
47
      <th>[% LxERP.t8("Subject") %]</th>
48
      <td>[% L.input_tag("email_form.subject", email_form.subject, class="wi-wide", size="50") %]</td>
49
    </tr>
50
    <tr>
51
      <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>
52
      <td>[% L.textarea_tag("email_form.message", email_form.message, rows="12" cols="50" wrap="soft", class="wi-wide") %]</td>
53
    </tr>
54
    [% IF INSTANCE_CONF.get_doc_storage %]
55
      <tr>
56
      <th>[% LxERP.t8("Send printout of record") %]</th>
57
      <td>
58
        [% 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>
59
    </tr>
60
    [% END %]
61
    <tr>
62
      <th>[% IF !INSTANCE_CONF.get_doc_storage %] [% LxERP.t8("Attachment name") %] [% END %] </th>
63
      <td>[% L.input_tag("email_form.attachment_filename", email_form.attachment_filename, size="50") %]</td>
64
    </tr>
65
    [% IF INSTANCE_CONF.get_doc_storage %]
66
      [% PROCESS attach_file_list files = FILES.files label = LxERP.t8("Record's files") %]
67
      [% PROCESS attach_file_list files = FILES.vc_files label = is_customer ? LxERP.t8("Files from customer") : LxERP.t8("Files from vendor") %]
68
      [% PROCESS attach_file_list files = FILES.part_files label = LxERP.t8("Files from parts") %]
69
    [% END %]
70
  </tbody>
97 71
</table>
98 72

  
73

  
99 74
<div id="email_form_print_options"></div>
100 75

  
101
<p>
102
 [% L.button_tag(email_form.js_send_function, LxERP.t8("Send email")) %]
103
 [% L.button_tag("\$('#send_email_dialog').dialog('close');", LxERP.t8("Abort")) %]
104
</p>
76
<div class="buttons">
77
  [% L.button_tag(email_form.js_send_function, LxERP.t8("Send email")) %]
78
  [% L.button_tag("\$('#send_email_dialog').dialog('close');", LxERP.t8("Abort"), class="button neutral") %]
79
</div>

Auch abrufbar als: Unified diff