Changeset 1654
- Timestamp:
- 01/25/16 11:02:28 (8 years ago)
- Location:
- trunk/LATMOS-Accounts-Web
- Files:
-
- 2 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LATMOS-Accounts-Web/MANIFEST
r1641 r1654 21 21 lib/LATMOS/Accounts/Web/Controller/Json/AccAge.pm 22 22 lib/LATMOS/Accounts/Web/Controller/Json/AccAgeContrat.pm 23 lib/LATMOS/Accounts/Web/Controller/Json/DpmtRH.pm 23 24 lib/LATMOS/Accounts/Web/Controller/Json/Expire.pm 24 25 lib/LATMOS/Accounts/Web/Controller/Json/FreeIp.pm … … 288 289 t/controller_Expire.t 289 290 t/controller_Groups.t 291 t/controller_Json-DpmtRH.t 290 292 t/controller_Json-Expire.t 291 293 t/controller_Json-List.t -
trunk/LATMOS-Accounts-Web/root/html/groups/dpmt.tt
r1626 r1654 8 8 <div class="objectform" id="objectform"> 9 9 10 <div style="margin: 2em; border: outset; ">10 <div style="margin: 2em; border: outset; width: auto; display: inline-block"> 11 11 <form action="[% c.uri_for(groupname, 'dpmt') %]"> 12 12 <input id="inactive" type="checkbox" name="inactive" value="1" [% "checked" IF c.req.param('inactive') %]> … … 48 48 [% ou = c.model('Accounts').db.get_object('user', u) %] 49 49 <a href="[% c.uri_for('/users', u) %]">[% ou.get_attributes('displayName') | html %]</a> 50 ([% ou.get_attributes('contratType') | html %]) 50 51 [% IF c.req.param('mail') %] 51 52 <[% ou.get_attributes('mail') | html %]> … … 68 69 </div> 69 70 71 <div id=chartdpmt style="display: inline-block; width: 600px; height: 500px;"> 72 </div> 73 74 <script> 75 $(document).ready(function(){ 76 // Our ajax data renderer which here retrieves a text file. 77 // it could contact any source and pull data, however. 78 // The options argument isn't used in this renderer. 79 80 $.ajax({ 81 // have to use synchronous here, else the function 82 // will return before the data is fetched 83 // async: false, 84 url: "[% c.uri_for('/json/dpmtrh', dpmt) %]", 85 dataType:"json", 86 success: function(data) { 87 var plot2 = $.jqplot('chartdpmt', 88 [ data ], 89 90 { 91 title: '[% l('Status') %]', 92 seriesDefaults: { 93 shadow: false, 94 renderer: jQuery.jqplot.PieRenderer, 95 rendererOptions: { padding: 2, sliceMargin: 2, showDataLabels: true } 96 }, 97 legend: { show:true, location: 'e' }, 98 }); 99 } 100 }); 101 $.jqplot.config.enablePlugins = true; 102 }); 103 </script> 104 70 105 </div> 71 106 [% END %]
Note: See TracChangeset
for help on using the changeset viewer.