Merge remote-tracking branch 'origin/hoursworked' into hoursworked
Some checks failed
PR Builder / Build-PR (pull_request) Failing after 21s
Some checks failed
PR Builder / Build-PR (pull_request) Failing after 21s
# Conflicts: # src/main/java/com/primefactorsolutions/model/Actividad.java # src/main/java/com/primefactorsolutions/service/HoursWorkedService.java # src/main/java/com/primefactorsolutions/views/EmployeeView.java # src/main/java/com/primefactorsolutions/views/HoursWorkedView.java # src/main/java/com/primefactorsolutions/views/ReporteView.java
This commit is contained in:
commit
b58a833444
@ -1,5 +1,7 @@
|
||||
package com.primefactorsolutions.views;
|
||||
|
||||
import com.primefactorsolutions.model.Employee;
|
||||
import com.primefactorsolutions.model.Team;
|
||||
import com.primefactorsolutions.model.*;
|
||||
import com.primefactorsolutions.service.EmployeeService;
|
||||
import com.primefactorsolutions.service.ReportService;
|
||||
@ -186,7 +188,7 @@ public class EmployeeView extends BeanValidationForm<Employee> implements HasUrl
|
||||
initDialog();
|
||||
}
|
||||
|
||||
private void validateNameField(final TextField textField, final String value) {
|
||||
private void validateNameField(TextField textField, String value) {
|
||||
if (!value.matches("^[a-zA-ZáéíóúÁÉÍÓÚñÑ\\s]*$")) {
|
||||
textField.setInvalid(true);
|
||||
textField.setErrorMessage("Este campo solo debe contener letras.");
|
||||
@ -265,7 +267,7 @@ public class EmployeeView extends BeanValidationForm<Employee> implements HasUrl
|
||||
ComboBox<Employee.Status> comboBox = new ComboBox<>("Estado");
|
||||
comboBox.setItems(Employee.Status.values());
|
||||
comboBox.setItemLabelGenerator(Employee.Status::name);
|
||||
comboBox.setRequiredIndicatorVisible(true);
|
||||
comboBox.setRequiredIndicatorVisible(true); // Indicador de campo requerido
|
||||
return comboBox;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user