def mgmt_route(): if 'm_email' in session: if request.method == 'PUT': return json.dumps(dbconn.viewRoute(request.get_json().get('r_id')), default = datetime_converter) else: return render_template('management/route.html', records = dbconn.viewRoute()) return redirect(url_for('mgmt_login'))
def booking(): if 'u_email' in session: sch_record = dbconn.viewS() rst_records =dbconn.viewRoute() jty_records = dbconn.viewJetty() return render_template('booking.html', records=rst_records,Sch_records=sch_record, j_records = jty_records ) return redirect(url_for('login'))
def schedules(): route_record = dbconn.viewR() sch_record = dbconn.viewS() rst_records =dbconn.viewRoute() return render_template('schedules.html', records=rst_records,Sch_records=sch_record, Rou_records = route_record)
def jettiesmm(): route_record = dbconn.viewR() rst_records =dbconn.viewRoute() return render_template('mm/jetties.html', Rou_records = route_record, records=rst_records)
def jetties(): route_record = dbconn.viewR() sch_record = dbconn.viewS() rst_records =dbconn.viewRoute() return render_template('jetties.html', Rou_records = route_record,Sch_records=sch_record, records=rst_records)