2
2
< div class ="container ">
3
3
< div class ="py-2 px-0 mx-0 ">
4
4
< div
5
- class ="row text-center justify-content-md-between justify-content-center align-items-center "
5
+ class ="row text-center justify-content-md-between justify-content-center align-items-center py-2 "
6
6
>
7
- < h1 class ="col-md-2 col-12 title text-start "> Domiciliés</ h1 >
8
- < div class ="col-md-8 col-12 align-items-center ">
9
- < div
10
- ngbDropdown
11
- id ="dropdownSearchString "
12
- class ="d-block d-md-inline-block my-1 "
13
- #dropdownSearchString ="ngbDropdown "
7
+ < div class ="col-md-2 col-6 text-end order-2 order-md-3 ">
8
+ < a
9
+ *ngIf ="me.role !== 'facteur' "
10
+ routerLink ="/usager/nouveau "
11
+ ariaCurrentWhenActive ="page "
12
+ class ="btn btn-white-primary "
14
13
>
15
- < button
16
- type ="button "
17
- aria-label ="Type de donnée recherchée "
18
- aria-haspopup ="true "
19
- ngbDropdownToggle
14
+ < fa-icon
15
+ aria-hidden ="true "
16
+ [icon] ="['fas', 'plus'] "
17
+ class ="me-2 "
18
+ > </ fa-icon >
19
+ Créer une demande
20
+ </ a >
21
+ </ div >
22
+ < h1 class ="col-md-2 col-6 title text-start order-1 order-md-1 ">
23
+ Domiciliés
24
+ </ h1 >
25
+ < div class ="col-md-8 col-12 order-3 order-md-2 ">
26
+ < div class ="input-group " id ="search-bar ">
27
+ < div
28
+ ngbDropdown
29
+ id ="dropdownSearchString "
30
+ #dropdownSearchString ="ngbDropdown "
20
31
>
21
- < span >
32
+ < button
33
+ class ="btn btn-light "
34
+ type ="button "
35
+ aria-label ="Type de donnée recherchée "
36
+ aria-haspopup ="true "
37
+ ngbDropdownToggle
38
+ >
22
39
< fa-icon
23
40
[icon] ="['fas', 'list'] "
24
41
aria-hidden ="true "
@@ -28,64 +45,56 @@ <h1 class="col-md-2 col-12 title text-start">Domiciliés</h1>
28
45
SEARCH_STRING_FIELD_LABELS[this.filters.searchStringField]
29
46
.label
30
47
}}
31
- </ span >
32
- </ button >
33
- < div
34
- ngbDropdownMenu
35
- aria-labelledby ="dropdownSearchString "
36
- class ="dropdown-menu "
37
- role ="listbox "
38
- >
39
- < button
40
- type ="button "
41
- (click) ="
42
- updateFilters({
43
- element: 'searchStringField',
44
- value: 'DATE_NAISSANCE'
45
- })
46
- "
47
- role ="option "
48
- [attr.aria-selected] ="
49
- filters.searchStringField === 'DATE_NAISSANCE'
50
- "
51
- ngbDropdownItem
52
- >
53
- Date de naissance
54
48
</ button >
55
- < button
56
- type ="button "
57
- (click) ="
58
- updateFilters({
59
- element: 'searchStringField',
60
- value: 'DEFAULT'
61
- })
62
- "
63
- role ="option "
64
- [attr.aria-selected] ="filters.searchStringField === 'DEFAULT' "
65
- ngbDropdownItem
49
+
50
+ < div
51
+ ngbDropdownMenu
52
+ aria-labelledby ="dropdownSearchString "
53
+ class ="dropdown-menu "
54
+ role ="listbox "
66
55
>
67
- {{ SEARCH_STRING_FIELD_LABELS.DEFAULT.label }}
68
- </ button >
56
+ < button
57
+ type ="button "
58
+ (click) ="
59
+ updateFilters({
60
+ element: 'searchStringField',
61
+ value: 'DATE_NAISSANCE'
62
+ })
63
+ "
64
+ role ="option "
65
+ [attr.aria-selected] ="
66
+ filters.searchStringField === 'DATE_NAISSANCE'
67
+ "
68
+ ngbDropdownItem
69
+ >
70
+ Date de naissance
71
+ </ button >
72
+ < button
73
+ type ="button "
74
+ (click) ="
75
+ updateFilters({
76
+ element: 'searchStringField',
77
+ value: 'DEFAULT'
78
+ })
79
+ "
80
+ role ="option "
81
+ [attr.aria-selected] ="filters.searchStringField === 'DEFAULT' "
82
+ ngbDropdownItem
83
+ >
84
+ {{ SEARCH_STRING_FIELD_LABELS.DEFAULT.label }}
85
+ </ button >
86
+ </ div >
69
87
</ div >
70
- </ div >
71
-
72
- < div
73
- class ="d-block d-md-inline-block my-1 "
74
- id ="search-bar "
75
- role ="search "
76
- >
77
- < label for ="searchInput " class ="visually-hidden "
78
- > Rechercher un domicilié</ label
79
- >
80
- < span id ="searchIcon ">
81
- < fa-icon [icon] ="['fas', 'search'] " aria-hidden ="true "> </ fa-icon >
82
- </ span >
83
88
89
+ < label for ="searchInput " class ="visually-hidden ">
90
+ Rechercher un domicilié
91
+ </ label >
84
92
< input
85
93
id ="searchInput "
86
94
type ="text "
87
95
name ="searchInput "
88
96
#searchInput
97
+ class ="form-control "
89
98
[placeholder] ="
90
99
SEARCH_STRING_FIELD_LABELS[this.filters.searchStringField]
91
100
.placeholder
@@ -96,23 +105,24 @@ <h1 class="col-md-2 col-12 title text-start">Domiciliés</h1>
96
105
aria-label ="Supprimer le texte saisie "
97
106
*ngIf ="searchInput?.value !== '' "
98
107
(click) ="resetSearchBar() "
99
- class ="btn "
100
108
id ="deleteSearchIcon "
101
109
>
102
- < fa-icon aria-hidden ="true " [icon] ="['fas', 'times'] "> </ fa-icon >
110
+ < fa-icon
111
+ aria-hidden ="true "
112
+ [icon] ="['fas', 'circle-xmark'] "
113
+ > </ fa-icon >
114
+ </ button >
115
+ < button
116
+ class ="btn btn-light "
117
+ type ="button "
118
+ #refreshButton
119
+ aria-label ="Lancer la recherche "
120
+ id ="search-btn "
121
+ >
122
+ < fa-icon [icon] ="['fas', 'search'] " aria-hidden ="true "> </ fa-icon >
103
123
</ button >
104
124
</ div >
105
125
</ div >
106
- < div class ="col-md-2 col-12 text-end ">
107
- < button type ="button " class ="btn btn-white-primary " #refreshButton >
108
- < fa-icon
109
- [icon] ="['fas', 'search'] "
110
- aria-hidden ="true "
111
- class ="me-2 "
112
- > </ fa-icon >
113
- Lancer la recherche
114
- </ button >
115
- </ div >
116
126
</ div >
117
127
</ div >
118
128
< div role ="tablist " id ="statut-selector " class ="mt-3 row ">
@@ -289,6 +299,7 @@ <h1 class="col-md-2 col-12 title text-start">Domiciliés</h1>
289
299
< app-manage-manage-usagers-table
290
300
[selectedRefs] ="selectedRefs "
291
301
[usagers] ="usagers "
302
+ [selectAllCheckboxes] ="selectAllCheckboxes "
292
303
[filters] ="filters "
293
304
(updateFilters) ="updateFilters($event) "
294
305
(goToPrint) ="goToPrint() "
0 commit comments