Skip to content

Commit 115e6c0

Browse files
committed
Fix button translation key
1 parent 06d3424 commit 115e6c0

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

src/Controller/Organization/User/UserEditController.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
namespace App\Controller\Organization\User;
66

7-
use App\Entity\Organization;
87
use App\Entity\User;
98
use App\Form\Type\UserType;
109
use App\Security\Voter\UserVoter;

templates/organization/commissionable_asset/_list.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<div class="row">
22
<div class="col-12 text-right mb-2">
33
<a class="btn btn-success" href="{{ path('app_organization_asset_add', {organization: organization.id | default(app.user.id)}) }}" role="button">
4-
{{ 'organization.vehicle.identificationNumber' | trans }}
4+
{{ 'organization.vehicle.add' | trans }}
55
</a>
66
</div>
77
</div>

templates/organization/list.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
<a href="{{ path('app_organization_edit', { id: organization.id }) }}" class="btn btn-outline-secondary">{{ 'action.edit' | trans }}</a>
2727
<a class="btn btn-outline-primary" role="button" href="{{ path('app_organization_user_list', {'organization': organization.id}) }}">{{ 'organization.userList' | trans }}</a>
2828
<a class="btn btn-outline-primary" role="button" href="{{ path('app_organization_assets', {'organization': organization.id}) }}">{{ 'organization.assetsList' | trans }}</a>
29-
<a class="btn btn-outline-primary" role="button" href="{{ path('planning', {'organizations[]': organization.id}) }}">{{ 'organization.userAvailabilities' | trans }}</a>
29+
<a class="btn btn-outline-primary" role="button" href="{{ path('planning', {'organizations[]': organization.id, 'from': 'monday this week' | date('Y-m-d\\T00:00:00'), 'to': 'sunday this week' | date('Y-m-d\\T00:00:00')}) }}">{{ 'organization.userAvailabilities' | trans }}</a>
3030
</td>
3131
</tr>
3232
{% endfor %}

0 commit comments

Comments
 (0)