Spaces:
Sleeping
Sleeping
Commit
·
d57f53a
1
Parent(s):
3b6bef4
compensation details
Browse files- app.py +3 -3
- templates/home.html +5 -8
- templates/lay_side.html +3 -18
- templates/{validate_learning.html → validate_compensation.html} +0 -0
app.py
CHANGED
|
@@ -33,8 +33,8 @@ request_info = {}
|
|
| 33 |
app.config['SECRET_KEY'] = 'faith'
|
| 34 |
app.config['PERMANENT_SESSION_LIFETIME'] = timedelta(minutes=60)
|
| 35 |
|
| 36 |
-
@app.route("/
|
| 37 |
-
def
|
| 38 |
# con = sqlite3.connect("database.db")
|
| 39 |
# df = pd.read_sql_query(f"SELECT * from learning", con)
|
| 40 |
df = pd.DataFrame({'ID':[12,13], 'Status':['Done', 'In Progress']})
|
|
@@ -106,7 +106,7 @@ def load_learning():
|
|
| 106 |
null_issue = df['Null percentage'].to_list()
|
| 107 |
ok_data = df['Seems ok'].to_list()
|
| 108 |
mismatch_issue = df['data mismatch'].to_list()
|
| 109 |
-
tbl_selected =
|
| 110 |
|
| 111 |
return render_template("validate_learning.html",
|
| 112 |
req_tables = tbl_selected,
|
|
|
|
| 33 |
app.config['SECRET_KEY'] = 'faith'
|
| 34 |
app.config['PERMANENT_SESSION_LIFETIME'] = timedelta(minutes=60)
|
| 35 |
|
| 36 |
+
@app.route("/validate_compensation", methods=['GET'])
|
| 37 |
+
def load_compensation():
|
| 38 |
# con = sqlite3.connect("database.db")
|
| 39 |
# df = pd.read_sql_query(f"SELECT * from learning", con)
|
| 40 |
df = pd.DataFrame({'ID':[12,13], 'Status':['Done', 'In Progress']})
|
|
|
|
| 106 |
null_issue = df['Null percentage'].to_list()
|
| 107 |
ok_data = df['Seems ok'].to_list()
|
| 108 |
mismatch_issue = df['data mismatch'].to_list()
|
| 109 |
+
tbl_selected = request_info.get('tbl_selected', [])
|
| 110 |
|
| 111 |
return render_template("validate_learning.html",
|
| 112 |
req_tables = tbl_selected,
|
templates/home.html
CHANGED
|
@@ -30,13 +30,10 @@
|
|
| 30 |
<label for="sl_subsl">Service Line</label>
|
| 31 |
<select class="form-control" id = "slssl" name="sl_subsl" required>
|
| 32 |
<option value="">Select Option</option>
|
| 33 |
-
<option value="consulting_dna">Consulting
|
| 34 |
-
<option value="
|
| 35 |
-
<option value="
|
| 36 |
-
<option value="
|
| 37 |
-
<option value="tax_gcr_emeia">TAX GCR EMEIA</option>
|
| 38 |
-
<option value="eyk_content_delivery">EYK Content Delivery</option>
|
| 39 |
-
<option value="es_rms_iass">ES RMS IASS</option>
|
| 40 |
</select>
|
| 41 |
</div>
|
| 42 |
|
|
@@ -45,7 +42,7 @@
|
|
| 45 |
<select class="form-control" id="multiple-checkboxes" multiple="multiple" name="tbl_selected" required>
|
| 46 |
<option value="workforce">Workforce</option>
|
| 47 |
<option value="badges">Badges</option>
|
| 48 |
-
<option value="
|
| 49 |
</select>
|
| 50 |
</div>
|
| 51 |
|
|
|
|
| 30 |
<label for="sl_subsl">Service Line</label>
|
| 31 |
<select class="form-control" id = "slssl" name="sl_subsl" required>
|
| 32 |
<option value="">Select Option</option>
|
| 33 |
+
<option value="consulting_dna">Consulting</option>
|
| 34 |
+
<option value="assurance_dna">Assurance</option>
|
| 35 |
+
<option value="tax_gcr_emeia">TAX</option>
|
| 36 |
+
<option value="eyk_content_delivery">Audit</option>
|
|
|
|
|
|
|
|
|
|
| 37 |
</select>
|
| 38 |
</div>
|
| 39 |
|
|
|
|
| 42 |
<select class="form-control" id="multiple-checkboxes" multiple="multiple" name="tbl_selected" required>
|
| 43 |
<option value="workforce">Workforce</option>
|
| 44 |
<option value="badges">Badges</option>
|
| 45 |
+
<option value="compensation">Compensation</option>
|
| 46 |
</select>
|
| 47 |
</div>
|
| 48 |
|
templates/lay_side.html
CHANGED
|
@@ -73,27 +73,12 @@
|
|
| 73 |
|
| 74 |
<!-- Icon and tooltip for Learning -->
|
| 75 |
<li class="nav-item {% if 'learning' not in req_tables|map('lower') %} disabled {% endif %}">
|
| 76 |
-
<a class="val_leftsidebarcls" href="/
|
| 77 |
-
<i class="fas fa-
|
| 78 |
-
<span>
|
| 79 |
</a>
|
| 80 |
</li>
|
| 81 |
|
| 82 |
-
<!-- Icon and tooltip for Timecard -->
|
| 83 |
-
<li class="nav-item {% if 'gte' not in req_tables|map('lower') %} disabled {% endif %}">
|
| 84 |
-
<a class="val_leftsidebarcls" href="#" data-section="timecard">
|
| 85 |
-
<i class="fas fa-clock"></i>
|
| 86 |
-
<span>Timecard</span>
|
| 87 |
-
</a>
|
| 88 |
-
</li>
|
| 89 |
-
|
| 90 |
-
<!-- Icon and tooltip for Qualification Details -->
|
| 91 |
-
<li class="nav-item {% if 'lat' not in req_tables|map('lower') %} disabled {% endif %}">
|
| 92 |
-
<a class="val_leftsidebarcls" href="#" data-toggle="tooltip" data-placement="right" title="Qualification Details">
|
| 93 |
-
<i class="fas fa-user-graduate"></i>
|
| 94 |
-
<span>Qualification</span>
|
| 95 |
-
</a>
|
| 96 |
-
</li>
|
| 97 |
|
| 98 |
<!-- Icon and tooltip for Misc Details -->
|
| 99 |
<li class="nav-item">
|
|
|
|
| 73 |
|
| 74 |
<!-- Icon and tooltip for Learning -->
|
| 75 |
<li class="nav-item {% if 'learning' not in req_tables|map('lower') %} disabled {% endif %}">
|
| 76 |
+
<a class="val_leftsidebarcls" href="/validate_compensation" data-section="learning">
|
| 77 |
+
<i class="fas fa-money-bill-wave"></i>
|
| 78 |
+
<span>Salary</span>
|
| 79 |
</a>
|
| 80 |
</li>
|
| 81 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 82 |
|
| 83 |
<!-- Icon and tooltip for Misc Details -->
|
| 84 |
<li class="nav-item">
|
templates/{validate_learning.html → validate_compensation.html}
RENAMED
|
File without changes
|