19 lines
619 B
HTML
19 lines
619 B
HTML
{% load gadjo %}
|
|
|
|
<div style="position: relative">
|
|
{{ form|with_template }}
|
|
{% if cell.statistic and cell.chart_type != "table" and cell.chart_type != "table-inverted" %}
|
|
<div style="position: absolute; right: 0; top: 0; width: 300px; height: 150px">
|
|
<embed type="image/svg+xml" src="{% url 'combo-dataviz-graph' cell=cell.id %}?width=300&height=150"/>
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
|
|
<script>
|
|
$(function () {
|
|
$('div#panel-dataviz_chartngcell-{{ cell.pk }}-general div.content').change(function() {
|
|
$('div#cell-dataviz_chartngcell-{{ cell.pk }} button.save').click();
|
|
});
|
|
});
|
|
</script>
|