Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 6051a1b8

Von Hans P. Schlaepfer vor mehr als 4 Jahren hinzugefügt

  • ID 6051a1b8200cb8fea01c962c79102b8421242a4e
  • Vorgänger ee75a122
  • Nachfolger a6eb59c0

Neues Design 2019 Standard-Code templates/webpages/shop_order/show.html

Unterschiede anzeigen:

templates/webpages/shop_order/show.html
[% USE L %]
[% USE T8 %]
[% L.stylesheet_tag('webshop') %]
[%- INCLUDE 'common/flash.html' %]
<h1>[% title %]</h1>
<div class="shop_table shop_main">
<div class="shop_table-row">
<div class="shop_table-cell">
<form method="post" action="controller.pl" id="customer">[% L.hidden_tag('create_customer','customer') %][% L.hidden_tag('import_id', IMPORT.id) %]
<div class="shop_table shop_table_address">
<div class="shop_table-row listheading">
<div class="shop_table-cell">[% 'Shop Customer Address' | $T8 %]</div>
<div class="shop_table-cell"></div>
</div>
<div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Greeting' | $T8 %]</div><div class="shop_table-cell">[% HTML.escape(IMPORT.customer_greeting) %]</div></div>
<div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Firstname' | $T8 %]</div><div class="shop_table-cell">[% HTML.escape(IMPORT.customer_firstname) %]</div></div>
<div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Lastname' | $T8 %]</div><div class="shop_table-cell">[% HTML.escape(IMPORT.customer_lastname) %]</div></div>
<div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Company' | $T8 %]</div><div class="shop_table-cell">[% HTML.escape(IMPORT.customer_company) %]</div></div>
<div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Department' | $T8 %]</div><div class="shop_table-cell">[% HTML.escape(IMPORT.customer_department) %]</div></div>
[% SET customer = IMPORT.customer_firstname _ ' ' _ IMPORT.customer_lastname %]
<hr>
<div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Greeting' | $T8 %]</div><div class="shop_table-cell">[% L.input_tag('customer_greeting', IMPORT.customer_greeting) %]</div></div>
<div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Customer' | $T8 %]</div><div class="shop_table-cell">[% L.input_tag('customer_name', customer) %]</div></div>
<div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Name 2' | $T8 %]</div><div class="shop_table-cell">[% L.input_tag('customer_company', IMPORT.customer_company) %]</div></div>
<div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Name 3' | $T8 %]</div><div class="shop_table-cell">[% L.input_tag('customer_department', IMPORT.customer_department) %]</div></div>
<div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Street' | $T8 %]</div><div class="shop_table-cell">[% L.input_tag('customer_street', IMPORT.customer_street) %]</div></div>
<div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Zipcode' | $T8 %]</div><div class="shop_table-cell">[% L.input_tag('customer_zipcode', IMPORT.customer_zipcode) %]</div></div>
<div class="shop_table-row"><div class="shop_table-cell listheading">[% 'City' | $T8 %]</div><div class="shop_table-cell">[% L.input_tag('customer_city', IMPORT.customer_city) %]</div></div>
<div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Country' | $T8 %]</div><div class="shop_table-cell">[% L.input_tag('customer_country', IMPORT.customer_country) %]</div></div>
<div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Phone' | $T8 %]</div><div class="shop_table-cell">[% L.input_tag('customer_phone', IMPORT.customer_phone) %]</div></div>
<div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Email' | $T8 %]</div><div class="shop_table-cell">[% L.input_tag('customer_email', IMPORT.customer_email) %]</div></div>
[% IF C_ADDRESS %]
<div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Customernumber' | $T8 %]</div><div class="shop_table-cell">[% C_ADDRESS.customernumber %]</div></div>
[% ELSE %]
<div>[% L.ajax_submit_tag("controller.pl?action=ShopOrder/apply_customer", "#customer", LxERP.t8("Apply customer")) %]</div>
[% END %]
[% INCLUDE 'common/flash.html' %]
<!--
PENDENT: Die DIV-Tables umwandeln in horizontale Tabellen.
Vielleicht vorher mit Werner Hahn absprechen.
Einzuege bitte so belassen wie hier, sonst hat man keine Uebersicht und findet die HTML-Fehler kaum!
Solches Zeugs bitte schoener formatiert programmieren. Als Programmierer findet ja man sich so auch besser zurecht.
-->
<div class="shop_table shop_main">
<div class="shop_table-row">
<div class="shop_table-cell">
<form method="post" action="controller.pl" id="customer">
[% L.hidden_tag('create_customer','customer') %]
[% L.hidden_tag('import_id', IMPORT.id) %]
<div class="shop_table shop_table_address">
<div class="shop_table-row listheading">
<div class="shop_table-cell">[% 'Shop Customer Address' | $T8 %]</div>
<div class="shop_table-cell"></div>
</div>
</form>
</div>
<div class="shop_table-cell">
<form method="post" action="controller.pl" id="billing">[% L.hidden_tag('create_customer','billing') %][% L.hidden_tag('import_id', IMPORT.id) %]
<div class="shop_table shop_table_address">
<div class="shop_table-row listheading">
<div class="shop_table-cell">[% 'Shop Billing Address' | $T8 %]</div>
<div class="shop_table-cell"></div>
<div class="shop_table-row">
<div class="shop_table-cell listheading">[% 'Greeting' | $T8 %]</div>
<div class="shop_table-cell">[% HTML.escape(IMPORT.customer_greeting) %]</div>
</div>
<div class="shop_table-row">
<div class="shop_table-cell listheading">[% 'Firstname' | $T8 %]</div>
<div class="shop_table-cell">[% HTML.escape(IMPORT.customer_firstname) %]</div>
</div>
<div class="shop_table-row">
<div class="shop_table-cell listheading">[% 'Lastname' | $T8 %]</div>
<div class="shop_table-cell">[% HTML.escape(IMPORT.customer_lastname) %]</div>
</div>
<div class="shop_table-row">
<div class="shop_table-cell listheading">[% 'Company' | $T8 %]</div>
<div class="shop_table-cell">[% HTML.escape(IMPORT.customer_company) %]</div>
</div>
<div class="shop_table-row">
<div class="shop_table-cell listheading">[% 'Department' | $T8 %]</div>
<div class="shop_table-cell">[% HTML.escape(IMPORT.customer_department) %]</div>
</div>
[% SET customer = IMPORT.customer_firstname _ ' ' _ IMPORT.customer_lastname %]
<hr>
<div class="shop_table-row">
<div class="shop_table-cell listheading">[% 'Greeting' | $T8 %]</div>
<div class="shop_table-cell">[% L.input_tag('customer_greeting', IMPORT.customer_greeting) %]</div>
</div>
<div class="shop_table-row">
<div class="shop_table-cell listheading">[% 'Customer' | $T8 %]</div>
<div class="shop_table-cell">[% L.input_tag('customer_name', customer) %]</div>
</div>
<div class="shop_table-row">
<div class="shop_table-cell listheading">[% 'Name 2' | $T8 %]</div>
<div class="shop_table-cell">[% L.input_tag('customer_company', IMPORT.customer_company) %]</div>
</div>
<div class="shop_table-row">
<div class="shop_table-cell listheading">[% 'Name 3' | $T8 %]</div>
<div class="shop_table-cell">[% L.input_tag('customer_department', IMPORT.customer_department) %]</div>
</div>
<div class="shop_table-row">
<div class="shop_table-cell listheading">[% 'Street' | $T8 %]</div>
<div class="shop_table-cell">[% L.input_tag('customer_street', IMPORT.customer_street) %]</div>
</div>
<div class="shop_table-row">
<div class="shop_table-cell listheading">[% 'Zipcode' | $T8 %]</div>
<div class="shop_table-cell">[% L.input_tag('customer_zipcode', IMPORT.customer_zipcode) %]</div>
</div>
<div class="shop_table-row">
<div class="shop_table-cell listheading">[% 'City' | $T8 %]</div>
<div class="shop_table-cell">[% L.input_tag('customer_city', IMPORT.customer_city) %]</div>
</div>
<div class="shop_table-row">
<div class="shop_table-cell listheading">[% 'Country' | $T8 %]</div>
<div class="shop_table-cell">[% L.input_tag('customer_country', IMPORT.customer_country) %]</div>
</div>
<div class="shop_table-row">
<div class="shop_table-cell listheading">[% 'Phone' | $T8 %]</div>
<div class="shop_table-cell">[% L.input_tag('customer_phone', IMPORT.customer_phone) %]</div>
</div>
<div class="shop_table-row">
<div class="shop_table-cell listheading">[% 'Email' | $T8 %]</div>
<div class="shop_table-cell">[% L.input_tag('customer_email', IMPORT.customer_email) %]</div>
</div>
[% IF C_ADDRESS %]
<div class="shop_table-row">
<div class="shop_table-cell listheading">[% 'Customernumber' | $T8 %]</div>
<div class="shop_table-cell">[% C_ADDRESS.customernumber %]</div>
</div>
<div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Greeting' | $T8 %]</div><div class="shop_table-cell">[% HTML.escape(IMPORT.billing_greeting) %]</div></div>
<div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Firstname' | $T8 %]</div><div class="shop_table-cell">[% HTML.escape(IMPORT.billing_firstname) %]</div></div>
<div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Lastname' | $T8 %]</div><div class="shop_table-cell">[% HTML.escape(IMPORT.billing_lastname) %]</div></div>
<div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Company' | $T8 %]</div><div class="shop_table-cell">[% HTML.escape(IMPORT.billing_company) %]</div></div>
<div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Department' | $T8 %]</div><div class="shop_table-cell">[% HTML.escape(IMPORT.billing_department) %]</div></div>
[% SET billing = IMPORT.billing_firstname _ ' ' _ IMPORT.billing_lastname %]
<hr>
<div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Greeting' | $T8 %]</div><div class="shop_table-cell">[% L.input_tag('billing_greeting', IMPORT.billing_greeting) %]</div></div>
<div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Customer' | $T8 %]</div><div class="shop_table-cell">[% L.input_tag('billing_name', billing) %]</div></div>
<div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Name 2' | $T8 %]</div><div class="shop_table-cell">[% L.input_tag('billing_company', IMPORT.billing_company) %]</div></div>
<div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Name 3' | $T8 %]</div><div class="shop_table-cell">[% L.input_tag('billing_department', IMPORT.billing_department) %]</div></div>
<div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Street' | $T8 %]</div><div class="shop_table-cell">[% L.input_tag('billing_street', IMPORT.billing_street) %]</div></div>
<div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Zipcode' | $T8 %]</div><div class="shop_table-cell">[% L.input_tag('billing_zipcode', IMPORT.billing_zipcode) %]</div></div>
<div class="shop_table-row"><div class="shop_table-cell listheading">[% 'City' | $T8 %]</div><div class="shop_table-cell">[% L.input_tag('billing_city', IMPORT.billing_city) %]</div></div>
<div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Country' | $T8 %]</div><div class="shop_table-cell">[% L.input_tag('billing_country', IMPORT.billing_country) %]</div></div>
<div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Phone' | $T8 %]</div><div class="shop_table-cell">[% L.input_tag('billing_phone', IMPORT.billing_phone) %]</div></div>
<div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Email' | $T8 %]</div><div class="shop_table-cell">[% L.input_tag('billing_email', IMPORT.billing_email) %]</div></div>
[% IF B_ADDRESS %]
<div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Customernumber' | $T8 %]</div><div class="shop_table-cell">[% B_ADDRESS.customernumber %]</div></div>
[% ELSE %]
<div>[% L.ajax_submit_tag("controller.pl?action=ShopOrder/apply_customer", "#billing", LxERP.t8("Apply customer")) %]</div>
[% END %]
[% ELSE %]
<div>
[% L.ajax_submit_tag("controller.pl?action=ShopOrder/apply_customer", "#customer", LxERP.t8("Apply customer")) %]
</div>
[% END %]
</div><!-- /.shop_table /.shop_table_address -->
</form><!-- /#customer -->
</div><!-- /.shop_table-cell -->
<div class="shop_table-cell">
<form method="post" action="controller.pl" id="billing">
[% L.hidden_tag('create_customer','billing') %]
[% L.hidden_tag('import_id', IMPORT.id) %]
<div class="shop_table shop_table_address">
<div class="shop_table-row listheading">
<div class="shop_table-cell">[% 'Shop Billing Address' | $T8 %]</div>
<div class="shop_table-cell"></div>
</div>
</form>
</div>
<div class="shop_table-cell">
<form method="post" action="controller.pl" id="delivery">[% L.hidden_tag('create_customer','delivery') %][% L.hidden_tag('import_id', IMPORT.id) %]
<div class="shop_table-row">
<div class="shop_table-cell listheading">[% 'Greeting' | $T8 %]</div>
<div class="shop_table-cell">[% HTML.escape(IMPORT.billing_greeting) %]</div>
</div>
<div class="shop_table-row">
<div class="shop_table-cell listheading">[% 'Firstname' | $T8 %]</div>
<div class="shop_table-cell">[% HTML.escape(IMPORT.billing_firstname) %]</div>
</div>
<div class="shop_table-row">
<div class="shop_table-cell listheading">[% 'Lastname' | $T8 %]</div>
<div class="shop_table-cell">[% HTML.escape(IMPORT.billing_lastname) %]</div>
</div>
<div class="shop_table-row">
<div class="shop_table-cell listheading">[% 'Company' | $T8 %]</div>
<div class="shop_table-cell">[% HTML.escape(IMPORT.billing_company) %]</div>
</div>
<div class="shop_table-row">
<div class="shop_table-cell listheading">[% 'Department' | $T8 %]</div>
<div class="shop_table-cell">[% HTML.escape(IMPORT.billing_department) %]</div>
</div>
<!-- PENDENT: vielleicht neue Tabelle -->
[% SET billing = IMPORT.billing_firstname _ ' ' _ IMPORT.billing_lastname %]
<hr>
<div class="shop_table-row">
<div class="shop_table-cell listheading">[% 'Greeting' | $T8 %]</div>
<div class="shop_table-cell">[% L.input_tag('billing_greeting', IMPORT.billing_greeting) %]</div>
</div>
<div class="shop_table-row">
<div class="shop_table-cell listheading">[% 'Customer' | $T8 %]</div>
<div class="shop_table-cell">[% L.input_tag('billing_name', billing) %]</div>
</div>
<div class="shop_table-row">
<div class="shop_table-cell listheading">[% 'Name 2' | $T8 %]</div>
<div class="shop_table-cell">[% L.input_tag('billing_company', IMPORT.billing_company) %]</div>
</div>
<div class="shop_table-row">
<div class="shop_table-cell listheading">[% 'Name 3' | $T8 %]</div>
<div class="shop_table-cell">[% L.input_tag('billing_department', IMPORT.billing_department) %]</div>
</div>
<div class="shop_table-row">
<div class="shop_table-cell listheading">[% 'Street' | $T8 %]</div>
<div class="shop_table-cell">[% L.input_tag('billing_street', IMPORT.billing_street) %]</div>
</div>
<div class="shop_table-row">
<div class="shop_table-cell listheading">[% 'Zipcode' | $T8 %]</div>
<div class="shop_table-cell">[% L.input_tag('billing_zipcode', IMPORT.billing_zipcode) %]</div>
</div>
<div class="shop_table-row">
<div class="shop_table-cell listheading">[% 'City' | $T8 %]</div>
<div class="shop_table-cell">[% L.input_tag('billing_city', IMPORT.billing_city) %]</div>
</div>
<div class="shop_table-row">
<div class="shop_table-cell listheading">[% 'Country' | $T8 %]</div>
<div class="shop_table-cell">[% L.input_tag('billing_country', IMPORT.billing_country) %]</div>
</div>
<div class="shop_table-row">
<div class="shop_table-cell listheading">[% 'Phone' | $T8 %]</div>
<div class="shop_table-cell">[% L.input_tag('billing_phone', IMPORT.billing_phone) %]</div>
</div>
<div class="shop_table-row">
<div class="shop_table-cell listheading">[% 'Email' | $T8 %]</div>
<div class="shop_table-cell">[% L.input_tag('billing_email', IMPORT.billing_email) %]</div>
</div>
[% IF D_ADDRESS %]
<div class="shop_table-row">
<div class="shop_table-cell listheading">[% 'Customernumber' | $T8 %]</div>
<div class="shop_table-cell">[% D_ADDRESS.customernumber %]</div>
</div>
[% ELSE %]
<div>[% L.ajax_submit_tag("controller.pl?action=ShopOrder/apply_customer", "#delivery", LxERP.t8("Apply customer")) %]</div>
[% END %]
</div><!-- /.shop_table /.shop_table_address -->
</form><!-- /#billing -->
</div><!-- /.shop_table-cell -->
<div class="shop_table-cell">
<form method="post" action="controller.pl" id="delivery">
[% L.hidden_tag('create_customer','delivery') %]
[% L.hidden_tag('import_id', IMPORT.id) %]
<div class="shop_table shop_table_address">
<div class="shop_table-row listheading">
<div class="shop_table-cell">[% 'Shop Delivery Address' | $T8 %]</div>
<div class="shop_table-cell"></div>
</div>
<div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Greeting' | $T8 %]</div><div class="shop_table-cell">[% HTML.escape(IMPORT.delivery_greeting) %]</div></div>
<div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Firstname' | $T8 %]</div><div class="shop_table-cell">[% HTML.escape(IMPORT.delivery_firstname) %]</div></div>
<div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Lastname' | $T8 %]</div><div class="shop_table-cell">[% HTML.escape(IMPORT.delivery_lastname) %]</div></div>
<div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Company' | $T8 %]</div><div class="shop_table-cell">[% HTML.escape(IMPORT.delivery_company) %]</div></div>
<div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Department' | $T8 %]</div><div class="shop_table-cell">[% HTML.escape(IMPORT.delivery_department) %]</div></div>
[% SET delivery = IMPORT.delivery_firstname _ ' ' _ IMPORT.delivery_lastname %]
<div class="shop_table-row">
<div class="shop_table-cell listheading">[% 'Greeting' | $T8 %]</div>
<div class="shop_table-cell">[% HTML.escape(IMPORT.delivery_greeting) %]</div>
</div>
<div class="shop_table-row">
<div class="shop_table-cell listheading">[% 'Firstname' | $T8 %]</div>
<div class="shop_table-cell">[% HTML.escape(IMPORT.delivery_firstname) %]</div>
</div>
<div class="shop_table-row">
<div class="shop_table-cell listheading">[% 'Lastname' | $T8 %]</div>
<div class="shop_table-cell">[% HTML.escape(IMPORT.delivery_lastname) %]</div>
</div>
<div class="shop_table-row">
<div class="shop_table-cell listheading">[% 'Company' | $T8 %]</div>
<div class="shop_table-cell">[% HTML.escape(IMPORT.delivery_company) %]</div>
</div>
<div class="shop_table-row">
<div class="shop_table-cell listheading">[% 'Department' | $T8 %]</div>
<div class="shop_table-cell">[% HTML.escape(IMPORT.delivery_department) %]</div>
</div>
[% SET delivery = IMPORT.delivery_firstname _ ' ' _ IMPORT.delivery_lastname %]
<hr>
<div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Greeting' | $T8 %]</div><div class="shop_table-cell">[% L.input_tag('delivery_greeting', IMPORT.delivery_greeting) %]</div></div>
<div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Customer' | $T8 %]</div><div class="shop_table-cell">[% L.input_tag('delivery_name', delivery) %]</div></div>
<div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Name 2' | $T8 %]</div><div class="shop_table-cell">[% L.input_tag('delivery_company', IMPORT.delivery_company) %]</div></div>
<div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Name 3' | $T8 %]</div><div class="shop_table-cell">[% L.input_tag('delivery_department', IMPORT.delivery_department) %]</div></div>
<div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Street' | $T8 %]</div><div class="shop_table-cell">[% L.input_tag('delivery_street', IMPORT.delivery_street) %]</div></div>
<div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Zipcode' | $T8 %]</div><div class="shop_table-cell">[% L.input_tag('delivery_zipcode', IMPORT.delivery_zipcode) %]</div></div>
<div class="shop_table-row"><div class="shop_table-cell listheading">[% 'City' | $T8 %]</div><div class="shop_table-cell">[% L.input_tag('delivery_city', IMPORT.delivery_city) %]</div></div>
<div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Country' | $T8 %]</div><div class="shop_table-cell">[% L.input_tag('delivery_country', IMPORT.delivery_country) %]</div></div>
<div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Phone' | $T8 %]</div><div class="shop_table-cell">[% L.input_tag('delivery_phone', IMPORT.delivery_phone) %]</div></div>
<div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Email' | $T8 %]</div><div class="shop_table-cell">[% L.input_tag('delivery_email', IMPORT.delivery_email) %]</div></div>
<div class="shop_table-row">
<div class="shop_table-cell listheading">[% 'Greeting' | $T8 %]</div>
<div class="shop_table-cell">[% L.input_tag('delivery_greeting', IMPORT.delivery_greeting) %]</div>
</div>
<div class="shop_table-row">
<div class="shop_table-cell listheading">[% 'Customer' | $T8 %]</div>
<div class="shop_table-cell">[% L.input_tag('delivery_name', delivery) %]</div>
</div>
<div class="shop_table-row">
<div class="shop_table-cell listheading">[% 'Name 2' | $T8 %]</div>
<div class="shop_table-cell">[% L.input_tag('delivery_company', IMPORT.delivery_company) %]</div>
</div>
<div class="shop_table-row">
<div class="shop_table-cell listheading">[% 'Name 3' | $T8 %]</div>
<div class="shop_table-cell">[% L.input_tag('delivery_department', IMPORT.delivery_department) %]</div>
</div>
<div class="shop_table-row">
<div class="shop_table-cell listheading">[% 'Street' | $T8 %]</div>
<div class="shop_table-cell">[% L.input_tag('delivery_street', IMPORT.delivery_street) %]</div>
</div>
<div class="shop_table-row">
<div class="shop_table-cell listheading">[% 'Zipcode' | $T8 %]</div>
<div class="shop_table-cell">[% L.input_tag('delivery_zipcode', IMPORT.delivery_zipcode) %]</div>
</div>
<div class="shop_table-row">
<div class="shop_table-cell listheading">[% 'City' | $T8 %]</div>
<div class="shop_table-cell">[% L.input_tag('delivery_city', IMPORT.delivery_city) %]</div>
</div>
<div class="shop_table-row">
<div class="shop_table-cell listheading">[% 'Country' | $T8 %]</div>
<div class="shop_table-cell">[% L.input_tag('delivery_country', IMPORT.delivery_country) %]</div>
</div>
<div class="shop_table-row">
<div class="shop_table-cell listheading">[% 'Phone' | $T8 %]</div>
<div class="shop_table-cell">[% L.input_tag('delivery_phone', IMPORT.delivery_phone) %]</div>
</div>
<div class="shop_table-row">
<div class="shop_table-cell listheading">[% 'Email' | $T8 %]</div>
<div class="shop_table-cell">[% L.input_tag('delivery_email', IMPORT.delivery_email) %]</div>
</div>
[% IF D_ADDRESS %]
<div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Customernumber' | $T8 %]</div><div class="shop_table-cell">[% D_ADDRESS.customernumber %]</div></div>
<div class="shop_table-row">
<div class="shop_table-cell listheading">[% 'Customernumber' | $T8 %]</div>
<div class="shop_table-cell">[% D_ADDRESS.customernumber %]</div>
</div>
[% ELSE %]
<div>[% L.ajax_submit_tag("controller.pl?action=ShopOrder/apply_customer", "#delivery", LxERP.t8("Apply customer")) %]</div>
<div>[% L.ajax_submit_tag("controller.pl?action=ShopOrder/apply_customer", "#delivery", LxERP.t8("Apply customer")) %]</div>
[% END %]
</div>
</form>
</div>
</div>
</div>
<hr>
<table width="100%">
</div><!-- /.shop_table /.shop_table_address -->
</form><!-- /#delivery -->
</div><!-- /.shop_table-cell -->
</div><!-- /.shop_table-row -->
</div><!-- /.shop_table shop_main -->
<hr>
<table class="tbl-horizontal">
<caption>[% 'Shop Headdata' | $T8 %]</caption>
<tbody>
<tr>
<td width="35%">
<table>
<tr class="listheading">
<th colspan="2">[% 'Shop Headdata' | $T8 %]</th>
</tr>
<tr><td><b>[% 'Shop Ordernumber' | $T8 %]</b></td><td>[% HTML.escape(IMPORT.shop_ordernumber) %]</td></tr>
<tr><td><b>[% 'Shop Orderdate' | $T8 %]</b></td><td>[% HTML.escape(IMPORT.order_date.dmy('.')) _ ' ' _ HTML.escape(IMPORT.order_date.hms(':')) %]</td></tr>
<tr><td><b>[% 'Shop Host' | $T8 %]</b></td><td>[% HTML.escape(IMPORT.host) %]</td></tr>
<tr><td><b>[% 'Shop OrderIP' | $T8 %]</b></td><td>[% HTML.escape(IMPORT.remote_ip) %]</td></tr>
<tr><td><b>[% 'Shop Ordernotes' | $T8 %]</b></td><td>[% HTML.escape(IMPORT.shop_customer_comment) %]</td></tr>
<tr><td><b>[% 'Shop Orderamount' | $T8 %]</b></td><td>[% HTML.escape(IMPORT.amount_as_number) %]</td></tr>
<tr><td><b>[% 'Shipping costs' | $T8 %]</b></td><td>[% HTML.escape(IMPORT.shipping_costs_as_number) %]</td></tr>
</table>
</td>
<td style="padding-left: 20px; vertical-align: top;">
[% IF IMPORT.obsolete %]
<b>[% 'Shoporder deleted -- ' | $T8 %]</b><a href="controller.pl?action=ShopOrder/undelete_order&import_id=[% IMPORT.id %]">[% 'revert deleted' | $T8 %]</a>
[% ELSE %]
[% UNLESS IMPORT.transferred %]
[% IF PROPOSALS %]
<form method="post" action="controller.pl" id="create_order">
[% L.hidden_tag('import_id', IMPORT.id) %]
<div style="height: 125px; overflow:auto;">
<table>
<tr class="listheading">
<th colspan="7">Customer Proposals</td>
</tr>
[% FOREACH prop = PROPOSALS %][% IF prop.order_lock %][% SET orderlock_class = 'style="background:rgba(232, 32, 23, 0.2);"' %][% ELSE %][% SET orderlock_class = '' %][% END %]
<tr class="listrow" [% orderlock_class %]>
<td>[% IF !prop.order_lock %][% L.radio_button_tag('customer', value=prop.id) %][% END %]</td>
<td><a href="controller.pl?action=CustomerVendor/edit&id=[% prop.id %]&db=customer&callback=[% HTML.url('controller.pl?action=ShopOrder/show&id=' _ IMPORT.id) %]">[% HTML.escape(prop.customernumber) %]</a></td>
<td>[% IF !prop.notes == '' %]<span class="tooltipster-html" title="[% HTML.escape(prop.notes) %]"><span style="color:red;font-weight: bold;">[% HTML.escape(prop.name) %]</span>[% ELSE %][% HTML.escape(prop.name) %][% END %]</td>
<td>[% HTML.escape(prop.street) %]</td>
<td>[% HTML.escape(prop.zipcode) %]</td>
<td>[% HTML.escape(prop.city) %]</td>
<td>[% HTML.escape(prop.email) %]</td>
</tr>
[% END %]
</table>
</div>
<div id="transfer" style="float:left; display:none;">
[% # 'Customernumber: ' _ %]
[% L.ajax_submit_tag('controller.pl?action=ShopOrder/transfer', "#create_order", LxERP.t8('Create order')) %]
</div>
<th>[% 'Shop Ordernumber' | $T8 %]</th>
<td>[% HTML.escape(IMPORT.shop_ordernumber) %]</td>
</tr>
<tr>
<th>[% 'Shop Orderdate' | $T8 %]</th>
<td>[% HTML.escape(IMPORT.order_date.dmy('.')) _ ' ' _ HTML.escape(IMPORT.order_date.hms(':')) %]</td>
</tr>
<tr>
<th>[% 'Shop Host' | $T8 %]</th>
<td>[% HTML.escape(IMPORT.host) %]</td>
</tr>
<tr>
<th>[% 'Shop OrderIP' | $T8 %]</th>
<td>[% HTML.escape(IMPORT.remote_ip) %]</td>
</tr>
<tr>
<th>[% 'Shop Ordernotes' | $T8 %]</th>
<td>[% HTML.escape(IMPORT.shop_customer_comment) %]</td>
</tr>
<tr>
<th>[% 'Shop Orderamount' | $T8 %]</th>
<td>[% HTML.escape(IMPORT.amount_as_number) %]</td>
</tr>
<tr>
<th>[% 'Shipping costs' | $T8 %]</th>
<td>[% HTML.escape(IMPORT.shipping_costs_as_number) %]</td>
</tr>
</tbody>
</table>
[% IF IMPORT.obsolete %]
<b>[% 'Shoporder deleted -- ' | $T8 %]</b> <a href="controller.pl?action=ShopOrder/undelete_order&import_id=[% IMPORT.id %]" class="button">[% 'revert deleted' | $T8 %]</a>
[% ELSE %]
[% UNLESS IMPORT.transferred %]
[% IF PROPOSALS %]
<form method="post" action="controller.pl" id="create_order">
[% L.hidden_tag('import_id', IMPORT.id) %]
<table class="tbl-list">
<caption>[% 'Customer Proposals' | $T8 %]</caption>
<tbody>
[% FOREACH prop = PROPOSALS %]
<div id="shop_update_customer_[% prop.id %]" class="div_hidden" style="display:none;">
[% L.ajax_submit_tag("controller.pl?action=ShopOrder/apply_customer&cv_id=" _ prop.id, "#billing", LxERP.t8("Update customer using billing address")) %]
</div>
[% IF prop.order_lock %]
[% #PENDENT: KLASSE statt STYLE verwenden %]
[% SET orderlock_class = 'style="background:rgba(232, 32, 23, 0.2);"' %]
[% ELSE %]
[% SET orderlock_class = '' %]
[% END %]
<tr [% orderlock_class %]>
<td>[% IF !prop.order_lock %][% L.radio_button_tag('customer', value=prop.id) %][% END %]</td>
<td>
<a href="controller.pl?action=CustomerVendor/edit&id=[% prop.id %]&db=customer&callback=[% HTML.url('controller.pl?action=ShopOrder/show&id=' _ IMPORT.id) %]">
[% HTML.escape(prop.customernumber) %]
</a>
</td>
<td>
[% IF !prop.notes == '' %]
<span class="tooltipster-html" title="[% HTML.escape(prop.notes) %]">
<span style="color:red;font-weight: bold;">[% HTML.escape(prop.name) %]</span>
</span>
[% ELSE %]
[% HTML.escape(prop.name) %]
[% END %]
</td>
<td>[% HTML.escape(prop.street) %]</td>
<td>[% HTML.escape(prop.zipcode) %]</td>
<td>[% HTML.escape(prop.city) %]</td>
<td>[% HTML.escape(prop.email) %]</td>
</tr>
[% END %]
</form>
<a href="controller.pl?action=ShopOrder/delete_order&import_id=[% IMPORT.id %]">[% 'delete order' | $T8 %]</a>
[% END # PROPOSALS %]
[% ELSE %]
<div>
[% 'Transferred' | $T8 %]
<div id="recordlinks"></div>
<script type="text/javascript">
var url = 'controller.pl?action=RecordLinks/ajax_list&object_model=ShopOrder&object_id=[% IMPORT.id %]';
$('#recordlinks').load(url);
</script>
</tbody>
</table>
<div id="transfer" style="display:none;">
[% # 'Customernumber: ' _ %]
[% L.ajax_submit_tag('controller.pl?action=ShopOrder/transfer', "#create_order", LxERP.t8('Create order')) %]
</div>
[% FOREACH prop = PROPOSALS %]
<div id="shop_update_customer_[% prop.id %]" class="div_hidden" style="display:none;">
[% L.ajax_submit_tag("controller.pl?action=ShopOrder/apply_customer&cv_id=" _ prop.id, "#billing", LxERP.t8("Update customer using billing address")) %]
</div>
[% END %]
[% END %]
</td>
</form><!-- /#create_order -->
<div class="buttons">
<a href="controller.pl?action=ShopOrder/delete_order&import_id=[% IMPORT.id %]" class="button">[% 'delete order' | $T8 %]</a>
</div>
[% END # PROPOSALS %]
[% ELSE %]
<div>
<h3>[% 'Transferred' | $T8 %]</h3>
<div id="recordlinks"></div>
<script type="text/javascript">
var url = 'controller.pl?action=RecordLinks/ajax_list&object_model=ShopOrder&object_id=[% IMPORT.id %]';
$('#recordlinks').load(url);
</script>
</div>
[% END %]
[% END %]
<table class="tbl-list wi-moderate">
<caption>[% 'FILL THIS CAPTION' | $T8 %]</caption>
<thead>
<tr>
<th>[% 'Position' | $T8 %]</th>
<th>[% 'Partnumber' | $T8 %]</th>
<th>[% 'Partdescriptipion' | $T8 %]</th>
<th>[% 'Qty' | $T8 %]</th>
<th>[% 'Price' | $T8 %]</th>
<th>[% 'Extended' | $T8 %]</th>
</tr>
</table>
<hr>
<div style="height: 250px; overflow:auto; margin:15px;">
<table width="99%">
<tr class="listheading">
<th>[% 'Position' | $T8 %]</th>
<th>[% 'Partnumber' | $T8 %]</th>
<th>[% 'Partdescriptipion' | $T8 %]</th>
<th>[% 'Qty' | $T8 %]</th>
<th>[% 'Price' | $T8 %]</th>
<th>[% 'Extended' | $T8 %]</th>
</tr>
<tr class="listrow">
[% FOREACH pos = IMPORT.shop_order_items %]
</thead>
<tbody>
[% FOREACH pos = IMPORT.shop_order_items %]
<tr>
<td>[% loop.count %]</td>
<td>[% HTML.escape(pos.partnumber) %]</td>
<td>[% HTML.escape(pos.description) %]</td>
......
<td>[% pos.price_as_number %]</td>
<td>[% LxERP.format_amount(pos.price * pos.quantity,2) %]</td>
</tr>
[% END %]
</table>
</div>
<hr>
[% END %]
</tbody>
</table>
<script type="text/javascript">
$("input[type=radio]").change(function(){
$('.div_hidden').css("display", 'none');
var cv_id = $("input[type=radio][id="+ this.id + "]").val();
$('#shop_update_customer_'+ cv_id).css("display", 'block');
$('#transfer').css("display", 'block');
});
$("input[type=radio]").change(function(){
$('.div_hidden').css("display", 'none');
var cv_id = $("input[type=radio][id="+ this.id + "]").val();
$('#shop_update_customer_'+ cv_id).css("display", 'block');
$('#transfer').css("display", 'block');
});
</script>

Auch abrufbar als: Unified diff