Skip to content

Commit 86bf363

Browse files
committed
really make pivotable target id a parameter
1 parent 7c96f43 commit 86bf363

13 files changed

+16
-14
lines changed

templates/billing/client_billing_control_pivotable.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ <h2 class="mt-2">{% trans "Client billing control pivot table" %}</h2>
2828

2929
<div id="pivotable-output" style="margin-top: 10px;"></div>
3030

31-
{% with output as "pivotable-output" %}
31+
{% with output="pivotable-output" %}
3232
{% include "core/_pivotable_body.html" %}
3333
{% endwith %}
3434

templates/billing/payment_delay.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ <h2 class="mt-2">{% trans "Client billing creation and payment delay for last 24
2929

3030
<div id="pivotable-output" style="margin-top: 10px;"></div>
3131

32-
{% with output as "pivotable-output" %}
32+
{% with output="pivotable-output" %}
3333
{% include "core/_pivotable_body.html" %}
3434
{% endwith %}
3535

templates/core/_pivotable_body.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
function drawPivot(data, rows, cols, rendererName, aggregatorName, vals, options) {
99
var renderers = $.extend($.pivotUtilities.renderers, $.pivotUtilities.plotly_renderers, $.pivotUtilities.export_renderers);
1010
if (typeof options == "undefined") { var options = {}; }
11-
$("#pivotable-output").pivotUI(
11+
$("#{{ output|default_if_none:'pivotable-output' }}").pivotUI(
1212
data,
1313
{
1414
rows: rows,

templates/core/risks.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ <h2 class="mt-2">{% trans "Risks synthesis " %}</h2>
2020

2121
<div id="pivotable-output" style="margin-top: 10px;"></div>
2222

23-
{% with output as "pivotable-output" %}
23+
{% with output="pivotable-output" %}
2424
{% include "core/_pivotable_body.html" %}
2525
{% endwith %}
2626

templates/crm/_clientcompany_rates_margin.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,11 @@ <h2 class="mt-4">{% trans "Rates per consultant" %}</h2>
7474
<button class="btn btn-primary active" onclick="graph_per_consultant();">{% trans "Daily rate graph" %}</button>
7575
</div>
7676

77-
<div id="pivotable-output" style="margin-top: 10px;"></div>
77+
<div class="row my-2">
78+
<div id="rate-pivotable-output"></div>
79+
</div>
7880

79-
{% with output as "pivotable-output" %}
81+
{% with output="rate-pivotable-output" %}
8082
{% include "core/_pivotable_body.html" %}
8183
{% endwith %}
8284

templates/crm/company_pivotable.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ <h2 class="mt-2">{% trans "Pivot table for company " %} {{ company }}</h2>
1717
<div id="pivotable-output"></div>
1818
</div>
1919
</div>
20-
{% with output as "pivotable-output" %}
20+
{% with output="pivotable-output" %}
2121
{% include "core/_pivotable_body.html" %}
2222
{% endwith %}
2323

templates/leads/lead_pivotable.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ <h2 class="mt-2">{% trans "Pivot table for lead " %} {{ lead }}</h2>
1515

1616
<div id="pivotable-output" style="margin-top: 10px;"></div>
1717

18-
{% with output as "pivotable-output" %}
18+
{% with output="pivotable-output" %}
1919
{% include "core/_pivotable_body.html" %}
2020
{% endwith %}
2121

templates/leads/leads_pivotable.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ <h2>{% trans "Leads pivot table" %}</h2>
3131

3232
<div id="pivotable-output" class="mt-2"></div>
3333

34-
{% with output as "pivotable-output" %}
34+
{% with output="pivotable-output" %}
3535
{% include "core/_pivotable_body.html" %}
3636
{% endwith %}
3737

templates/staffing/lunch_tickets_pivotable.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ <h2>{% trans "Lunch tickets pivot table" %}</h2>
2424

2525
<div id="pivotable-output" style="margin-top: 10px;"></div>
2626

27-
{% with output as "pivotable-output" %}
27+
{% with output="pivotable-output" %}
2828
{% include "core/_pivotable_body.html" %}
2929
{% endwith %}
3030

templates/staffing/missions_report.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ <h2>{% trans "Non productive missions pivot table" %}</h2>
4444

4545
<div id="pivotable-output" style="margin-top: 10px;"></div>
4646

47-
{% with output as "pivotable-output" %}
47+
{% with output="pivotable-output" %}
4848
{% include "core/_pivotable_body.html" %}
4949
{% endwith %}
5050

0 commit comments

Comments
 (0)