Revision fa93c93c
Von Sven Schöling vor etwa 10 Jahren hinzugefügt
templates/webpages/ic/form_footer.html | ||
---|---|---|
59 | 59 |
|
60 | 60 |
</div> |
61 | 61 |
|
62 |
[%- IF id %] |
|
63 |
<div id='price_rules'> |
|
64 |
<div id='price_rules_customer_report'></div> |
|
65 |
<div id='price_rules_vendor_report'></div> |
|
66 |
</div> |
|
67 |
[%- END %] |
|
68 |
|
|
62 | 69 |
[%- IF show_edit_buttons %] |
63 | 70 |
|
64 | 71 |
<input class="submit" type="submit" name="action" value="[% 'Update' | $T8 %]"> |
... | ... | |
92 | 99 |
</form> |
93 | 100 |
|
94 | 101 |
<script type="text/javascript" src="js/wz_tooltip.js"></script> |
102 |
[%- IF id %] |
|
103 |
<script type='text/javascript'> |
|
104 |
var inline_report = function(target, source, data){ |
|
105 |
$.ajax({ |
|
106 |
url: source, |
|
107 |
success: function (rsp) { |
|
108 |
$(target).html(rsp); |
|
109 |
$(target).find('.paginate').find('a').click(function(event){ ns.redirect_event(event, target) }); |
|
110 |
$(target).find('a.report-generator-header-link').click(function(event){ ns.redirect_event(event, target) }); |
|
111 |
}, |
|
112 |
data: data, |
|
113 |
}); |
|
114 |
}; |
|
115 |
var redirect_event = function(event, target){ |
|
116 |
event.preventDefault(); |
|
117 |
ns.inline_report(target, event.target + '', {}); |
|
118 |
}; |
|
119 |
$(function() { |
|
120 |
window.setTimeout(function(){ |
|
121 |
inline_report('#price_rules_customer_report', 'controller.pl', { action: 'PriceRule/list', 'filter.item_type_matches[].part': [% id %], 'filter.type': 'customer', inline: 1 }); |
|
122 |
inline_report('#price_rules_vendor_report', 'controller.pl', { action: 'PriceRule/list', 'filter.item_type_matches[].part': [% id %], 'filter.type': 'vendor', inline: 1 }); |
|
123 |
}, 200); |
|
124 |
}); |
|
125 |
</script> |
|
126 |
[%- END %] |
templates/webpages/ic/form_header.html | ||
---|---|---|
33 | 33 |
[%- IF CUSTOM_VARIABLES.size %] |
34 | 34 |
<li><a href="#custom_variables">[% 'Custom Variables' | $T8 %]</a></li> |
35 | 35 |
[%- END %] |
36 |
[%- IF id %] |
|
37 |
<li><a href="#price_rules">[% 'Price Rules' | $T8 %]</a></li> |
|
38 |
[% END %] |
|
36 | 39 |
</ul> |
37 | 40 |
|
38 | 41 |
<div id="master_data"> |
Auch abrufbar als: Unified diff
PriceRule: Kontextinformation in Waren