@webship-js/adminlte-steps 0.0.0-stage → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +348 -2
- package/demo-site/.ddev/config.yaml +10 -0
- package/demo-site/3.2/cards.html +89 -0
- package/demo-site/3.2/chat.html +84 -0
- package/demo-site/3.2/components.html +79 -0
- package/demo-site/3.2/css/demo.css +7 -0
- package/demo-site/3.2/index.html +93 -0
- package/demo-site/3.2/no-sidebar.html +2 -0
- package/demo-site/3.2/settings.html +74 -0
- package/demo-site/3.2/vendor/admin-lte-3.2.0/LICENSE +20 -0
- package/demo-site/3.2/vendor/admin-lte-3.2.0/css/adminlte.min.css +12 -0
- package/demo-site/3.2/vendor/admin-lte-3.2.0/js/adminlte.min.js +7 -0
- package/demo-site/3.2/vendor/bootstrap-4.6.2/LICENSE +22 -0
- package/demo-site/3.2/vendor/bootstrap-4.6.2/js/bootstrap.bundle.min.js +7 -0
- package/demo-site/3.2/vendor/jquery-3.6.4/LICENSE.txt +20 -0
- package/demo-site/3.2/vendor/jquery-3.6.4/jquery.min.js +2 -0
- package/demo-site/cards.html +98 -0
- package/demo-site/chat.html +93 -0
- package/demo-site/components.html +88 -0
- package/demo-site/css/adminlte-no-banner.min.css +1 -0
- package/demo-site/css/demo.css +5 -0
- package/demo-site/index.html +102 -0
- package/demo-site/no-banner.html +101 -0
- package/demo-site/no-sidebar.html +2 -0
- package/demo-site/settings.html +83 -0
- package/demo-site/vendor/admin-lte-4.10.4/LICENSE +20 -0
- package/demo-site/vendor/admin-lte-4.10.4/css/adminlte.min.css +7 -0
- package/demo-site/vendor/admin-lte-4.10.4/js/adminlte.min.js +7 -0
- package/demo-site/vendor/bootstrap-5.3.9/LICENSE +21 -0
- package/demo-site/vendor/bootstrap-5.3.9/js/bootstrap.bundle.min.js +7 -0
- package/package.json +70 -4
- package/tests/features/README.md +20 -0
- package/tests/features/bootstrap-inside.feature +22 -0
- package/tests/features/cards.feature +34 -0
- package/tests/features/chat.feature +13 -0
- package/tests/features/menu.feature +24 -0
- package/tests/features/page.feature +37 -0
- package/tests/features/sidebar.feature +24 -0
- package/tests/step-definitions/README.md +1 -0
- package/tests/step-definitions/adminlte-cards.steps.js +211 -0
- package/tests/step-definitions/adminlte-helpers.js +385 -0
- package/tests/step-definitions/adminlte-layout.steps.js +231 -0
- package/tests/step-definitions/adminlte-menu.steps.js +98 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Webship.co
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,349 @@
|
|
|
1
|
-
|
|
1
|
+
<p align="center"><img src="https://raw.githubusercontent.com/webship/adminlte-steps/2.0.x/assets/logo.png" alt="AdminLTE logo" width="96"></p>
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
# adminlte-steps
|
|
4
|
+
|
|
5
|
+
Cucumber step definitions for the components AdminLTE adds to Bootstrap, for
|
|
6
|
+
[webship-js](https://webship.co/docs/webship-js/2.0.x), a BDD browser
|
|
7
|
+
automation harness built on Playwright and Cucumber-js.
|
|
8
|
+
|
|
9
|
+
`@webship-js/adminlte-steps` works on any dashboard built on AdminLTE 4,
|
|
10
|
+
whatever its back end, and on 3.2 wherever the same step holds: the sidebar
|
|
11
|
+
and its toggle, the tree menu of the sidebar, a card's tools (collapse,
|
|
12
|
+
maximize, remove), a chat's contacts pane, full screen, and (on 4) the color
|
|
13
|
+
mode. The Bootstrap components inside a dashboard (dialogs, drop-down menus,
|
|
14
|
+
tabs, alerts, form states ...) are Bootstrap's own, and the
|
|
15
|
+
[Bootstrap pack](https://github.com/webship/bootstrap-steps)
|
|
16
|
+
(`@webship-js/bootstrap-steps`) drives them: **load both packs together**. This
|
|
17
|
+
pack shares no phrase with it.
|
|
18
|
+
|
|
19
|
+
AdminLTE's script moves its components: the sidebar slides, a submenu slides
|
|
20
|
+
open, a card's body slides shut, a removed card fades away. Every step waits
|
|
21
|
+
for the end state a person sees (the sidebar out of the window, the submenu
|
|
22
|
+
shown, the card gone from view) and for the movement to be over: no CSS
|
|
23
|
+
transition or animation running in the component, no jQuery animation
|
|
24
|
+
(AdminLTE 3.2 slides with jQuery), no slide still written in its inline
|
|
25
|
+
style, its box the same at two looks in a row. No step sleeps for a fixed
|
|
26
|
+
time.
|
|
27
|
+
|
|
28
|
+
No step phrase names the framework: a scenario reads `When I collapse the
|
|
29
|
+
sidebar`, `When I expand the "Reports" sidebar menu item` and `When I remove
|
|
30
|
+
the "Sales" card`.
|
|
31
|
+
|
|
32
|
+
CI serves the pack's demo site (`demo-site/`, a made-up dashboard with
|
|
33
|
+
AdminLTE's documented markup) with DDEV on the runner and runs the whole
|
|
34
|
+
suite, with the Bootstrap pack beside this one, against its AdminLTE 4 pages
|
|
35
|
+
twice, then the assertions that must fail, then the same against its 3.2
|
|
36
|
+
pages; see [`.github/workflows/test.yml`](.github/workflows/test.yml).
|
|
37
|
+
|
|
38
|
+
## The versions
|
|
39
|
+
|
|
40
|
+
The latest AdminLTE is 4.10.4. The pack runs on it, and on 3.2.0 too: 3.2
|
|
41
|
+
(February 2022, on Bootstrap 4.6 and jQuery) was the only stable line for four
|
|
42
|
+
years, until 4.0.0 came out in May 2026, so most dashboards and the
|
|
43
|
+
integrations built on AdminLTE (for Laravel, Django, Rails and the rest) still
|
|
44
|
+
run it. The demo serves both: 4.10.4 at its root, 3.2.0 under `/3.2/`. The two
|
|
45
|
+
differ in what their script leaves on the page, and each step says what a
|
|
46
|
+
person sees on both:
|
|
47
|
+
|
|
48
|
+
| | AdminLTE 4 | AdminLTE 3.2 |
|
|
49
|
+
| --- | --- | --- |
|
|
50
|
+
| A collapsed sidebar | out of the window | a strip of icons on a wide screen, out of the window on a narrow one |
|
|
51
|
+
| A submenu's ARIA | `aria-expanded` on the item's link, checked by the steps | none: what is drawn decides |
|
|
52
|
+
| A removed card | taken off the page | hidden |
|
|
53
|
+
| Events | `collapsed.lte.card-widget`, `expanded.lte.treeview` ... | jQuery's only |
|
|
54
|
+
| Color mode | a switcher (`data-bs-theme-value`) | none |
|
|
55
|
+
|
|
56
|
+
The two color mode steps are AdminLTE 4's: on a page without a switcher (3.2)
|
|
57
|
+
they fail with a hint, never pass quietly, and the demo's scenarios that use
|
|
58
|
+
them are tagged `@lte4`, which the 3.2 lane leaves out.
|
|
59
|
+
|
|
60
|
+
## From nothing to a green run
|
|
61
|
+
|
|
62
|
+
What the machine needs: git, Node.js 24 or later with npm, and Docker with
|
|
63
|
+
[DDEV](https://ddev.com) for the demo site (or no container at all: `npx
|
|
64
|
+
http-server` serves the same pages).
|
|
65
|
+
|
|
66
|
+
**1. A site.** Any dashboard built on AdminLTE works (step 5 points the suite
|
|
67
|
+
at it). To start, use the demo site of this repository: static pages with
|
|
68
|
+
AdminLTE 4.10.4 (and the same pages on 3.2.0 under `/3.2/`). Start it with
|
|
69
|
+
DDEV:
|
|
70
|
+
|
|
71
|
+
```bash
|
|
72
|
+
git clone https://github.com/webship/adminlte-steps.git
|
|
73
|
+
cd adminlte-steps/demo-site
|
|
74
|
+
ddev start
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
The site answers at `http://adminlte-steps-demo.ddev.site`. Without DDEV, from
|
|
78
|
+
the `adminlte-steps` folder, `npx --yes http-server@14.1.1 demo-site -p 8080
|
|
79
|
+
-s` serves it at `http://127.0.0.1:8080`; leave it running in its own terminal.
|
|
80
|
+
|
|
81
|
+
In the [Webship Workspace](https://github.com/webship/workspace), its AdminLTE
|
|
82
|
+
plugin serves the same demo site in a container instead, in a sites folder of
|
|
83
|
+
the workspace (`dev/` here; `test/`, `sandboxes/` and `demos/` work the same),
|
|
84
|
+
on DDEV or with `--runtime docker`, `podman` or `kubernetes`:
|
|
85
|
+
|
|
86
|
+
```bash
|
|
87
|
+
bash core/scripts/plugins.sh --require adminlte --with-needs
|
|
88
|
+
bash core/scripts/plugins.sh --activate adminlte --with-needs
|
|
89
|
+
bash core/scripts/plugins.sh --install adminlte
|
|
90
|
+
bash dev/cmd-adminlte-project.sh ltesite --install
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
That site answers at `https://ltesite.ddev.site` (`--adminlte 3.2` serves the
|
|
94
|
+
3.2 pages there instead). Neither site has accounts: the steps need none.
|
|
95
|
+
|
|
96
|
+
**2. A test project**, in another folder:
|
|
97
|
+
|
|
98
|
+
```bash
|
|
99
|
+
mkdir adminlte-tests && cd adminlte-tests
|
|
100
|
+
npm init -y
|
|
101
|
+
npm install --save-dev webship-js @webship-js/bootstrap-steps @webship-js/adminlte-steps
|
|
102
|
+
npx init-webship-js
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
**3. `cucumber.js`.** Replace the file with the wiring of the two packs, the
|
|
106
|
+
tags that keep the lanes of this repository out of a normal run, and the
|
|
107
|
+
address of the site:
|
|
108
|
+
|
|
109
|
+
```javascript
|
|
110
|
+
module.exports = {
|
|
111
|
+
default: {
|
|
112
|
+
requireModule: ['tsx/cjs'],
|
|
113
|
+
require: [
|
|
114
|
+
'node_modules/webship-js/tests/step-definitions/**/*.js',
|
|
115
|
+
'node_modules/@webship-js/bootstrap-steps/tests/step-definitions/*.js',
|
|
116
|
+
'node_modules/@webship-js/adminlte-steps/tests/step-definitions/*.js',
|
|
117
|
+
'tests/step-definitions/**/*.js',
|
|
118
|
+
],
|
|
119
|
+
paths: ['tests/features/**/*.feature'],
|
|
120
|
+
// Work in progress, the assertions that must fail, and the scenarios of the 3.2 pages only
|
|
121
|
+
// stay out of a normal run (for the 3.2 pages: 'not @wip and not @must-fail and not @lte4').
|
|
122
|
+
tags: 'not @wip and not @must-fail and not @lte3',
|
|
123
|
+
format: ['@cucumber/pretty-formatter', 'json:tests/reports/cucumber_report.json'],
|
|
124
|
+
worldParameters: {
|
|
125
|
+
launchUrl: process.env.LAUNCH_URL || 'http://adminlte-steps-demo.ddev.site',
|
|
126
|
+
javascript: { mode: 'warn', levels: ['error'] },
|
|
127
|
+
minWaitTime: { page: 3000, before_scenario: 0, after_scenario: 0, before_step: 0, after_step: 0 },
|
|
128
|
+
},
|
|
129
|
+
},
|
|
130
|
+
};
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
**4. A first feature**, `tests/features/first-run.feature`:
|
|
134
|
+
|
|
135
|
+
```gherkin
|
|
136
|
+
Feature: First run
|
|
137
|
+
Scenario: The sidebar's menu and a card
|
|
138
|
+
Given I am on "/index.html"
|
|
139
|
+
When I expand the "Reports" sidebar menu item
|
|
140
|
+
Then the "Reports" sidebar menu item should be expanded
|
|
141
|
+
When I collapse the "Sales" card
|
|
142
|
+
Then the "Sales" card should be collapsed
|
|
143
|
+
|
|
144
|
+
Scenario: A dialog inside the dashboard (the Bootstrap pack)
|
|
145
|
+
Given I am on "/components.html"
|
|
146
|
+
When I open the "Export report" dialog
|
|
147
|
+
Then the "Export report" dialog should show "exported as a spreadsheet"
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
**5. Run it.** Set `LAUNCH_URL` to the address of the site:
|
|
151
|
+
|
|
152
|
+
```bash
|
|
153
|
+
LAUNCH_URL=http://adminlte-steps-demo.ddev.site npm test
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
From there, copy the features of [`tests/features/`](tests/features/) (they
|
|
157
|
+
also ship in the package): together they use every step of the pack.
|
|
158
|
+
|
|
159
|
+
### On a site of your own
|
|
160
|
+
|
|
161
|
+
The steps read AdminLTE's standard markup, so the features of your dashboard
|
|
162
|
+
name its own parts: the labels of its sidebar menu, the titles of its cards.
|
|
163
|
+
Point `LAUNCH_URL` at it and write them from what its pages show. `Then the
|
|
164
|
+
page should use the dashboard theme at version "4"` says which AdminLTE the
|
|
165
|
+
page loads.
|
|
166
|
+
|
|
167
|
+
In the Webship Workspace, any project with a testing setup takes the two packs
|
|
168
|
+
beside its platform's own:
|
|
169
|
+
|
|
170
|
+
```bash
|
|
171
|
+
bash dev/cmd-tools-testing.sh mysite --add-steps bootstrap
|
|
172
|
+
bash dev/cmd-tools-testing.sh mysite --add-steps adminlte
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
### What the suite tests
|
|
176
|
+
|
|
177
|
+
The features of this repository run every step of the pack against the demo
|
|
178
|
+
site, in CI on every change: the sidebar collapsed and expanded with its
|
|
179
|
+
toggle, and on a narrow screen opened over the page and closed with a click
|
|
180
|
+
beside it; the tree menu (an item opened and closed, two open at once, the
|
|
181
|
+
active item and its parent); a card's tools (collapse and expand, a card that
|
|
182
|
+
starts collapsed, maximize and restore, remove); a chat's contacts; full
|
|
183
|
+
screen; the color mode (4); the theme's style sheet of each version; an
|
|
184
|
+
accessibility audit (4); and the Bootstrap components inside the dashboard
|
|
185
|
+
with the Bootstrap pack's steps. The 3.2 lane runs the same features against
|
|
186
|
+
the 3.2 pages, but for the color mode and the audit.
|
|
187
|
+
|
|
188
|
+
Not tested: the sidebar search, the control sidebar, the iframe mode and the
|
|
189
|
+
todo list of 3.2, and the charts and plugins a dashboard adds.
|
|
190
|
+
|
|
191
|
+
## Requirements
|
|
192
|
+
|
|
193
|
+
- Node.js 24 or later
|
|
194
|
+
- A webship-js 2.0 test project (webship-js 2.0.20 or later)
|
|
195
|
+
- `@webship-js/bootstrap-steps` 2.0 beside it, for the Bootstrap components
|
|
196
|
+
- A dashboard built on AdminLTE 4 (or 3.2), with its script
|
|
197
|
+
|
|
198
|
+
## Install
|
|
199
|
+
|
|
200
|
+
```bash
|
|
201
|
+
npm install --save-dev @webship-js/bootstrap-steps @webship-js/adminlte-steps
|
|
202
|
+
```
|
|
203
|
+
|
|
204
|
+
## Test users
|
|
205
|
+
|
|
206
|
+
None. The demo site is static and has no sign-in; the steps need no account on
|
|
207
|
+
any site (log in with your platform's own step pack when a page needs it).
|
|
208
|
+
`cucumber.js` lists no accounts and no scenario signs in:
|
|
209
|
+
|
|
210
|
+
```json
|
|
211
|
+
{}
|
|
212
|
+
```
|
|
213
|
+
|
|
214
|
+
## What is included
|
|
215
|
+
|
|
216
|
+
| File | Steps | Covers |
|
|
217
|
+
| --- | --- | --- |
|
|
218
|
+
| `adminlte-layout.steps.js` | 7 | The sidebar (collapse, expand, its state), full screen (enter, leave, its state), the color mode (switch it, its state; AdminLTE 4), and the theme's style sheet at a version. |
|
|
219
|
+
| `adminlte-menu.steps.js` | 3 | The tree menu of the sidebar: expand or collapse an item, its state, an active item. |
|
|
220
|
+
| `adminlte-cards.steps.js` | 6 | A card's tools (collapse, expand, maximize, restore, remove), a card's state, a card shown or gone from view, what a card shows, a chat's contacts (open, close, their state). |
|
|
221
|
+
| `adminlte-helpers.js` | | Shared plumbing for the files above and for your own steps: the wait budget, the poll on the page, the page side (finding a component by the name a person reads, reading its state and whether it still moves), clicks, the failure messages. It registers no step. |
|
|
222
|
+
|
|
223
|
+
## How the steps find things and wait
|
|
224
|
+
|
|
225
|
+
- **By what a person reads.** A sidebar menu item by its label (without its
|
|
226
|
+
arrow), a card by its `.card-title`, a chat by its card's title. A name
|
|
227
|
+
matches exactly, then without regard to case, then by its start. The hooks
|
|
228
|
+
of the components are AdminLTE's own: `data-lte-toggle="sidebar|treeview|
|
|
229
|
+
card-collapse|card-maximize|card-remove|chat-pane|fullscreen"` on 4,
|
|
230
|
+
`data-widget="pushmenu|treeview|chat-pane-toggle|fullscreen"` and
|
|
231
|
+
`data-card-widget="collapse|maximize|remove"` on 3.2.
|
|
232
|
+
- **On what a person sees, at rest.** The sidebar is expanded when it is drawn
|
|
233
|
+
at its full width inside the window; a submenu is open when it is shown and
|
|
234
|
+
its item has `menu-open` (and, on 4, its link `aria-expanded="true"`); a card
|
|
235
|
+
is collapsed when only its header is shown, maximized with
|
|
236
|
+
`maximized-card`, gone when it is off the page or hidden; a chat's contacts
|
|
237
|
+
are shown when their pane lies over the messages. Each step also waits for
|
|
238
|
+
the movement to end (see above).
|
|
239
|
+
- **As a person does.** On a narrow screen the open sidebar covers its own
|
|
240
|
+
toggle: `When I collapse the sidebar` clicks beside it, on the overlay, as a
|
|
241
|
+
person would. A color mode hidden in its drop-down menu is reached by
|
|
242
|
+
opening the menu first.
|
|
243
|
+
- **No fixed sleeps.** A step waits at most `minWaitTime.page` (at least 10
|
|
244
|
+
seconds). The page is looked at every 50 milliseconds from Node.js, never
|
|
245
|
+
with a timer of the page.
|
|
246
|
+
- **Failures say what was found.** `Expected the "Sales" card to be collapsed,
|
|
247
|
+
but it is expanded (classes "card card-primary card-outline").` with a hint
|
|
248
|
+
on where to look.
|
|
249
|
+
|
|
250
|
+
## Steps
|
|
251
|
+
|
|
252
|
+
One example of each step; the JSDoc block above each definition holds five.
|
|
253
|
+
|
|
254
|
+
### `adminlte-layout.steps.js` (7)
|
|
255
|
+
|
|
256
|
+
- `When I collapse the sidebar`
|
|
257
|
+
- `Then the sidebar should be expanded`
|
|
258
|
+
- `When I enter full screen`
|
|
259
|
+
- `Then the page should not be in full screen`
|
|
260
|
+
- `When I switch the dashboard's color mode to "Dark"` (AdminLTE 4)
|
|
261
|
+
- `Then the dashboard's color mode should be "dark"` (AdminLTE 4)
|
|
262
|
+
- `Then the page should use the dashboard theme at version "4.10"`
|
|
263
|
+
|
|
264
|
+
### `adminlte-menu.steps.js` (3)
|
|
265
|
+
|
|
266
|
+
- `When I expand the "Reports" sidebar menu item`
|
|
267
|
+
- `Then the "Reports" sidebar menu item should be expanded`
|
|
268
|
+
- `Then the "Cards" sidebar menu item should be active`
|
|
269
|
+
|
|
270
|
+
### `adminlte-cards.steps.js` (6)
|
|
271
|
+
|
|
272
|
+
- `When I remove the "Rainfall" card`
|
|
273
|
+
- `Then the "Sales" card should be collapsed`
|
|
274
|
+
- `Then the "Rainfall" card should not be shown`
|
|
275
|
+
- `Then the "Sales" card should show "1,284 orders"`
|
|
276
|
+
- `When I open the contacts of the "Team chat" chat`
|
|
277
|
+
- `Then the contacts of the "Team chat" chat should be shown`
|
|
278
|
+
|
|
279
|
+
## Phrases and the other packs
|
|
280
|
+
|
|
281
|
+
None of the 16 phrases matches a step of the Bootstrap pack, or of any other
|
|
282
|
+
pack published under `@webship-js` (the check covers the examples and features
|
|
283
|
+
of each side). The words "sidebar menu item" and "the dashboard's color mode"
|
|
284
|
+
are chosen so: a TYPO3 site's "menu item" and a documentation site's "color
|
|
285
|
+
mode" are other packs' phrases.
|
|
286
|
+
|
|
287
|
+
## Testing this package
|
|
288
|
+
|
|
289
|
+
```bash
|
|
290
|
+
npm install
|
|
291
|
+
npm run demo:serve & # the demo site at http://127.0.0.1:8080 (or: cd demo-site && ddev start)
|
|
292
|
+
npm run test:examples # the examples and the features against the step patterns (with the Bootstrap pack's)
|
|
293
|
+
npm run test:paths # a feature or a scenario named on the command line runs alone
|
|
294
|
+
npx cucumber-js --dry-run # no undefined and no ambiguous step
|
|
295
|
+
LAUNCH_URL=http://127.0.0.1:8080 npm test # the suite, against the 4 pages
|
|
296
|
+
LAUNCH_URL=http://127.0.0.1:8080 npm run test:v3 # the suite, against the 3.2 pages
|
|
297
|
+
LAUNCH_URL=http://127.0.0.1:8080 npm run test:must-fail # assertions that must fail, each with its message
|
|
298
|
+
LAUNCH_URL=http://127.0.0.1:8080 npm run test:contrast # the top bar and the cards' tools readable, light and dark
|
|
299
|
+
```
|
|
300
|
+
|
|
301
|
+
`tests/must-fail/` holds scenarios that assert something that is not true on the
|
|
302
|
+
demo site; `npm run test:must-fail` checks that each one fails at its last
|
|
303
|
+
step, with the message it announces and a hint. Two of them prove that the
|
|
304
|
+
color mode steps fail on 3.2 rather than pass; `MUST_FAIL_TAGS="@must-fail and
|
|
305
|
+
not @lte4"` runs them against the 3.2 pages. Two pages of the demo exist only
|
|
306
|
+
for them: `no-banner.html` (a style sheet named like AdminLTE's whose banner
|
|
307
|
+
is gone) and `no-sidebar.html`.
|
|
308
|
+
|
|
309
|
+
## The demo site
|
|
310
|
+
|
|
311
|
+
[`demo-site/`](demo-site/) is a made-up "Field Office" dashboard: the layout,
|
|
312
|
+
sidebar, tree menu, card tools and direct chat markup of AdminLTE's
|
|
313
|
+
documentation for each version, with texts of its own, and a page of Bootstrap
|
|
314
|
+
components inside the dashboard. It uses no icon font and loads nothing from
|
|
315
|
+
another site: text glyphs with an `aria-label` stand in for the icons. The
|
|
316
|
+
demo's tree menu leaves out the `role` the documentation puts on its `<ul>`
|
|
317
|
+
(`navigation` on 4, `menu` on 3.2), which makes its items fail the
|
|
318
|
+
accessibility audit's list rule; the `<nav>` around it carries the name.
|
|
319
|
+
|
|
320
|
+
- The demo's own style sheet, `css/demo.css` (one for each version), changes only colours AdminLTE draws below the
|
|
321
|
+
4.5:1 contrast small text needs: the card tools (about 3.1:1 in light mode and 4.1:1 in dark mode on 4; 2.1:1 on
|
|
322
|
+
3.2) and 3.2's light top bar links (about 4.0:1). `npm run test:contrast` (`tests/check-contrast.js`) checks that
|
|
323
|
+
the top bar's links and the cards' tools stay at 4.5:1 or more, in light and dark mode on 4, measuring the colour a
|
|
324
|
+
person sees: the axe audit leaves those glyphs out, since they are `aria-hidden` and named by their `aria-label`.
|
|
325
|
+
- AdminLTE is released under the
|
|
326
|
+
[MIT licence](https://github.com/ColorlibHQ/AdminLTE/blob/master/LICENSE),
|
|
327
|
+
copyright Colorlib; its compiled files (4.10.4 in `demo-site/vendor/`, 3.2.0
|
|
328
|
+
in `demo-site/3.2/vendor/`) are in this repository with their `LICENSE`
|
|
329
|
+
beside them.
|
|
330
|
+
- Bootstrap 5.3.9 and 4.6.2 are released under the MIT licence, copyright The
|
|
331
|
+
Bootstrap Authors; jQuery 3.6.4 under the MIT licence, copyright the OpenJS
|
|
332
|
+
Foundation and other contributors. Each is beside its licence.
|
|
333
|
+
|
|
334
|
+
## How the steps were written
|
|
335
|
+
|
|
336
|
+
Every component a step touches was opened in a real browser first, on both
|
|
337
|
+
versions, and its classes, ARIA, events and drawn state were read before,
|
|
338
|
+
during and after each action: what AdminLTE's script changes, how long it
|
|
339
|
+
moves, what 4 and 3.2 do differently. The steps were written from that, and
|
|
340
|
+
are proven on AdminLTE 4.10.4 (Bootstrap 5.3.9) and 3.2.0 (Bootstrap 4.6.2,
|
|
341
|
+
jQuery 3.6.4), in English, with Chromium.
|
|
342
|
+
|
|
343
|
+
## License
|
|
344
|
+
|
|
345
|
+
MIT
|
|
346
|
+
|
|
347
|
+
## Logo
|
|
348
|
+
|
|
349
|
+
The AdminLTE logo in this README is AdminLTE's own (`dist/assets/img/AdminLTELogo.png` of its 4.10.4 release, unmodified), under AdminLTE's MIT licence (Simple Icons has no AdminLTE icon). AdminLTE and its logo are Colorlib's; it names the theme the pack tests, and this pack is not affiliated with or endorsed by them.
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# The components demo site of this repository: static pages, served by the web server of a DDEV
|
|
2
|
+
# project with no database, at http://adminlte-steps-demo.ddev.site (the pages of AdminLTE 3.2 at
|
|
3
|
+
# /3.2/). `ddev start` in this folder starts it, `ddev stop` stops it, `ddev delete -Oy` removes it.
|
|
4
|
+
name: adminlte-steps-demo
|
|
5
|
+
type: php
|
|
6
|
+
docroot: .
|
|
7
|
+
php_version: "8.3"
|
|
8
|
+
webserver_type: nginx-fpm
|
|
9
|
+
omit_containers: [db]
|
|
10
|
+
nodejs_version: "24"
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
6
|
+
<title>Cards | Field Office</title>
|
|
7
|
+
<link rel="icon" href="data:,">
|
|
8
|
+
<link rel="stylesheet" href="vendor/admin-lte-3.2.0/css/adminlte.min.css">
|
|
9
|
+
<link rel="stylesheet" href="css/demo.css">
|
|
10
|
+
</head>
|
|
11
|
+
<body class="hold-transition sidebar-mini">
|
|
12
|
+
<div class="wrapper">
|
|
13
|
+
<nav class="main-header navbar navbar-expand navbar-white navbar-light" aria-label="Top bar">
|
|
14
|
+
<ul class="navbar-nav">
|
|
15
|
+
<li class="nav-item"><a class="nav-link" data-widget="pushmenu" href="#" role="button" aria-label="Toggle the sidebar">☰</a></li>
|
|
16
|
+
<li class="nav-item d-none d-sm-inline-block"><a href="index.html" class="nav-link">Home</a></li>
|
|
17
|
+
</ul>
|
|
18
|
+
<ul class="navbar-nav ml-auto">
|
|
19
|
+
<li class="nav-item"><a class="nav-link" data-widget="fullscreen" href="#" role="button" aria-label="Full screen">⤢</a></li>
|
|
20
|
+
<li class="nav-item dropdown">
|
|
21
|
+
<a class="nav-link dropdown-toggle" href="#" data-toggle="dropdown" aria-expanded="false">Account</a>
|
|
22
|
+
<div class="dropdown-menu dropdown-menu-right"><a class="dropdown-item" href="settings.html">Profile</a><a class="dropdown-item" href="#">Sign out</a></div>
|
|
23
|
+
</li>
|
|
24
|
+
</ul>
|
|
25
|
+
</nav>
|
|
26
|
+
<aside class="main-sidebar sidebar-dark-primary elevation-4">
|
|
27
|
+
<a href="index.html" class="brand-link"><span class="brand-text font-weight-light">Field Office</span></a>
|
|
28
|
+
<div class="sidebar">
|
|
29
|
+
<nav class="mt-2" aria-label="Main navigation">
|
|
30
|
+
<ul class="nav nav-pills nav-sidebar flex-column" data-widget="treeview" data-accordion="false">
|
|
31
|
+
<li class="nav-item"><a href="index.html" class="nav-link"><i class="nav-icon" aria-hidden="true">•</i><p>Dashboard</p></a></li>
|
|
32
|
+
<li class="nav-item menu-open">
|
|
33
|
+
<a href="#" class="nav-link active"><i class="nav-icon" aria-hidden="true">•</i><p>Reports <i class="right" aria-hidden="true">‹</i></p></a>
|
|
34
|
+
<ul class="nav nav-treeview">
|
|
35
|
+
<li class="nav-item"><a href="cards.html" class="nav-link active"><i class="nav-icon" aria-hidden="true">•</i><p>Cards</p></a></li>
|
|
36
|
+
<li class="nav-item"><a href="chat.html" class="nav-link"><i class="nav-icon" aria-hidden="true">•</i><p>Team chat</p></a></li>
|
|
37
|
+
</ul>
|
|
38
|
+
</li>
|
|
39
|
+
<li class="nav-item"><a href="components.html" class="nav-link"><i class="nav-icon" aria-hidden="true">•</i><p>Components</p></a></li>
|
|
40
|
+
<li class="nav-item">
|
|
41
|
+
<a href="#" class="nav-link"><i class="nav-icon" aria-hidden="true">•</i><p>Settings <i class="right" aria-hidden="true">‹</i></p></a>
|
|
42
|
+
<ul class="nav nav-treeview">
|
|
43
|
+
<li class="nav-item"><a href="settings.html" class="nav-link"><i class="nav-icon" aria-hidden="true">•</i><p>Profile</p></a></li>
|
|
44
|
+
<li class="nav-item"><a href="#" class="nav-link"><i class="nav-icon" aria-hidden="true">•</i><p>Security</p></a></li>
|
|
45
|
+
</ul>
|
|
46
|
+
</li>
|
|
47
|
+
</ul>
|
|
48
|
+
</nav>
|
|
49
|
+
</div>
|
|
50
|
+
</aside>
|
|
51
|
+
<div class="content-wrapper">
|
|
52
|
+
<div class="content-header"><div class="container-fluid"><h1 class="m-0">Cards</h1></div></div>
|
|
53
|
+
<section class="content"><div class="container-fluid">
|
|
54
|
+
<div class="row">
|
|
55
|
+
<div class="col-md-4"><div class="card card-primary card-outline">
|
|
56
|
+
<div class="card-header">
|
|
57
|
+
<h3 class="card-title">Rainfall</h3>
|
|
58
|
+
<div class="card-tools">
|
|
59
|
+
<button type="button" class="btn btn-tool" data-card-widget="collapse" title="Collapse" aria-label="Collapse">−</button>
|
|
60
|
+
<button type="button" class="btn btn-tool" data-card-widget="maximize" title="Maximize" aria-label="Maximize">⤢</button>
|
|
61
|
+
<button type="button" class="btn btn-tool" data-card-widget="remove" title="Remove" aria-label="Remove">×</button>
|
|
62
|
+
</div>
|
|
63
|
+
</div>
|
|
64
|
+
<div class="card-body"><p>Rainfall: 31 mm.</p></div>
|
|
65
|
+
<div class="card-footer">Updated today</div>
|
|
66
|
+
</div></div>
|
|
67
|
+
<div class="col-md-4"><div class="card card-warning card-outline">
|
|
68
|
+
<div class="card-header">
|
|
69
|
+
<h3 class="card-title">Wind</h3>
|
|
70
|
+
<div class="card-tools">
|
|
71
|
+
<button type="button" class="btn btn-tool" data-card-widget="collapse" title="Collapse" aria-label="Collapse">−</button>
|
|
72
|
+
<button type="button" class="btn btn-tool" data-card-widget="maximize" title="Maximize" aria-label="Maximize">⤢</button>
|
|
73
|
+
<button type="button" class="btn btn-tool" data-card-widget="remove" title="Remove" aria-label="Remove">×</button>
|
|
74
|
+
</div>
|
|
75
|
+
</div>
|
|
76
|
+
<div class="card-body"><p>Wind: 18 knots from the west.</p></div>
|
|
77
|
+
<div class="card-footer">Updated today</div>
|
|
78
|
+
</div></div>
|
|
79
|
+
<div class="col-md-4"><div class="card card-secondary card-outline"><div class="card-header"><h3 class="card-title">Notes</h3></div><div class="card-body"><p>A card without tools.</p></div></div></div>
|
|
80
|
+
</div>
|
|
81
|
+
</div></section>
|
|
82
|
+
</div>
|
|
83
|
+
<footer class="main-footer"><strong>Field Office</strong>, a demo of the step pack.</footer>
|
|
84
|
+
</div>
|
|
85
|
+
<script src="vendor/jquery-3.6.4/jquery.min.js"></script>
|
|
86
|
+
<script src="vendor/bootstrap-4.6.2/js/bootstrap.bundle.min.js"></script>
|
|
87
|
+
<script src="vendor/admin-lte-3.2.0/js/adminlte.min.js"></script>
|
|
88
|
+
</body>
|
|
89
|
+
</html>
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
6
|
+
<title>Team chat | Field Office</title>
|
|
7
|
+
<link rel="icon" href="data:,">
|
|
8
|
+
<link rel="stylesheet" href="vendor/admin-lte-3.2.0/css/adminlte.min.css">
|
|
9
|
+
<link rel="stylesheet" href="css/demo.css">
|
|
10
|
+
</head>
|
|
11
|
+
<body class="hold-transition sidebar-mini">
|
|
12
|
+
<div class="wrapper">
|
|
13
|
+
<nav class="main-header navbar navbar-expand navbar-white navbar-light" aria-label="Top bar">
|
|
14
|
+
<ul class="navbar-nav">
|
|
15
|
+
<li class="nav-item"><a class="nav-link" data-widget="pushmenu" href="#" role="button" aria-label="Toggle the sidebar">☰</a></li>
|
|
16
|
+
<li class="nav-item d-none d-sm-inline-block"><a href="index.html" class="nav-link">Home</a></li>
|
|
17
|
+
</ul>
|
|
18
|
+
<ul class="navbar-nav ml-auto">
|
|
19
|
+
<li class="nav-item"><a class="nav-link" data-widget="fullscreen" href="#" role="button" aria-label="Full screen">⤢</a></li>
|
|
20
|
+
<li class="nav-item dropdown">
|
|
21
|
+
<a class="nav-link dropdown-toggle" href="#" data-toggle="dropdown" aria-expanded="false">Account</a>
|
|
22
|
+
<div class="dropdown-menu dropdown-menu-right"><a class="dropdown-item" href="settings.html">Profile</a><a class="dropdown-item" href="#">Sign out</a></div>
|
|
23
|
+
</li>
|
|
24
|
+
</ul>
|
|
25
|
+
</nav>
|
|
26
|
+
<aside class="main-sidebar sidebar-dark-primary elevation-4">
|
|
27
|
+
<a href="index.html" class="brand-link"><span class="brand-text font-weight-light">Field Office</span></a>
|
|
28
|
+
<div class="sidebar">
|
|
29
|
+
<nav class="mt-2" aria-label="Main navigation">
|
|
30
|
+
<ul class="nav nav-pills nav-sidebar flex-column" data-widget="treeview" data-accordion="false">
|
|
31
|
+
<li class="nav-item"><a href="index.html" class="nav-link"><i class="nav-icon" aria-hidden="true">•</i><p>Dashboard</p></a></li>
|
|
32
|
+
<li class="nav-item menu-open">
|
|
33
|
+
<a href="#" class="nav-link active"><i class="nav-icon" aria-hidden="true">•</i><p>Reports <i class="right" aria-hidden="true">‹</i></p></a>
|
|
34
|
+
<ul class="nav nav-treeview">
|
|
35
|
+
<li class="nav-item"><a href="cards.html" class="nav-link"><i class="nav-icon" aria-hidden="true">•</i><p>Cards</p></a></li>
|
|
36
|
+
<li class="nav-item"><a href="chat.html" class="nav-link active"><i class="nav-icon" aria-hidden="true">•</i><p>Team chat</p></a></li>
|
|
37
|
+
</ul>
|
|
38
|
+
</li>
|
|
39
|
+
<li class="nav-item"><a href="components.html" class="nav-link"><i class="nav-icon" aria-hidden="true">•</i><p>Components</p></a></li>
|
|
40
|
+
<li class="nav-item">
|
|
41
|
+
<a href="#" class="nav-link"><i class="nav-icon" aria-hidden="true">•</i><p>Settings <i class="right" aria-hidden="true">‹</i></p></a>
|
|
42
|
+
<ul class="nav nav-treeview">
|
|
43
|
+
<li class="nav-item"><a href="settings.html" class="nav-link"><i class="nav-icon" aria-hidden="true">•</i><p>Profile</p></a></li>
|
|
44
|
+
<li class="nav-item"><a href="#" class="nav-link"><i class="nav-icon" aria-hidden="true">•</i><p>Security</p></a></li>
|
|
45
|
+
</ul>
|
|
46
|
+
</li>
|
|
47
|
+
</ul>
|
|
48
|
+
</nav>
|
|
49
|
+
</div>
|
|
50
|
+
</aside>
|
|
51
|
+
<div class="content-wrapper">
|
|
52
|
+
<div class="content-header"><div class="container-fluid"><h1 class="m-0">Team chat</h1></div></div>
|
|
53
|
+
<section class="content"><div class="container-fluid">
|
|
54
|
+
<div class="row"><div class="col-md-6">
|
|
55
|
+
<div class="card direct-chat direct-chat-primary">
|
|
56
|
+
<div class="card-header">
|
|
57
|
+
<h3 class="card-title">Team chat</h3>
|
|
58
|
+
<div class="card-tools">
|
|
59
|
+
<button type="button" class="btn btn-tool" data-widget="chat-pane-toggle" title="Contacts" aria-label="Contacts">☰</button>
|
|
60
|
+
</div>
|
|
61
|
+
</div>
|
|
62
|
+
<div class="card-body">
|
|
63
|
+
<div class="direct-chat-messages">
|
|
64
|
+
<div class="direct-chat-msg"><div class="direct-chat-infos clearfix"><span class="direct-chat-name">Field Observer</span></div><div class="direct-chat-text">The tide gauge is back online.</div></div>
|
|
65
|
+
<div class="direct-chat-msg end"><div class="direct-chat-infos clearfix"><span class="direct-chat-name">Office</span></div><div class="direct-chat-text">Thank you, noted.</div></div>
|
|
66
|
+
</div>
|
|
67
|
+
<div class="direct-chat-contacts">
|
|
68
|
+
<ul class="contacts-list">
|
|
69
|
+
<li><a href="#"><div class="contacts-list-info"><span class="contacts-list-name">Field Observer</span></div></a></li>
|
|
70
|
+
<li><a href="#"><div class="contacts-list-info"><span class="contacts-list-name">Boat Keeper</span></div></a></li>
|
|
71
|
+
</ul>
|
|
72
|
+
</div>
|
|
73
|
+
</div>
|
|
74
|
+
</div>
|
|
75
|
+
</div></div>
|
|
76
|
+
</div></section>
|
|
77
|
+
</div>
|
|
78
|
+
<footer class="main-footer"><strong>Field Office</strong>, a demo of the step pack.</footer>
|
|
79
|
+
</div>
|
|
80
|
+
<script src="vendor/jquery-3.6.4/jquery.min.js"></script>
|
|
81
|
+
<script src="vendor/bootstrap-4.6.2/js/bootstrap.bundle.min.js"></script>
|
|
82
|
+
<script src="vendor/admin-lte-3.2.0/js/adminlte.min.js"></script>
|
|
83
|
+
</body>
|
|
84
|
+
</html>
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
6
|
+
<title>Components | Field Office</title>
|
|
7
|
+
<link rel="icon" href="data:,">
|
|
8
|
+
<link rel="stylesheet" href="vendor/admin-lte-3.2.0/css/adminlte.min.css">
|
|
9
|
+
<link rel="stylesheet" href="css/demo.css">
|
|
10
|
+
</head>
|
|
11
|
+
<body class="hold-transition sidebar-mini">
|
|
12
|
+
<div class="wrapper">
|
|
13
|
+
<nav class="main-header navbar navbar-expand navbar-white navbar-light" aria-label="Top bar">
|
|
14
|
+
<ul class="navbar-nav">
|
|
15
|
+
<li class="nav-item"><a class="nav-link" data-widget="pushmenu" href="#" role="button" aria-label="Toggle the sidebar">☰</a></li>
|
|
16
|
+
<li class="nav-item d-none d-sm-inline-block"><a href="index.html" class="nav-link">Home</a></li>
|
|
17
|
+
</ul>
|
|
18
|
+
<ul class="navbar-nav ml-auto">
|
|
19
|
+
<li class="nav-item"><a class="nav-link" data-widget="fullscreen" href="#" role="button" aria-label="Full screen">⤢</a></li>
|
|
20
|
+
<li class="nav-item dropdown">
|
|
21
|
+
<a class="nav-link dropdown-toggle" href="#" data-toggle="dropdown" aria-expanded="false">Account</a>
|
|
22
|
+
<div class="dropdown-menu dropdown-menu-right"><a class="dropdown-item" href="settings.html">Profile</a><a class="dropdown-item" href="#">Sign out</a></div>
|
|
23
|
+
</li>
|
|
24
|
+
</ul>
|
|
25
|
+
</nav>
|
|
26
|
+
<aside class="main-sidebar sidebar-dark-primary elevation-4">
|
|
27
|
+
<a href="index.html" class="brand-link"><span class="brand-text font-weight-light">Field Office</span></a>
|
|
28
|
+
<div class="sidebar">
|
|
29
|
+
<nav class="mt-2" aria-label="Main navigation">
|
|
30
|
+
<ul class="nav nav-pills nav-sidebar flex-column" data-widget="treeview" data-accordion="false">
|
|
31
|
+
<li class="nav-item"><a href="index.html" class="nav-link"><i class="nav-icon" aria-hidden="true">•</i><p>Dashboard</p></a></li>
|
|
32
|
+
<li class="nav-item">
|
|
33
|
+
<a href="#" class="nav-link"><i class="nav-icon" aria-hidden="true">•</i><p>Reports <i class="right" aria-hidden="true">‹</i></p></a>
|
|
34
|
+
<ul class="nav nav-treeview">
|
|
35
|
+
<li class="nav-item"><a href="cards.html" class="nav-link"><i class="nav-icon" aria-hidden="true">•</i><p>Cards</p></a></li>
|
|
36
|
+
<li class="nav-item"><a href="chat.html" class="nav-link"><i class="nav-icon" aria-hidden="true">•</i><p>Team chat</p></a></li>
|
|
37
|
+
</ul>
|
|
38
|
+
</li>
|
|
39
|
+
<li class="nav-item"><a href="components.html" class="nav-link active"><i class="nav-icon" aria-hidden="true">•</i><p>Components</p></a></li>
|
|
40
|
+
<li class="nav-item">
|
|
41
|
+
<a href="#" class="nav-link"><i class="nav-icon" aria-hidden="true">•</i><p>Settings <i class="right" aria-hidden="true">‹</i></p></a>
|
|
42
|
+
<ul class="nav nav-treeview">
|
|
43
|
+
<li class="nav-item"><a href="settings.html" class="nav-link"><i class="nav-icon" aria-hidden="true">•</i><p>Profile</p></a></li>
|
|
44
|
+
<li class="nav-item"><a href="#" class="nav-link"><i class="nav-icon" aria-hidden="true">•</i><p>Security</p></a></li>
|
|
45
|
+
</ul>
|
|
46
|
+
</li>
|
|
47
|
+
</ul>
|
|
48
|
+
</nav>
|
|
49
|
+
</div>
|
|
50
|
+
</aside>
|
|
51
|
+
<div class="content-wrapper">
|
|
52
|
+
<div class="content-header"><div class="container-fluid"><h1 class="m-0">Components</h1></div></div>
|
|
53
|
+
<section class="content"><div class="container-fluid">
|
|
54
|
+
<div class="alert alert-success alert-dismissible fade show" role="alert">The backup finished at 06:00.<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button></div>
|
|
55
|
+
<button type="button" class="btn btn-primary mb-3" data-toggle="modal" data-target="#exportModal">Export the report</button>
|
|
56
|
+
<div class="modal fade" id="exportModal" tabindex="-1" aria-labelledby="exportTitle" aria-hidden="true">
|
|
57
|
+
<div class="modal-dialog"><div class="modal-content">
|
|
58
|
+
<div class="modal-header"><h5 class="modal-title" id="exportTitle">Export report</h5><button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button></div>
|
|
59
|
+
<div class="modal-body">The report is exported as a spreadsheet.</div>
|
|
60
|
+
<div class="modal-footer"><button type="button" class="btn btn-secondary" data-dismiss="modal">Cancel</button><button type="button" class="btn btn-primary" data-dismiss="modal">Export</button></div>
|
|
61
|
+
</div></div>
|
|
62
|
+
</div>
|
|
63
|
+
<div class="card"><div class="card-header"><ul class="nav nav-tabs card-header-tabs" role="tablist">
|
|
64
|
+
<li class="nav-item" role="presentation"><button class="nav-link active" id="today-tab" data-toggle="tab" data-target="#today" type="button" role="tab" aria-controls="today" aria-selected="true">Today</button></li>
|
|
65
|
+
<li class="nav-item" role="presentation"><button class="nav-link" id="week-tab" data-toggle="tab" data-target="#week" type="button" role="tab" aria-controls="week" aria-selected="false">This week</button></li>
|
|
66
|
+
</ul></div>
|
|
67
|
+
<div class="card-body tab-content">
|
|
68
|
+
<div class="tab-pane fade show active" id="today" role="tabpanel" aria-labelledby="today-tab">Three visits today.</div>
|
|
69
|
+
<div class="tab-pane fade" id="week" role="tabpanel" aria-labelledby="week-tab">Twenty-one visits this week.</div>
|
|
70
|
+
</div></div>
|
|
71
|
+
</div></section>
|
|
72
|
+
</div>
|
|
73
|
+
<footer class="main-footer"><strong>Field Office</strong>, a demo of the step pack.</footer>
|
|
74
|
+
</div>
|
|
75
|
+
<script src="vendor/jquery-3.6.4/jquery.min.js"></script>
|
|
76
|
+
<script src="vendor/bootstrap-4.6.2/js/bootstrap.bundle.min.js"></script>
|
|
77
|
+
<script src="vendor/admin-lte-3.2.0/js/adminlte.min.js"></script>
|
|
78
|
+
</body>
|
|
79
|
+
</html>
|