Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision d7a73844

Von Bernd Bleßmann vor etwa 1 Jahr hinzugefügt

design40: Kunden-/Lieferantenstamm: E-Mail-Felder mit input_email_tag

Unterschiede anzeigen:

templates/design40_webpages/customer_vendor/tabs/billing.html
2 2
[% USE HTML %]
3 3
[% USE LxERP %]
4 4
[% USE L %]
5
[% USE P %]
5 6
[% USE JavaScript %]
6 7

  
7 8
<div id="billing">
......
96 97
      <td>[% L.input_tag_trim('cv.fax', SELF.cv.fax, class='wi-lightwide') %]</td>
97 98
    </tr>
98 99
    <tr>
99
      <th>[% IF SELF.cv.email %]<a href="mailto:[% SELF.cv.email %]">[% END %][% 'E-mail' | $T8 %][% IF SELF.cv.email %]</a>[% END %]</th>
100
      <td>[% L.input_tag_trim('cv.email', SELF.cv.email, class='wi-lightwide') %]</td>
100
      <th>[% 'E-mail' | $T8 %]</th>
101
      <td>[% P.input_email_tag('cv.email', SELF.cv.email, class='wi-lightwide') %]</td>
101 102
    </tr>
102 103
    <tr>
103
      <th>[% IF SELF.cv.cc %]<a href="mailto:[% SELF.cv.cc %]">[% END %][% 'Cc E-mail' | $T8 %][% IF SELF.cv.cc %]</a>[% END %]</th>
104
      <td>[% L.input_tag_trim('cv.cc', SELF.cv.cc, class='wi-lightwide') %]</td>
104
      <th>[% 'Cc E-mail' | $T8 %]</th>
105
      <td>[% P.input_email_tag('cv.cc', SELF.cv.cc, class='wi-lightwide') %]</td>
105 106
    </tr>
106 107
    <tr>
107
      <th>[% IF SELF.cv.bcc %]<a href="mailto:[% SELF.cv.bcc %]">[% END %][% 'Bcc E-mail' | $T8 %][% IF SELF.cv.bcc %]</a>[% END %]</th>
108
      <td>[% L.input_tag_trim('cv.bcc', SELF.cv.bcc, class='wi-lightwide') %]</td>
108
      <th>[% 'Bcc E-mail' | $T8 %]</th>
109
      <td>[% P.input_email_tag('cv.bcc', SELF.cv.bcc, class='wi-lightwide') %]</td>
109 110
    </tr>
110 111
    <tr><!-- PENDENT: Funktion der Link-Erzeugung verbessern, z.B. falls z.B. Schema (http:// oder https://) schon angegeben -->
111 112
      <th>[% IF SELF.cv.homepage %]<a href="http://[% HTML.escape(SELF.cv.homepage) %]" title="[% 'Open in new window' | $T8 %]" target="_blank">[% 'Homepage' | $T8 %]</a>[% ELSE %][% 'Homepage' | $T8 %][% END %]</th>
......
115 116
    [% IF ( SELF.is_customer() ) %]
116 117
    <tr>
117 118
      <th>[% 'Email of the invoice recipient' | $T8 %]</th>
118
      <td>[% L.input_tag_trim('cv.invoice_mail', SELF.cv.invoice_mail, class='wi-lightwide') %]</td>
119
      <td>[% P.input_email_tag('cv.invoice_mail', SELF.cv.invoice_mail, class='wi-lightwide') %]</td>
119 120
    </tr>
120 121
    <tr>
121 122
      <th>[% 'Email of the delivery order recipient' | $T8 %]</th>
122
      <td>[% L.input_tag_trim('cv.delivery_order_mail', SELF.cv.delivery_order_mail, class='wi-lightwide') %]</td>
123
      <td>[% P.input_email_tag('cv.delivery_order_mail', SELF.cv.delivery_order_mail, class='wi-lightwide') %]</td>
123 124
    </tr>
124 125
    [% END %]
125 126

  
templates/design40_webpages/customer_vendor/tabs/contacts.html
2 2
[% USE HTML %]
3 3
[% USE LxERP %]
4 4
[% USE L %]
5
[% USE P %]
5 6

  
6 7
<div id="contacts">
7 8

  
......
15 16
    empty_title = LxERP.t8('New contact'),
16 17
    value_key = 'cp_id',
17 18
    title_key = 'full_name',
18
    onchange = "kivi.CustomerVendor.selectContact({onFormSet: function(){ contactsMapWidget.testInputs(); kivi.reinit_widgets(); }});",
19
    onchange = "kivi.CustomerVendor.selectContact({onFormSet: function(){ contactsMapWidget.testInputs();
20
                                                                          kivi.CustomerVendor.contacts_update_email_fields();
21
                                                                          kivi.reinit_widgets(); }});",
19 22
  )%]
20 23
</div>
21 24

  
......
128 131
  <tbody>
129 132
    <tr>
130 133
      <th>[% 'E-mail' | $T8 %]</th>
131
      <td>[% L.input_tag_trim('contact.cp_email', SELF.contact.cp_email, class="wi-wide") %]</td>
134
      <td>[% P.input_email_tag('contact.cp_email', SELF.contact.cp_email, class="update_email wi-wide") %]</td>
132 135
    </tr>
133 136
    <tr>
134 137
      <th>[% 'Phone1' | $T8 %]</th>
......
164 167
    </tr>
165 168
    <tr>
166 169
      <th>[% 'Private E-mail' | $T8 %]</th>
167
      <td>[% L.input_tag_trim('contact.cp_privatemail', SELF.contact.cp_privatemail, class="wi-wide") %]</td>
170
      <td>[% P.input_email_tag('contact.cp_privatemail', SELF.contact.cp_privatemail, class="update_email wi-wide") %]</td>
168 171
    </tr>
169 172
  </tbody>
170 173
</table>

Auch abrufbar als: Unified diff