{% extends "admin/base_site_gridpivot.html" %} {% load i18n %} {% block extrahead %}{{block.super}} {% if args.0 %}{% endif %} {% endblock %} {% block contextmenus %} {% include "itemcontext.html" %} {% include "forecastcontext.html" %} {% include "customercontext.html" %}
{% endblock %} {% block tools %}{% if args.0 %} {% include "forecasttabs.html" %} {% endif %}{{block.super}} {% endblock %} {% block before_table %} {% if args.0 %}

 

{% blocktrans %}frePPLe needs Adobe Flash Player to display graphs. If you're unable to see the chart here, it means that your browser does not seem to have the Flash Player installed.
You can downloaded it here for free.{% endblocktrans %}

{% endif %}{% endblock %} {% block crosses %} function graph(cellvalue, options, rowdata) { var str = [''); return str.join(''); }; function drawGraphs() { $('.sparkline').sparkline('html', { type:'bar', disableHiddenCheck:true, chartRangeMin:0, barColor:'#2B95EC', width:'100px', height:'60px' }); }; function getDirtyData() { var changes = []; $(".dirty-cell").each( function() { var curCol = jQuery.jgrid.getCellIndex($(this).closest("td,th")); var curRow = $(this).closest("tr").attr('id'); var colmodel = jQuery("#grid").jqGrid ('getGridParam', 'colModel')[curCol]; changes.push({'id': curRow, 'startdate': colmodel['startdate'], 'enddate': colmodel['enddate'], 'value': $(this).val()}); }); return changes; } function onChange(event) { $(event.target).addClass('dirty-cell'); upload.select(); } function crosses (cellvalue, options, rowdata) { {% if perms.input.change_forecastdemand %} var result = '
' + Math.round(cellvalue[1]) + '
' + Math.round(cellvalue[2]) + '
'; {% else %} var result = Math.round(cellvalue[0]) + '
' + Math.round(cellvalue[1]) + '
' + Math.round(cellvalue[2]) + '
'; {% endif %} if (cellvalue[3] != 0.0) result += Math.round(cellvalue[3]) + ""; else result += '0.0'; return result; }; {% endblock %} {% block extra_grid %}gridComplete: drawGraphs, {% endblock %}