|
31 | 31 | <form method="post" novalidate> |
32 | 32 | {% call fieldset({ |
33 | 33 | legend: { |
34 | | - text: "Input and icon button", |
| 34 | + text: "Search input", |
35 | 35 | size: "m" |
36 | 36 | } |
37 | 37 | }) %} |
38 | | - {{ input({ |
| 38 | + {{ searchInput({ |
39 | 39 | label: { |
40 | | - text: "Product order number" |
| 40 | + text: "Search patients by NHS number", |
| 41 | + classes: "nhsuk-u-visually-hidden" |
41 | 42 | }, |
42 | | - name: "example-input-button-1", |
43 | | - id: "example-input-button-1", |
44 | | - type: "search", |
| 43 | + placeholder: "NHS number", |
| 44 | + name: "example-search-1", |
| 45 | + id: "example-search-1", |
| 46 | + classes: "nhsuk-u-width-full", |
| 47 | + formGroup: { |
| 48 | + classes: "nhsuk-u-width-one-half" |
| 49 | + }, |
| 50 | + button: false |
| 51 | + }) }} |
| 52 | + |
| 53 | + {{ searchInput({ |
| 54 | + label: { |
| 55 | + text: "Search patients by NHS number", |
| 56 | + classes: "nhsuk-u-visually-hidden" |
| 57 | + }, |
| 58 | + placeholder: "NHS number", |
| 59 | + name: "example-search-2", |
| 60 | + id: "example-search-2", |
| 61 | + classes: "nhsuk-u-width-full", |
| 62 | + formGroup: { |
| 63 | + classes: "nhsuk-u-width-one-half" |
| 64 | + } |
| 65 | + }) }} |
| 66 | + |
| 67 | + {{ searchInput({ |
| 68 | + label: { |
| 69 | + text: "Search patients by NHS number", |
| 70 | + classes: "nhsuk-u-visually-hidden" |
| 71 | + }, |
| 72 | + placeholder: "NHS number", |
| 73 | + name: "example-search-3", |
| 74 | + id: "example-search-3", |
| 75 | + classes: "nhsuk-u-width-full", |
| 76 | + large: true, |
| 77 | + formGroup: { |
| 78 | + classes: "nhsuk-u-width-one-half" |
| 79 | + } |
| 80 | + }) }} |
| 81 | + |
| 82 | + {{ searchInput({ |
| 83 | + label: { |
| 84 | + text: 'Search patients by NHS number', |
| 85 | + classes: 'nhsuk-u-visually-hidden' |
| 86 | + }, |
| 87 | + placeholder: 'NHS number', |
| 88 | + name: "example-search-4", |
| 89 | + id: "example-search-4", |
45 | 90 | classes: "nhsuk-u-width-full", |
46 | 91 | formGroup: { |
47 | 92 | classes: "nhsuk-u-width-one-half", |
48 | 93 | afterInput: { |
49 | 94 | html: button({ |
50 | | - text: "Find", |
51 | | - icon: "search", |
| 95 | + text: "Advanced search", |
| 96 | + variant: "secondary", |
52 | 97 | small: true |
53 | 98 | }) |
54 | 99 | } |
55 | 100 | } |
56 | 101 | }) }} |
57 | 102 |
|
58 | | - {{ input({ |
| 103 | + {{ searchInput({ |
59 | 104 | label: { |
60 | | - text: "Product order number" |
| 105 | + text: 'Search patients by NHS number', |
| 106 | + classes: 'nhsuk-u-visually-hidden' |
61 | 107 | }, |
62 | | - name: "example-input-button-2", |
63 | | - id: "example-input-button-2", |
64 | | - type: "search", |
| 108 | + placeholder: 'NHS number', |
| 109 | + name: "example-search-5", |
| 110 | + id: "example-search-5", |
65 | 111 | classes: "nhsuk-u-width-full", |
| 112 | + large: true, |
66 | 113 | formGroup: { |
67 | 114 | classes: "nhsuk-u-width-one-half", |
68 | 115 | afterInput: { |
69 | 116 | html: button({ |
70 | | - ariaLabel: "Find", |
71 | | - icon: "search", |
72 | | - small: true |
| 117 | + text: "Advanced search", |
| 118 | + variant: "secondary" |
73 | 119 | }) |
74 | 120 | } |
75 | 121 | } |
76 | 122 | }) }} |
| 123 | + {% endcall %} |
| 124 | + </form> |
77 | 125 |
|
| 126 | + <form method="post" novalidate> |
| 127 | + {% call fieldset({ |
| 128 | + legend: { |
| 129 | + text: "Input and icon button", |
| 130 | + size: "m" |
| 131 | + } |
| 132 | + }) %} |
78 | 133 | {{ input({ |
79 | 134 | label: { |
80 | 135 | text: "Product order number" |
|
173 | 228 | label: { |
174 | 229 | text: "NHS number" |
175 | 230 | }, |
176 | | - name: "example-input", |
177 | | - id: "example-input", |
| 231 | + name: "example-input-1", |
| 232 | + id: "example-input-1", |
178 | 233 | classes: "nhsuk-u-width-full", |
179 | 234 | code: true, |
180 | 235 | inputmode: "numeric", |
|
0 commit comments