Skip to content

Commit 272011e

Browse files
committed
Update users list
1 parent d51af71 commit 272011e

File tree

6 files changed

+31
-20
lines changed

6 files changed

+31
-20
lines changed

templates/organization/commissionable_asset/_list.html.twig

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
<table class="table table-stripped mt-3">
33
<thead class="thead-light">
44
<tr>
5+
<th>{{ 'organization.label' | trans }}</th>
56
<th>{{ 'common.type' | trans }}</th>
67
<th>{{ 'organization.asset.identificationNumber' | trans }}</th>
78
{% if showLinks is not defined or showLinks %}
89
<th>{{ 'common.availabilities' | trans }}</th>
910
{% endif %}
10-
<th>{{ 'organization.label' | trans }}</th>
1111
{% if showLinks is not defined or showLinks %}
1212
<th></th>
1313
{% endif %}
@@ -16,6 +16,8 @@
1616
<tbody>
1717
{% for asset in assets %}
1818
<tr>
19+
<td>{{ asset.organization.name }}</td>
20+
1921
<td>{{ asset.assetType.name }}</td>
2022
<td class="text-nowrap">
2123
{{ asset.name }}
@@ -28,10 +30,9 @@
2830
</td>
2931
{% endif %}
3032

31-
<td>{{ asset.organization.name }}</td>
3233
{% if showLinks is not defined or showLinks %}
3334
<td>
34-
<button class="btn btn-outline-primary" data-toggle="ajax-modal" data-href="{{ path('app_organization_asset_show_modal', { 'asset': asset.id, 'organization': asset.organization.id }) }}" title="{{ 'action.show' | trans }}">
35+
<button class="btn btn-outline-primary text-nowrap" data-toggle="ajax-modal" data-href="{{ path('app_organization_asset_show_modal', { 'asset': asset.id, 'organization': asset.organization.id }) }}" title="{{ 'action.show' | trans }}">
3536
<span class="fa fa-copy"></span> {{ 'action.show' | trans }}
3637
</button>
3738
</td>

templates/organization/mission/_list.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
{% endif %}
5959

6060
{% if modalLinks is not defined or modalLinks %}
61-
<button type="button" class="btn btn-outline-primary" data-toggle="ajax-modal" data-href="{{ path('app_organization_mission_modal', {id: mission.id}) }}">
61+
<button type="button" class="btn btn-outline-primary text-nowrap" data-toggle="ajax-modal" data-href="{{ path('app_organization_mission_modal', {id: mission.id}) }}">
6262
<span class="fa fa-copy"></span> {{ 'action.show' | trans }}
6363
</button>
6464
{% endif %}

templates/organization/mission/_list_full.html.twig

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
<td>
2424
<span class="badge badge-secondary">{{ mission.type.name | default('') }}</span>
2525

26-
<button type="button" class="btn btn-link p-0" data-toggle="ajax-modal" data-href="{{ path('app_organization_mission_modal', {id: mission.id}) }}">
26+
<button type="button" class="btn btn-link p-0 text-nowrap" data-toggle="ajax-modal" data-href="{{ path('app_organization_mission_modal', {id: mission.id}) }}">
2727
<span class="fa fa-copy"></span> {{ mission.name }}
2828
</button>
2929
</td>
@@ -45,7 +45,7 @@
4545
<td colspan="3"></td>
4646
<td>{{ user.organization.name }}</td>
4747
<td>
48-
<button type="button" class="btn btn-link p-0" data-toggle="ajax-modal" data-href="{{ path('app_organization_user_show_modal', {userToShow: user.id, organization: user.organization.id}) }}">
48+
<button type="button" class="btn btn-link p-0 text-nowrap" data-toggle="ajax-modal" data-href="{{ path('app_organization_user_show_modal', {userToShow: user.id, organization: user.organization.id}) }}">
4949
<span class="fa fa-copy"></span> {{ user.fullName }}
5050
</button>
5151
</td>
@@ -66,7 +66,7 @@
6666
<td colspan="3"></td>
6767
<td>{{ asset.organization.name }}</td>
6868
<td>
69-
<button type="button" class="btn btn-link p-0" data-toggle="ajax-modal" data-href="{{ path('app_organization_asset_show_modal', {asset: asset.id, organization: asset.organization.id}) }}">
69+
<button type="button" class="btn btn-link p-0 text-nowrap" data-toggle="ajax-modal" data-href="{{ path('app_organization_asset_show_modal', {asset: asset.id, organization: asset.organization.id}) }}">
7070
<span class="fa fa-copy"></span> {{ asset }}
7171
</button>
7272
</td>

templates/organization/planning/_availabilities_assets.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
{% block itemDataRowHeader %}
1414
<button type="button" class="btn btn-link p-0" data-toggle="ajax-modal" data-href="{{ path('app_organization_asset_show_modal', {asset: item.entity.id, organization: item.entity.organization.id}) }}">
15-
<span class="fa fa-copy"></span> {{ item.entity }}
15+
{{ item.entity }}
1616
</button>
1717
{% endblock itemDataRowHeader %}
1818

templates/organization/planning/_availabilities_users.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
{% block itemDataRowHeader %}
1919
<button type="button" class="btn btn-link p-0" data-toggle="ajax-modal" data-href="{{ path('app_organization_user_show_modal', {userToShow: item.entity.id, organization: item.entity.organization.id}) }}">
20-
<span class="fa fa-copy"></span> {{ item.entity }}
20+
{{ item.entity }}
2121
</button>
2222

2323
{{ item.entity.skillSet | filterSkillsToDisplay | filterInludedSkills | map(skill => skill|skillBadge) | join | raw }}

templates/organization/user/_list.html.twig

Lines changed: 21 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
11
<div class="table-responsive">
2-
<table class="table table-striped mt-3">
2+
<table class="table table-striped text-nowrap mt-3">
33
<thead class="thead-light">
44
<tr>
5-
<th>{{ 'user.identificationNumber' | trans }}</th>
5+
{% if organization.isParent %}
6+
<th>{{ 'organization.label' | trans }}</th>
7+
{% endif %}
68
<th>{{ 'user.firstName' | trans }}</th>
79
<th>{{ 'user.lastName' | trans }}</th>
8-
<th>{{ 'organization.user.skillset' | trans }}</th>
9-
<th>{{ 'user.email' | trans }}</th>
10-
{% if organization.parent is null %}
11-
<th>{{ 'organization.label' | trans }}</th>
10+
<th>{{ 'user.skills' | trans }}</th>
11+
<th>{{ 'user.identificationNumber' | trans }}</th>
12+
{% if showLinks is not defined or showLinks %}
13+
<th>{{ 'user.email' | trans }}</th>
1214
{% endif %}
15+
<th>{{ 'common.phoneNumberShort' | trans }}</th>
1316
{% if showLinks is not defined or showLinks %}
1417
<th></th>
1518
{% endif %}
@@ -18,17 +21,24 @@
1821
<tbody>
1922
{% for user in users %}
2023
<tr>
21-
<td><small>{{ user.identificationNumber }}</small></td>
24+
{% if organization.isParent %}
25+
<td>{{ user.organization.name }}</td>
26+
{% endif %}
2227
<td>{{ user.firstName }}</td>
2328
<td>{{ user.lastName }}</td>
2429
<td>{{ user|userBadges }}</td>
25-
<td><small>{{ user.emailAddress }}</small></td>
26-
{% if organization.parent is null %}
27-
<td>{{ user.organization.name }}</td>
30+
<td><small>{{ user.identificationNumber }}</small></td>
31+
{% if showLinks is not defined or showLinks %}
32+
<td><small>{{ user.emailAddress }}</small></td>
2833
{% endif %}
34+
<td>
35+
<a href="tel:{{ user.phoneNumber|phone_number_format('E164') }}" class="small">
36+
{{ user.phoneNumber|phone_number_format('NATIONAL') }}
37+
</a>
38+
</td>
2939
{% if showLinks is not defined or showLinks %}
3040
<td>
31-
<button class="btn btn-outline-primary" data-toggle="ajax-modal" data-href="{{ path('app_organization_user_show_modal', { 'userToShow': user.id, 'organization': user.organization.id }) }}">
41+
<button class="btn btn-outline-primary text-nowrap" data-toggle="ajax-modal" data-href="{{ path('app_organization_user_show_modal', { 'userToShow': user.id, 'organization': user.organization.id }) }}">
3242
<span class="fa fa-copy"></span> {{ 'action.show' | trans }}
3343
</button>
3444
</td>

0 commit comments

Comments
 (0)