(name, password, salary, position)
| 1136 | # show_popup_message(stacked_widget,"Invalid admin credentials",0) |
| 1137 | |
| 1138 | def add_employee_form_submit(name, password, salary, position): |
| 1139 | if ( |
| 1140 | len(name) != 0 |
| 1141 | and len(password) != 0 |
| 1142 | and len(salary) != 0 |
| 1143 | and len(position) != 0 |
| 1144 | ): |
| 1145 | backend.create_employee(name, password, salary, position) |
| 1146 | show_popup_message( |
| 1147 | stacked_widget, "Employee added successfully", ADMIN_MENU_PAGE |
| 1148 | ) |
| 1149 | |
| 1150 | else: |
| 1151 | print("Please fill in all fields") |
| 1152 | show_popup_message( |
| 1153 | stacked_widget, "Please fill in all fields", ADD_EMPLOYEE_PAGE |
| 1154 | ) |
| 1155 | |
| 1156 | def update_employee_data(name, password, salary, position, name_to_update): |
| 1157 | try: |
no test coverage detected