Projekt erfassen: CustomerPicker verwenden
authorJan Büren <jan@kivitendo-premium.de>
Thu, 21 Apr 2016 12:01:01 +0000 (14:01 +0200)
committerJan Büren <jan@kivitendo-premium.de>
Mon, 9 May 2016 10:43:55 +0000 (12:43 +0200)
templates/webpages/project/_basic_data.html

index 31bf79d..ffd9fc7 100644 (file)
 
  <tr>
   <th align="right">[% 'Customer' | $T8 %]</th>
-  <td>[% L.select_tag('project.customer_id', SELF.customers, default=SELF.project.customer_id, title_key='name', with_empty=1, style='width: 300px') %]</td>
+<td>[% L.customer_vendor_picker('project.customer_id', SELF.project.customer_id, type='customer', fat_set_item=1, style='width: 300px', default=SELF.project.customer_id)%] [%- IF SELF.project.customer_id %]
+      <!-- input type="button" value="[% 'Details (one letter abbreviation)' | $T8 %]" onclick="show_vc_details('customer')" -->
+[%- END %]
+</td>
  </tr>
 
  <tr>