Commit d1945233 authored by Manas Gabani's avatar Manas Gabani

Added Distribution routes for students page

parent d90bbc6f
No preview for this file type
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
Year,State_Code,Primary_Only,Primary_with_Upper_Primary,Primary with_Upper_Primary_Sec_H.Sec,Upper_Primary_Only,Upper_Primary_with_Sec_H.Sec,Primary_with_Upper_Primary_Sec,Upper_Primary_with _Sec,No_Response,Main_Dimension,Sub_Dimension
Year,State_Code,Primary_Only,Primary_with_Upper_Primary,Primary with_Upper_Primary_Sec_H.Sec,Upper_Primary_Only,Upper_Primary_with_Sec_H.Sec,Primary_with_Upper_Primary_Sec,Upper_Primary_with_Sec,No_Response,Main_Dimension,Sub_Dimension
2013,1,13288,7867,115,135,103,1328,398,0,School by Category,Government
2013,2,10656,5,27,2322,1373,3,833,0,School by Category,Government
2013,3,13535,552,426,2881,1589,529,1825,6,School by Category,Government
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
static/img/sample_trend_schools.jpeg

30.2 KB | W: | H:

static/img/sample_trend_schools.jpeg

28.8 KB | W: | H:

static/img/sample_trend_schools.jpeg
static/img/sample_trend_schools.jpeg
static/img/sample_trend_schools.jpeg
static/img/sample_trend_schools.jpeg
  • 2-up
  • Swipe
  • Onion skin
......@@ -107,66 +107,117 @@
<div class="content-2">
<div class="new-students">
<div class="title">
Distribution across states
Distribution across states for Elementary Enrolment in {% print(elementary_enrolment_category) %} Schools
</div>
<form method="POST" action="/get_distribution_from_students">
Select state:
<select name="state" class="state">
<option value="Maharashtra">Maharashtra</option>
<option value="Gujarat">Gujarat</option>
<option value="Karnataka">Karnataka</option>
<option value="Kerela">Kerela</option>
<form method="POST" action="/get_distribution_for_elementary_enrolment">
Select Year:
<select name="year" class="year">
<option value="2016">2016</option>
<option value="2015">2015</option>
<option value="2014">2014</option>
<option value="2013">2013</option>
<option value="2012">2012</option>
<option value="2011">2011</option>
<option value="2010">2010</option>
<option value="2009">2009</option>
<option value="2008">2008</option>
<option value="2007">2007</option>
<option value="2006">2006</option>
</select>
Select type:
<select name="type" class="type">
<option value="government">Government</option>
Select Category:
<select name="category" class="category">
<option value="govt">Government</option>
<option value="private">Private</option>
<option value="others">Madrasas and Others</option>
</select>
<input name="get_distribution_from_students" type="submit" value="Submit">
<input name="get_distribution_for_elementary_enrolment" type="submit" value="Submit">
</form>
{% if distribution_from_students %}
<div>
<img src="{{ url_for('static', filename=distribution_from_students) }}">
</div>
{% else %}
<div>
<img src="{{ url_for('static', filename='img/sample_distribution_students.jpeg') }}">
<img src="{{ url_for('static', filename=distribution_elementary_enrolment) }}">
</div>
{% endif %}
</div>
</div>
{% if distribution_from_students %}
<div class="cards">
<div class="card">
<div class="box">
<h1>2194</h1>
<h3>Government</h3>
</div>
<div class="icon-case">
<img src="{{ url_for('static', filename='img/students.png') }}" alt="">
<div class="content-2">
<div class="new-students">
<div class="title">
Top Performing States
</div>
<table>
<tr>
<th>Rank</th>
<th>Name</th>
</tr>
<tr>
<td>1</td>
<td>{% print(elementary_enrolment_summary['top3'][0]) %}</td>
</tr>
<tr>
<td>2</td>
<td>{% print(elementary_enrolment_summary['top3'][1]) %}</td>
</tr>
<tr>
<td>3</td>
<td>{% print(elementary_enrolment_summary['top3'][2]) %}</td>
</tr>
</table>
</div>
<div class="card">
<div class="box">
<h1>53</h1>
<h3>Private</h3>
</div>
<div class="icon-case">
<img src="{{ url_for('static', filename='img/teachers.png') }}" alt="">
<div class="new-students">
<div class="title">
Worst Performing States
</div>
<table>
<tr>
<th>Rank</th>
<th>Name</th>
</tr>
<tr>
<td>1</td>
<td>{% print(elementary_enrolment_summary['bottom3'][0]) %}</td>
</tr>
<tr>
<td>2</td>
<td>{% print(elementary_enrolment_summary['bottom3'][1]) %}</td>
</tr>
<tr>
<td>3</td>
<td>{% print(elementary_enrolment_summary['bottom3'][2]) %}</td>
</tr>
</table>
</div>
<div class="card">
<div class="box">
<h1>5</h1>
<h3>Others</h3>
</div>
<div class="content-2">
<div class="new-students">
<div class="title">
Distribution across states for Rural Enrolment in {% print(rural_enrolment_category) %} Schools
</div>
<div class="icon-case">
<img src="{{ url_for('static', filename='img/schools.png') }}" alt="">
<form method="POST" action="/get_distribution_for_rural_enrolment">
Select Year:
<select name="year" class="year">
<option value="2016">2016</option>
<option value="2015">2015</option>
<option value="2014">2014</option>
<option value="2013">2013</option>
<option value="2012">2012</option>
<option value="2011">2011</option>
<option value="2010">2010</option>
<option value="2009">2009</option>
<option value="2008">2008</option>
<option value="2007">2007</option>
<option value="2006">2006</option>
</select>
Select Category:
<select name="category" class="category">
<option value="govt">Government</option>
<option value="private">Private</option>
</select>
<input name="get_distribution_for_rural_enrolment" type="submit" value="Submit">
</form>
<div>
<img src="{{ url_for('static', filename=distribution_rural_enrolment) }}">
</div>
</div>
</div>
{% else %}
<div class="content-2">
<div class="new-students">
<div class="title">
......@@ -179,15 +230,15 @@
</tr>
<tr>
<td>1</td>
<td>Maharashtra</td>
<td>{% print(rural_enrolment_summary['top3'][0]) %}</td>
</tr>
<tr>
<td>2</td>
<td>Gujarat</td>
<td>{% print(rural_enrolment_summary['top3'][1]) %}</td>
</tr>
<tr>
<td>3</td>
<td>Karnataka</td>
<td>{% print(rural_enrolment_summary['top3'][2]) %}</td>
</tr>
</table>
</div>
......@@ -202,20 +253,20 @@
</tr>
<tr>
<td>1</td>
<td>West Bengal</td>
<td>{% print(rural_enrolment_summary['bottom3'][0]) %}</td>
</tr>
<tr>
<td>2</td>
<td>Orissa</td>
<td>{% print(rural_enrolment_summary['bottom3'][1]) %}</td>
</tr>
<tr>
<td>3</td>
<td>Bihar</td>
<td>{% print(rural_enrolment_summary['bottom3'][2]) %}</td>
</tr>
</table>
</div>
</div>
{% endif %}
</div>
</div>
</body>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment