Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Implements Stats
Stats is a client-side tool that helps support teams report what kind questions they answer and their frequency.
- Loading branch information
Showing
with
645 additions
and 108 deletions.
- +92 −0 pups/templates/management.html
- +1 −1 pups/templates/nav_bar.html
- +15 −1 static/css/stats.css
- +303 −79 static/js/stats.js
- +90 −4 stats/models.py
- +40 −20 stats/templates/stats.html
- +9 −1 stats/urls.py
- +95 −2 stats/views.py
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
| @@ -0,0 +1,92 @@ | ||
| {% extends "base.html" %} | ||
| {% block title %}Pups - Management{% endblock title %} | ||
| {% block script %} | ||
| <script type="text/javascript" src="/static/js/jquery.min.js"></script> | ||
| <script src="/static/js/bootstrap.min.js"></script> | ||
| {% endblock script %} | ||
|
|
||
| {% block content %} | ||
| <div id="container"> | ||
| {% include "nav_bar.html" %} | ||
|
|
||
| {% if messages %} | ||
| {% for message in messages %} | ||
| <b>{{message}}</b> <br /> | ||
| {% endfor %} | ||
| {% endif %} | ||
| <div class="page-header" style="padding-left:20px"> | ||
| <h3>Management</h3> | ||
| </div> | ||
| <div style="width:600px; padding-left:30px"> | ||
| <form role="form" action="/monthlyreport.json" method="GET"> | ||
| {% csrf_token %} | ||
| <table class="table table-striped"> | ||
| <tr> | ||
| <td>Webchat/Stats Report</td> | ||
| <td class="col-md-3"> | ||
| <select class="form-control input-sm" name="month"> | ||
| <option value="1">January</option> | ||
| <option value="2">February</option> | ||
| <option value="3">March</option> | ||
| <option value="4">April</option> | ||
| <option value="5">May</option> | ||
| <option value="6">June</option> | ||
| <option value="7">July</option> | ||
| <option value="8">August</option> | ||
| <option value="9">September</option> | ||
| <option value="10">October</option> | ||
| <option value="11">November</option> | ||
| <option value="12">December</option> | ||
| </select> | ||
| </td> | ||
| <td> | ||
| <select class="form-control input-sm" name="year"> | ||
| {% for year in year_list %} | ||
| <option value="{{year}}">{{year}}</option> | ||
| {% endfor %} | ||
| </select> | ||
| </td> | ||
| <td><button class="btn btn-primary" type="submit">Get Report</button></td> | ||
| </tr> | ||
| </form> | ||
| <form role="form" action="/backupstats" method="GET"> | ||
| {% csrf_token %} | ||
| <tr> | ||
| <td>Backup & reset issues counters</td> | ||
| <td class="col-md-3"> | ||
| <select class="form-control input-sm" name="month"> | ||
| <option value="1">January</option> | ||
| <option value="2">February</option> | ||
| <option value="3">March</option> | ||
| <option value="4">April</option> | ||
| <option value="5">May</option> | ||
| <option value="6">June</option> | ||
| <option value="7">July</option> | ||
| <option value="8">August</option> | ||
| <option value="9">September</option> | ||
| <option value="10">October</option> | ||
| <option value="11">November</option> | ||
| <option value="12">December</option> | ||
| </select> | ||
| </td> | ||
| <td class="col-md-2"> | ||
| <select class="form-control input-sm" name="year"> | ||
| {% for year in year_list %} | ||
| <option value="{{year}}">{{year}}</option> | ||
| {% endfor %} | ||
| </select> | ||
| </td> | ||
| <td><button class="btn btn-primary" type="submit">Go</button></td> | ||
| </tr> | ||
| </form> | ||
| <tr> | ||
| <td>View archived stats reports</td> | ||
| <td></td> | ||
| <td></td> | ||
| <td><a href="/stats_reports_dir"><button class="btn btn-primary" type="button">Go</button></a></td> | ||
| </tr> | ||
| </table> | ||
| </div> | ||
| <div class="push_footer"></div> | ||
| </div> | ||
| {% endblock content %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Oops, something went wrong.