Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 7196276b

Von Moritz Bunkus vor mehr als 8 Jahren hinzugefügt

  • ID 7196276bca4a155d1bcc3947859bc7d4ec1edcd6
  • Vorgänger 17041e6c
  • Nachfolger f2b69169

Brieffunktion: unbenutzte Tabellenspalten entfernt, vc_id → customer_id umbenannt

Unterschiede anzeigen:

templates/webpages/letter/edit.html
33 33
   <table width=90%>
34 34
    <tr>
35 35
     <th align='right'>[% 'Customer' | $T8 %]:</th>
36
     <td>[% P.customer_vendor_picker('letter.vc_id', letter.vc_id, type='customer') %]
36
     <td>[% P.customer_vendor_picker('letter.customer_id', letter.customer_id, type='customer') %]
37 37
[%- IF letter.customer_id %]
38 38
      <input type="button" value="[% 'Details (one letter abbreviation)' | $T8 %]" onclick="show_vc_details('customer')">
39 39
[%- END %]
......
41 41
    </tr>
42 42
    <tr>
43 43
     <th align='right'>[% 'Contact Person' | $T8 %]</th>
44
     <td>[% L.select_tag('letter.cp_id', letter.vc_id ? letter.customer.contacts : [], value_key='cp_id', title_key='full_name', default=letter.cp_id) %]</td>
44
     <td>[% L.select_tag('letter.cp_id', letter.customer_id ? letter.customer.contacts : [], value_key='cp_id', title_key='full_name', default=letter.cp_id) %]</td>
45 45
    </tr>
46 46
    <tr>
47 47
     <th align='right'>[% 'Your Reference' | $T8 %]:</th>
......
163 163

  
164 164
<script type='text/javascript'>
165 165
  $(function(){
166
    $('#letter_vc_id').change(function(){
166
    $('#letter_customer_id').change(function(){
167 167
      var data = $('form').serializeArray();
168 168
      data.push({ name: 'action_update_contacts', value: 1 });
169 169
      $.post('controller.pl', data, kivi.eval_json_result);

Auch abrufbar als: Unified diff