Ejemplo n.º 1
0
def viewEmployee(ID, user=None):
  if 'usertype' in session:
    if session['usertype'] == 'HR' or session['usertype'] == 'ADM':
      return render_template('employee.html', FE = db.getEmployee(ID), user=escape(session['user']), )
    else:
      flash('Unauthorized access')
      return redirect(url_for('logout'))
Ejemplo n.º 2
0
def gafe():
    return render_template('test.html', FieldEmployees=db.getEmployee(2))