示例#1
0
 def get(self, empid):
   empid = empid.split("/edit")[0]
   sal_details = emp_module.get_salary_details(self.db, empid)
   try:
     empname = emp_module.get_emp_details(self.db, empid)['emp_name']
   except:
     empname = None
   
   self.render("edit_salary.html", current_user = self.get_current_user(), is_an_admin=int(self.get_current_user()['is_admin']), empid=empid, empname=empname, sal_details=sal_details)
示例#2
0
  def get(self, employee_id):
    employee_details = emp_module.get_emp_details(self.db, employee_id)

    self.render("edit_employee.html", current_user = self.get_current_user(), is_an_admin=int(self.get_current_user()['is_admin']), employee_id=employee_id, employee_details=employee_details, errors="")