Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 8b1c89c9

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

  • ID 8b1c89c97426f859277de0271185fbf9068f58be
  • Vorgänger e7b19745
  • Nachfolger 63cf60bc

Design 4.0: diverse Kosmetik in templates/webpages/customer_vendor/..

Unterschiede anzeigen:

templates/webpages/customer_vendor/form.html
26 26
      [% IF show_deliveries %]
27 27
        <li><a href="#deliveries">[% 'Supplies' | $T8 %]</a></li>
28 28
      [% END %]
29
      [%- IF INSTANCE_CONF.get_webdav %]
29
      [% IF INSTANCE_CONF.get_webdav %]
30 30
        <li><a href="#ui-tabs-webdav">[% 'WebDAV' | $T8 %]</a></li>
31
      [%- END %]
32
      [%- IF INSTANCE_CONF.get_doc_storage %]
31
      [% END %]
32
      [% IF INSTANCE_CONF.get_doc_storage %]
33 33
        <li><a href="controller.pl?action=File/list&file_type=attachment&object_type=[% FORM.db == 'vendor' ? 'vendor' : 'customer' %]&object_id=[% SELF.cv.id %]">[% 'Attachments' | $T8 %]</a></li>
34
      [%- END %]
34
      [% END %]
35 35
      <li><a href="#vcnotes">[% 'Notes' | $T8 %]</a></li>
36 36

  
37 37
      [% IF ( cv_cvars.size ) %]
......
81 81
  </div>
82 82
</form>
83 83

  
84
<script type="text/javascript">
85
<!--
84
<script type="text/javascript"><!--
86 85
  function submitInputButton(action)
87 86
  {
88 87
    var $hidden = $("<input type='hidden' name='action' value='CustomerVendor/" + action + "'>"),
......
99 98
    }
100 99
    return true;
101 100
  }
102
-->
103
</script>
101
--></script>
templates/webpages/customer_vendor/get_delivery.html
32 32
              [%- ELSE -%]
33 33
                <td>[% IF row.oe_id %]<a href='oe.pl?action=edit&type=[% IF SELF.is_customer %]sales_order[% ELSE %]purchase_order[% END %]&vc=customer&id=[% HTML.escape(row.oe_id) %]'>[% END %][% HTML.escape(row.ordnumber)   || '&nbsp;' %][% IF row.oe_id %]</a>[% END %]</td>
34 34
              [%- END -%]
35
              <td>[% HTML.escape(row.transdate)   || '&nbsp;' %]</td>
36
              <td>[% HTML.escape(row.description) || '&nbsp;' %]</td>
37
              <td>[% HTML.escape(row.qty)         || '&nbsp;' %]</td>
38
              <td>[% HTML.escape(row.unit)        || '&nbsp;' %]</td>
39
              <td>[% LxERP.format_amount(row.sellprice, 2) || '&nbsp;' %]</td>
40
            </tr>
41
          [% END %]
42

  
43
        </table>
35
        <td>[% HTML.escape(row.transdate)   || '&nbsp;' %]</td>
36
        <td>[% HTML.escape(row.description) || '&nbsp;' %]</td>
37
        <td>[% HTML.escape(row.qty)         || '&nbsp;' %]</td>
38
        <td>[% HTML.escape(row.unit)        || '&nbsp;' %]</td>
39
        <td>[% LxERP.format_amount(row.sellprice, 2) || '&nbsp;' %]</td>
40
      </tr>
41
    [% END %]
42
   
43
  </table>
44 44

  
45
        [% IF DELIVERY.size == 15 %]
46
          <p>[% 'This list is capped at 15 items to keep it fast. If you need a full list, please use reports.' | $T8 %]</p>
47
        [% END %]
45
  [% IF DELIVERY.size == 15 %]
46
    <p>[% 'This list is capped at 15 items to keep it fast. If you need a full list, please use reports.' | $T8 %]</p>
47
  [% END %]
48 48

  
49 49
      </td>
50 50
    </tr>
templates/webpages/customer_vendor/tabs/contacts.html
237 237

  
238 238
  [% L.button_tag('submitInputButton("delete_contact");', LxERP.t8('Delete Contact'), id = 'action_delete_contact', class = 'submit') %]
239 239
  [% IF ( !SELF.contact.cp_id ) %]
240
    <script type="text/javascript">
241
      $('#action_delete_contact').hide();
242
    </script>
240
  <script type="text/javascript">
241
    $('#action_delete_contact').hide();
242
  </script>
243 243
  [% END %]
244 244
</div>
templates/webpages/customer_vendor/tabs/price_rules.html
9 9
  <script type='text/javascript'>
10 10
    $(function() {
11 11
      window.setTimeout(function(){
12
[%- IF SELF.is_customer %]
13
        kivi.CustomerVendor.inline_report('#price_rules_customer_report', 'controller.pl', { action: 'PriceRule/list', 'filter.item_type_matches[].customer': [% SELF.cv.id %], 'filter.type': 'customer', inline: 1 });
14
[%- END %]
15
[%- IF SELF.is_vendor %]
16
        kivi.CustomerVendor.inline_report('#price_rules_vendor_report', 'controller.pl', { action: 'PriceRule/list', 'filter.item_type_matches[].vendor': [% SELF.cv.id %], 'filter.type': 'vendor', inline: 1 });
17
[%- END %]
12
      [% IF SELF.is_customer %]
13
        kivi.CustomerVendor.inline_report(
14
          '#price_rules_customer_report', 
15
          'controller.pl', 
16
          { action: 'PriceRule/list', 'filter.item_type_matches[].customer': [% SELF.cv.id %], 'filter.type': 'customer', inline: 1 }
17
        );
18
      [% END %]
19
      [% IF SELF.is_vendor %]
20
        kivi.CustomerVendor.inline_report(
21
          '#price_rules_vendor_report', 
22
          'controller.pl', 
23
          { action: 'PriceRule/list', 'filter.item_type_matches[].vendor': [% SELF.cv.id %], 'filter.type': 'vendor', inline: 1 }
24
        );
25
      [% END %]
18 26
      }, 200);
19 27
    })
20 28
  </script>
templates/webpages/customer_vendor/test_page.html
34 34
---[% P.customer_vendor.picker('vendor5_id', '', type='vendor') %]---
35 35

  
36 36

  
37
<script type='text/javascript'>
37
<script type="text/javascript">
38 38
 $('#customer_id2').change(function() { $('#change1').html($('#customer_id2').val()) })
39 39
 $('#customer_id2').on('set_item:CustomerVendorPicker', function(e,o) { $('#change2').html(o.greeting) })
40 40

  

Auch abrufbar als: Unified diff