projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Belegvorlagen: employee_id bei Umwandlung aus Drafts beibehalten
[kivitendo-erp.git]
/
templates
/
webpages
/
order
/
form.html
diff --git
a/templates/webpages/order/form.html
b/templates/webpages/order/form.html
index
221af11
..
9f8c4c6
100644
(file)
--- a/
templates/webpages/order/form.html
+++ b/
templates/webpages/order/form.html
@@
-2,6
+2,7
@@
[%- USE LxERP %]
[%- USE L %]
[%- USE HTML %]
[%- USE LxERP %]
[%- USE L %]
[%- USE HTML %]
+<h1>[% FORM.title %]</h1>
<div id="print_options" style="display:none">
<form method="post" action="controller.pl" id="print_options_form">
<div id="print_options" style="display:none">
<form method="post" action="controller.pl" id="print_options_form">
@@
-13,8
+14,6
@@
</div>
<form method="post" action="controller.pl" id="order_form">
</div>
<form method="post" action="controller.pl" id="order_form">
- <div class="listtop">[% FORM.title %]</div>
-
[% L.hidden_tag('callback', FORM.callback) %]
[% L.hidden_tag('type', FORM.type) %]
[% L.hidden_tag('id', SELF.order.id) %]
[% L.hidden_tag('callback', FORM.callback) %]
[% L.hidden_tag('type', FORM.type) %]
[% L.hidden_tag('id', SELF.order.id) %]
@@
-27,6
+26,10
@@
[%- IF INSTANCE_CONF.get_webdav %]
<li><a href="#ui-tabs-webdav">[% 'WebDAV' | $T8 %]</a></li>
[%- END %]
[%- IF INSTANCE_CONF.get_webdav %]
<li><a href="#ui-tabs-webdav">[% 'WebDAV' | $T8 %]</a></li>
[%- END %]
+[%- IF SELF.order.id AND INSTANCE_CONF.get_doc_storage %]
+ <li><a href="controller.pl?action=File/list&file_type=document&object_type=[% HTML.escape(FORM.type) %]&object_id=[% HTML.url(SELF.order.id) %]">[% 'Documents' | $T8 %]</a></li>
+ <li><a href="controller.pl?action=File/list&file_type=attachment&object_type=[% HTML.escape(FORM.type) %]&object_id=[% HTML.url(SELF.order.id) %]">[% 'Attachments' | $T8 %]</a></li>
+[%- END %]
[%- IF SELF.order.id %]
<li><a href="controller.pl?action=RecordLinks/ajax_list&object_model=Order&object_id=[% HTML.url(SELF.order.id) %]">[% 'Linked Records' | $T8 %]</a></li>
[%- END %]
[%- IF SELF.order.id %]
<li><a href="controller.pl?action=RecordLinks/ajax_list&object_model=Order&object_id=[% HTML.url(SELF.order.id) %]">[% 'Linked Records' | $T8 %]</a></li>
[%- END %]
@@
-50,5
+53,8
@@
[%- IF SELF.order.id && ( (SELF.cv == 'customer' && INSTANCE_CONF.get_sales_order_show_delete) || (SELF.cv == 'vendor' && INSTANCE_CONF.get_purchase_order_show_delete) ) %]
[% L.button_tag('kivi.Order.delete_order()', LxERP.t8('Delete'), confirm=LxERP.t8("Are you sure?")) %]
[%- END %]
[%- IF SELF.order.id && ( (SELF.cv == 'customer' && INSTANCE_CONF.get_sales_order_show_delete) || (SELF.cv == 'vendor' && INSTANCE_CONF.get_purchase_order_show_delete) ) %]
[% L.button_tag('kivi.Order.delete_order()', LxERP.t8('Delete'), confirm=LxERP.t8("Are you sure?")) %]
[%- END %]
+[%- IF SELF.order.id && INSTANCE_CONF.get_doc_storage %]
+ [% L.button_tag('kivi.File.downloadOrderitemsFiles(\'' _ SELF.order.type _'\',' _ SELF.order.id _')',LxERP.t8('Download all Attachments')) %]
+[%- END %]
</form>
</form>