Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision a3c2c4fc

Von Werner Hahn vor mehr als 7 Jahren hinzugefügt

  • ID a3c2c4fcfced46fe47f57f255807808ab2d250be
  • Vorgänger db148322
  • Nachfolger 7df422c9

Shopmodul: css aus template in webshop.css

Unterschiede anzeigen:

css/webshop.css
36 36
  width: 100%;
37 37
  align: left;
38 38
}
39

  
40
.shop_transferable{
41
  background:rgba(43, 208, 54, 0.5);
42
}
43
.shop_alert{
44
  background:rgba(255, 0, 0, 0.5);
45
}
46
.shop_delivery{
47
  background:rgba(100, 100, 100, 0.5);
48
}
49

  
templates/webpages/shop_order/list.html
1 1
[%- USE HTML -%][%- USE LxERP -%][%- USE L -%][%- USE T8 -%]
2 2
[% USE Dumper %]
3 3

  
4
[% L.stylesheet_tag('webshop') %]
4 5
[%- INCLUDE 'common/flash.html' %]
5 6
<h1>[% title %]<span style="float:right;">[% 'Number data sets' | $T8 %]: [% SHOPORDERS.size %]</span></h1>
6 7
[%- PROCESS 'shop_order/_filter.html' filter=SELF.models.filtered.laundered %]
......
147 148
 <form method="post" action="controller.pl" name="shop_orders_list" id="shoporderslist">
148 149
  [% FOREACH shop_order = SHOPORDERS %]
149 150
  [% # Dumper.dump_html(shop_order) %]
150
    [% IF shop_order.kivi_customer.id && shop_order.kivi_customer.order_lock == 0 && shop_order.open_invoices == 0 %] [% SET transferable = 1 %] [% SET transferable_class = 'style="background:rgba(43, 208, 54, 0.5);"' %] [% ELSE %] [% SET transferable = 0 %] [% SET transferable_class = '' %][% END %]
151
    [% IF shop_order.kivi_customer.id && shop_order.kivi_customer.order_lock == 0 && shop_order.open_invoices == 0 %] [% SET transferable = 1 %] [% SET transferable_class = 'class="shop_transferable"' %] [% ELSE %] [% SET transferable = 0 %] [% SET transferable_class = '' %][% END %]
151 152
  <tr class="listrow">
152 153
    <td>[% HTML.escape(shop_order.shop.description) %]</td>
153 154
    <td>[% shop_order.order_date.dmy('.') _ ' ' _ shop_order.order_date.hms(':') %]<br>[% shop_order.order_date.dmy('.') _ ' ' _ shop_order.itime.hms(':') %]</td>
......
163 164
      <br>[% HTML.escape(shop_order.billing_street) %]
164 165
      <br>[% HTML.escape(shop_order.billing_zipcode) %]&nbsp;[% HTML.escape(shop_order.billing_city) %]
165 166
      <br>[% HTML.escape(shop_order.billing_country) %]
166
      <br>[% IF shop_order.open_invoices > 0 || shop_order.customer.order_lock == 1 %][% SET alertclass = 'style="background:rgba(255,0,0,1);"' %][% ELSE %][% SET alertclass = '' %][% END %]<span [% alertclass %]>&nbsp;&nbsp;[% 'Customernumber' | $T8 %] [% HTML.escape(shop_order.kivi_customer.customernumber) %] -- [% 'Invoices' | $T8 %] [% shop_order.open_invoices %]&nbsp;&nbsp;</span></td>
167
    [% IF (shop_order.delivery_lastname != shop_order.billing_lastname || shop_order.delivery_firstname != shop_order.billing_firstname || shop_order.delivery_street != shop_order.billing_street || shop_order.delivery_city != shop_order.billing_city) %] [% SET deliveryclass = 'style="background:rgba(100, 100, 100, 0.5);"' %] [% ELSE %] [% SET deliveryclass = '' %] [% END %]
167
      <br>[% IF shop_order.open_invoices > 0 || shop_order.customer.order_lock == 1 %][% SET alertclass = 'class="shop_alert"' %][% ELSE %][% SET alertclass = '' %][% END %]<span [% alertclass %]>&nbsp;&nbsp;[% 'Customernumber' | $T8 %] [% HTML.escape(shop_order.kivi_customer.customernumber) %] -- [% 'Invoices' | $T8 %] [% shop_order.open_invoices %]&nbsp;&nbsp;</span></td>
168
    [% IF (shop_order.delivery_lastname != shop_order.billing_lastname || shop_order.delivery_firstname != shop_order.billing_firstname || shop_order.delivery_street != shop_order.billing_street || shop_order.delivery_city != shop_order.billing_city) %] [% SET deliveryclass = 'class="shop_delivery"' %] [% ELSE %] [% SET deliveryclass = '' %] [% END %]
168 169
    <td [% deliveryclass %]>[% IF shop_order.customer_company %]<b>[% HTML.escape(shop_order.customer_company) %]</b><br>[% END %]
169 170
      <b>[% HTML.escape(shop_order.delivery_lastname) %],&nbsp;[% HTML.escape(shop_order.delivery_firstname) %]</b>
170 171
      <br>[% HTML.escape(shop_order.delivery_street) %]

Auch abrufbar als: Unified diff