Skip to content

Commit

Permalink
- block sick vacation type for employees (#362)
Browse files Browse the repository at this point in the history
* - block sick vacation for employees

* - fix

* - fix
  • Loading branch information
EwelinaSkrzypacz authored Oct 4, 2023
1 parent 430b5dd commit 8024176
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
3 changes: 1 addition & 2 deletions config/vacation_types.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,13 @@
],
VacationType::Sick->value => [
VacationTypeConfigRetriever::KEY_TECHNICAL_APPROVAL => false,
VacationTypeConfigRetriever::KEY_ADMINISTRATIVE_APPROVAL => true,
VacationTypeConfigRetriever::KEY_ADMINISTRATIVE_APPROVAL => false,
VacationTypeConfigRetriever::KEY_BILLABLE => true,
VacationTypeConfigRetriever::KEY_HAS_LIMIT => false,
VacationTypeConfigRetriever::KEY_AVAILABLE_FOR => [
EmploymentForm::EmploymentContract,
],
VacationTypeConfigRetriever::KEY_REQUEST_ALLOWED_FOR => [
Role::Employee,
Role::Administrator,
Role::AdministrativeApprover,
Role::TechnicalApprover,
Expand Down
10 changes: 5 additions & 5 deletions resources/js/Pages/Users/Index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ watch(form, debounce(() => {
<input
v-model.trim="form.search"
type="search"
class="block py-2 pr-3 pl-10 w-full max-w-lg sm:text-sm placeholder:text-gray-500 focus:text-gray-900 focus:placeholder:text-gray-400 bg-white rounded-md border border-gray-300 focus:border-blumilk-500 focus:outline-none focus:ring-1 focus:ring-blumilk-500 sm:text-sm"
class="block py-2 pr-3 pl-10 w-full max-w-lg placeholder:text-gray-500 focus:text-gray-900 focus:placeholder:text-gray-400 bg-white rounded-md border border-gray-300 focus:border-blumilk-500 focus:outline-none focus:ring-1 focus:ring-blumilk-500 sm:text-sm"
placeholder="Szukaj"
>
</div>
Expand Down Expand Up @@ -144,7 +144,7 @@ watch(form, debounce(() => {
</div>
</Listbox>
</div>
<div class="overflow-auto xl:overflow-visible relative">
<div class="overflow-auto 2xl:overflow-visible relative">
<div
v-if="selectedUsers.length > 0"
class="flex absolute top-0 left-20 h-10 items-center bg-gray-50"
Expand Down Expand Up @@ -200,13 +200,13 @@ watch(form, debounce(() => {
</th>
<th
scope="col"
class="py-3 px-4 text-xs font-semibold tracking-wider text-left text-gray-500 uppercase whitespace-nowrap"
class="py-3 px-4 text-xs font-semibold tracking-wider text-left text-gray-500 uppercase whitespace-normal"
>
Następne badanie lekarskie
</th>
<th
scope="col"
class="py-3 px-4 text-xs font-semibold tracking-wider text-left text-gray-500 uppercase whitespace-nowrap"
class="py-3 px-4 text-xs font-semibold tracking-wider text-left text-gray-500 uppercase whitespace-normal"
>
Następne szkolenie BHP
</th>
Expand Down Expand Up @@ -255,7 +255,7 @@ watch(form, debounce(() => {
<td class="p-4 text-sm text-gray-500 whitespace-nowrap">
{{ user.lastActiveAt ? DateTime.fromSQL(user.lastActiveAt).toRelative() : '-' }}
</td>
<td class="p-4 text-sm text-gray-500 whitespace-nowrap">
<td class="p-4 text-sm text-gray-500 whitespace-normal">
{{ user.position }}
</td>
<td class="p-4 text-sm text-gray-500 whitespace-nowrap">
Expand Down
1 change: 0 additions & 1 deletion tests/Feature/VacationRequestTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -728,7 +728,6 @@ public function testCorrectVacationTypesAreAvailableForEmployee(): void
["label" => "Urlop bezpłatny", "value" => "unpaid_vacation"],
["label" => "Wolontariat", "value" => "volunteering_vacation"],
["label" => "Odbiór za święto", "value" => "time_in_lieu"],
["label" => "Zwolnienie lekarskie", "value" => "sick_vacation"],
["label" => "Nieobecność", "value" => "absence"],
["label" => "Praca zdalna", "value" => "remote_work"],
]);
Expand Down

0 comments on commit 8024176

Please sign in to comment.