Changeset 1485


Ignore:
Timestamp:
11/12/15 06:59:02 (9 years ago)
Author:
nanardon
Message:

Add account per contract graph

Location:
trunk/LATMOS-Accounts-Web
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LATMOS-Accounts-Web/MANIFEST

    r1484 r1485  
    2020lib/LATMOS/Accounts/Web/Controller/Json.pm 
    2121lib/LATMOS/Accounts/Web/Controller/Json/AccAge.pm 
     22lib/LATMOS/Accounts/Web/Controller/Json/AccAgeContrat.pm 
    2223lib/LATMOS/Accounts/Web/Controller/Json/Expire.pm 
    2324lib/LATMOS/Accounts/Web/Controller/Json/FreeIp.pm 
  • trunk/LATMOS-Accounts-Web/lib/LATMOS/Accounts/Web/Controller/Summary/AccAge.pm

    r1481 r1485  
    2525    my ( $self, $c ) = @_; 
    2626 
     27    $c->stash->{jsonurl} ||= $c->uri_for('/json/accage'); 
     28} 
     29 
     30sub contrat :Path('contrat')  :Args(0) { 
     31    my ( $self, $c ) = @_; 
     32 
     33    $c->stash->{jsonurl} = $c->uri_for('/json/accagecontrat'); 
     34 
     35    $c->go('index'); 
    2736} 
    2837 
  • trunk/LATMOS-Accounts-Web/root/html/includes/wrapper.tt

    r1484 r1485  
    2020    'jqplot.cursor.js' 
    2121    'jqplot.highlighter.js', 
     22    'jqplot.enhancedLegendRenderer.js', 
    2223    ] %] 
    2324<script src="[% c.uri_for('/static', 'js', 'jqplot', 'plugins', plugins) %]"></script> 
  • trunk/LATMOS-Accounts-Web/root/html/summary/accage/index.tt

    r1481 r1485  
    77      // will return before the data is fetched 
    88      async: false, 
    9       url: "[% c.uri_for('/json/accage') %]", 
     9      url: "[% jsonurl %]", 
    1010      dataType:"json", 
    1111      success: function(data) { 
     
    4545                }, 
    4646                legend:{ 
     47                    renderer: $.jqplot.EnhancedLegendRenderer, 
    4748                    placement: 'outside', 
    4849                    show: true 
Note: See TracChangeset for help on using the changeset viewer.