def find_applicant_by_first_name(): if request.method == 'GET': return render_template('search.html', first_name=True) else: user_input = request.form.to_dict() applicant_first_name = (user_input.get('first_name')).capitalize() applicant_info = data_manager.get_applicant_info(applicant_first_name) return render_template('applicant_info.html', applicant_info=applicant_info)
def applicants(): applicant_info = data_manager.get_applicant_info() return render_template('applicant_info.html', applicant_info=applicant_info)
def display_applicant(applicant_id): applicant = data_manager.get_applicant_info(applicant_id) return render_template('applicant-info.html', applicant=applicant)
def applicant_info(application_code): applicant_info = data_manager.get_applicant_info(application_code, search_by_code=True) return render_template('applicant_info.html', applicant_info=applicant_info, display_all=True)