hyper-admin 1.0.0__py3-none-any.whl
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.
- hyper_admin-1.0.0.dist-info/METADATA +366 -0
- hyper_admin-1.0.0.dist-info/RECORD +442 -0
- hyper_admin-1.0.0.dist-info/WHEEL +4 -0
- hyper_admin-1.0.0.dist-info/entry_points.txt +2 -0
- hyper_admin-1.0.0.dist-info/licenses/LICENSE +21 -0
- hyperadmin/__init__.py +52 -0
- hyperadmin/__main__.py +21 -0
- hyperadmin/adapters/__init__.py +28 -0
- hyperadmin/adapters/_estimate.py +33 -0
- hyperadmin/adapters/_filter_clause.py +9 -0
- hyperadmin/adapters/_occ.py +44 -0
- hyperadmin/adapters/_relation_loading.py +23 -0
- hyperadmin/adapters/_search.py +84 -0
- hyperadmin/adapters/filtering.py +86 -0
- hyperadmin/adapters/introspection.py +239 -0
- hyperadmin/adapters/registry.py +37 -0
- hyperadmin/adapters/schema.py +239 -0
- hyperadmin/adapters/sqlalchemy.py +423 -0
- hyperadmin/adapters/sqlmodel.py +650 -0
- hyperadmin/auth/__init__.py +156 -0
- hyperadmin/auth/_types.py +52 -0
- hyperadmin/auth/backend.py +37 -0
- hyperadmin/auth/bridge.py +351 -0
- hyperadmin/auth/exceptions.py +124 -0
- hyperadmin/auth/middleware.py +287 -0
- hyperadmin/auth/models.py +245 -0
- hyperadmin/auth/oauth/__init__.py +81 -0
- hyperadmin/auth/oauth/backend.py +611 -0
- hyperadmin/auth/oauth/providers.py +214 -0
- hyperadmin/auth/oauth/refresh.py +126 -0
- hyperadmin/auth/oauth/session.py +96 -0
- hyperadmin/auth/oauth/tokens.py +114 -0
- hyperadmin/auth/oauth/views.py +306 -0
- hyperadmin/auth/oauth/wiring.py +131 -0
- hyperadmin/auth/otp.py +189 -0
- hyperadmin/auth/permissions.py +232 -0
- hyperadmin/auth/session.py +81 -0
- hyperadmin/auth/session_middleware.py +164 -0
- hyperadmin/auth/token_handoff.py +452 -0
- hyperadmin/auth/user_cache.py +222 -0
- hyperadmin/auth/views.py +581 -0
- hyperadmin/core/__init__.py +76 -0
- hyperadmin/core/actions.py +151 -0
- hyperadmin/core/adapters.py +883 -0
- hyperadmin/core/app.py +1437 -0
- hyperadmin/core/auth.py +97 -0
- hyperadmin/core/bulk_results.py +28 -0
- hyperadmin/core/cache.py +68 -0
- hyperadmin/core/choices.py +38 -0
- hyperadmin/core/concurrency.py +107 -0
- hyperadmin/core/csrf.py +108 -0
- hyperadmin/core/discovery.py +161 -0
- hyperadmin/core/display.py +172 -0
- hyperadmin/core/fields.py +158 -0
- hyperadmin/core/fieldsets.py +22 -0
- hyperadmin/core/filtering.py +403 -0
- hyperadmin/core/filters_compat.py +78 -0
- hyperadmin/core/inlines.py +64 -0
- hyperadmin/core/introspection.py +280 -0
- hyperadmin/core/layouts.py +17 -0
- hyperadmin/core/lifecycle.py +278 -0
- hyperadmin/core/model.py +189 -0
- hyperadmin/core/navigation.py +354 -0
- hyperadmin/core/options.py +391 -0
- hyperadmin/core/palette.py +94 -0
- hyperadmin/core/panels.py +227 -0
- hyperadmin/core/plugin_wiring.py +205 -0
- hyperadmin/core/plugins.py +588 -0
- hyperadmin/core/primary_key.py +118 -0
- hyperadmin/core/rate_limit.py +90 -0
- hyperadmin/core/registry.py +129 -0
- hyperadmin/core/relation_loading.py +25 -0
- hyperadmin/core/schema.py +83 -0
- hyperadmin/core/sensitive.py +134 -0
- hyperadmin/core/settings.py +377 -0
- hyperadmin/core/storage_paths.py +54 -0
- hyperadmin/core/timezones.py +137 -0
- hyperadmin/core/uploads.py +16 -0
- hyperadmin/db.py +160 -0
- hyperadmin/discover.py +54 -0
- hyperadmin/filters/__init__.py +39 -0
- hyperadmin/filters/base.py +246 -0
- hyperadmin/filters/boolean.py +105 -0
- hyperadmin/filters/choice.py +74 -0
- hyperadmin/filters/date.py +265 -0
- hyperadmin/filters/relation.py +69 -0
- hyperadmin/filters/saved_views.py +203 -0
- hyperadmin/i18n/__init__.py +50 -0
- hyperadmin/i18n/loader.py +150 -0
- hyperadmin/i18n/middleware.py +159 -0
- hyperadmin/i18n/validation_messages.py +264 -0
- hyperadmin/loadtest/__init__.py +28 -0
- hyperadmin/loadtest/batch.py +263 -0
- hyperadmin/loadtest/checkpoint.py +168 -0
- hyperadmin/loadtest/generators/__init__.py +29 -0
- hyperadmin/loadtest/generators/auth.py +86 -0
- hyperadmin/loadtest/generators/erp.py +177 -0
- hyperadmin/loadtest/plan.py +189 -0
- hyperadmin/loadtest/pool.py +113 -0
- hyperadmin/loadtest/progress.py +150 -0
- hyperadmin/locale/ar/LC_MESSAGES/messages.mo +0 -0
- hyperadmin/locale/ar/LC_MESSAGES/messages.po +2139 -0
- hyperadmin/locale/de/LC_MESSAGES/messages.mo +0 -0
- hyperadmin/locale/de/LC_MESSAGES/messages.po +2114 -0
- hyperadmin/locale/en/LC_MESSAGES/messages.mo +0 -0
- hyperadmin/locale/en/LC_MESSAGES/messages.po +1780 -0
- hyperadmin/locale/es/LC_MESSAGES/messages.mo +0 -0
- hyperadmin/locale/es/LC_MESSAGES/messages.po +2094 -0
- hyperadmin/locale/fr/LC_MESSAGES/messages.mo +0 -0
- hyperadmin/locale/fr/LC_MESSAGES/messages.po +2100 -0
- hyperadmin/locale/he/LC_MESSAGES/messages.mo +0 -0
- hyperadmin/locale/he/LC_MESSAGES/messages.po +2076 -0
- hyperadmin/locale/hi/LC_MESSAGES/messages.mo +0 -0
- hyperadmin/locale/hi/LC_MESSAGES/messages.po +2084 -0
- hyperadmin/locale/id/LC_MESSAGES/messages.mo +0 -0
- hyperadmin/locale/id/LC_MESSAGES/messages.po +2071 -0
- hyperadmin/locale/it/LC_MESSAGES/messages.mo +0 -0
- hyperadmin/locale/it/LC_MESSAGES/messages.po +2098 -0
- hyperadmin/locale/ja/LC_MESSAGES/messages.mo +0 -0
- hyperadmin/locale/ja/LC_MESSAGES/messages.po +2049 -0
- hyperadmin/locale/ko/LC_MESSAGES/messages.mo +0 -0
- hyperadmin/locale/ko/LC_MESSAGES/messages.po +2049 -0
- hyperadmin/locale/nl/LC_MESSAGES/messages.mo +0 -0
- hyperadmin/locale/nl/LC_MESSAGES/messages.po +2100 -0
- hyperadmin/locale/pl/LC_MESSAGES/messages.mo +0 -0
- hyperadmin/locale/pl/LC_MESSAGES/messages.po +2112 -0
- hyperadmin/locale/pt_BR/LC_MESSAGES/messages.mo +0 -0
- hyperadmin/locale/pt_BR/LC_MESSAGES/messages.po +2098 -0
- hyperadmin/locale/ru/LC_MESSAGES/messages.mo +0 -0
- hyperadmin/locale/ru/LC_MESSAGES/messages.po +2112 -0
- hyperadmin/locale/th/LC_MESSAGES/messages.mo +0 -0
- hyperadmin/locale/th/LC_MESSAGES/messages.po +2065 -0
- hyperadmin/locale/tr/LC_MESSAGES/messages.mo +0 -0
- hyperadmin/locale/tr/LC_MESSAGES/messages.po +2084 -0
- hyperadmin/locale/uk/LC_MESSAGES/messages.mo +0 -0
- hyperadmin/locale/uk/LC_MESSAGES/messages.po +1889 -0
- hyperadmin/locale/vi/LC_MESSAGES/messages.mo +0 -0
- hyperadmin/locale/vi/LC_MESSAGES/messages.po +2063 -0
- hyperadmin/locale/zh_CN/LC_MESSAGES/messages.mo +0 -0
- hyperadmin/locale/zh_CN/LC_MESSAGES/messages.po +2049 -0
- hyperadmin/main.py +3 -0
- hyperadmin/management/__init__.py +0 -0
- hyperadmin/management/commands/__init__.py +0 -0
- hyperadmin/management/commands/createsuperuser.py +114 -0
- hyperadmin/management/commands/initdb.py +76 -0
- hyperadmin/management/commands/plugins.py +31 -0
- hyperadmin/management/commands/seed.py +125 -0
- hyperadmin/navigation/__init__.py +9 -0
- hyperadmin/navigation/pins.py +153 -0
- hyperadmin/panels/__init__.py +10 -0
- hyperadmin/panels/pdf.py +151 -0
- hyperadmin/permissions/__init__.py +59 -0
- hyperadmin/permissions/audit.py +109 -0
- hyperadmin/permissions/matrix.py +343 -0
- hyperadmin/permissions/object_rules.py +143 -0
- hyperadmin/realtime/__init__.py +51 -0
- hyperadmin/realtime/_debug.py +77 -0
- hyperadmin/realtime/config.py +124 -0
- hyperadmin/realtime/emitting.py +143 -0
- hyperadmin/realtime/events.py +107 -0
- hyperadmin/realtime/presence.py +193 -0
- hyperadmin/realtime/presence_redis.py +142 -0
- hyperadmin/realtime/pubsub.py +129 -0
- hyperadmin/realtime/pubsub_redis.py +159 -0
- hyperadmin/realtime/registry.py +102 -0
- hyperadmin/realtime/sse.py +82 -0
- hyperadmin/realtime/ws.py +477 -0
- hyperadmin/routing.py +680 -0
- hyperadmin/static/css/_accessibility.css +149 -0
- hyperadmin/static/css/_alerts.css +147 -0
- hyperadmin/static/css/_autocomplete.css +39 -0
- hyperadmin/static/css/_banner.css +118 -0
- hyperadmin/static/css/_buttons.css +241 -0
- hyperadmin/static/css/_card.css +86 -0
- hyperadmin/static/css/_dark-mode.css +232 -0
- hyperadmin/static/css/_fieldsets.css +71 -0
- hyperadmin/static/css/_filter.css +203 -0
- hyperadmin/static/css/_fonts.css +25 -0
- hyperadmin/static/css/_forms.css +862 -0
- hyperadmin/static/css/_inline-cell.css +222 -0
- hyperadmin/static/css/_inlines.css +160 -0
- hyperadmin/static/css/_layout.css +62 -0
- hyperadmin/static/css/_login.css +112 -0
- hyperadmin/static/css/_menu.css +156 -0
- hyperadmin/static/css/_navbar.css +299 -0
- hyperadmin/static/css/_page-header.css +139 -0
- hyperadmin/static/css/_pagination.css +125 -0
- hyperadmin/static/css/_palette.css +304 -0
- hyperadmin/static/css/_panels.css +174 -0
- hyperadmin/static/css/_permissions.css +547 -0
- hyperadmin/static/css/_pill.css +123 -0
- hyperadmin/static/css/_popover.css +170 -0
- hyperadmin/static/css/_popup.css +65 -0
- hyperadmin/static/css/_progress.css +161 -0
- hyperadmin/static/css/_realtime.css +78 -0
- hyperadmin/static/css/_reset.css +48 -0
- hyperadmin/static/css/_responsive.css +51 -0
- hyperadmin/static/css/_rtl.css +23 -0
- hyperadmin/static/css/_search.css +67 -0
- hyperadmin/static/css/_seg.css +95 -0
- hyperadmin/static/css/_sidebar.css +446 -0
- hyperadmin/static/css/_sticky.css +54 -0
- hyperadmin/static/css/_table.css +776 -0
- hyperadmin/static/css/_theme-terminal-type.css +92 -0
- hyperadmin/static/css/_theme-terminal.css +330 -0
- hyperadmin/static/css/_theme-toggle.css +46 -0
- hyperadmin/static/css/_tokens.css +232 -0
- hyperadmin/static/css/_utilities.css +133 -0
- hyperadmin/static/css/hyperadmin.css +58 -0
- hyperadmin/static/fonts/Inter-OFL.txt +93 -0
- hyperadmin/static/fonts/InterVariable.woff2 +0 -0
- hyperadmin/static/fonts/JetBrainsMono-OFL.txt +93 -0
- hyperadmin/static/fonts/JetBrainsMonoVariable.woff2 +0 -0
- hyperadmin/static/icons/arrow-down.svg +1 -0
- hyperadmin/static/icons/arrow-up.svg +1 -0
- hyperadmin/static/icons/bar-chart-3.svg +1 -0
- hyperadmin/static/icons/bell.svg +1 -0
- hyperadmin/static/icons/bookmark.svg +1 -0
- hyperadmin/static/icons/briefcase.svg +1 -0
- hyperadmin/static/icons/building-2.svg +1 -0
- hyperadmin/static/icons/calendar.svg +1 -0
- hyperadmin/static/icons/check.svg +1 -0
- hyperadmin/static/icons/chevron-down.svg +1 -0
- hyperadmin/static/icons/chevron-left.svg +1 -0
- hyperadmin/static/icons/chevron-right.svg +1 -0
- hyperadmin/static/icons/circle-check.svg +1 -0
- hyperadmin/static/icons/circle-help.svg +1 -0
- hyperadmin/static/icons/circle-x.svg +1 -0
- hyperadmin/static/icons/clock.svg +1 -0
- hyperadmin/static/icons/columns-3.svg +1 -0
- hyperadmin/static/icons/command.svg +1 -0
- hyperadmin/static/icons/copy.svg +1 -0
- hyperadmin/static/icons/credit-card.svg +1 -0
- hyperadmin/static/icons/database.svg +1 -0
- hyperadmin/static/icons/download.svg +1 -0
- hyperadmin/static/icons/ellipsis.svg +1 -0
- hyperadmin/static/icons/external-link.svg +1 -0
- hyperadmin/static/icons/eye.svg +1 -0
- hyperadmin/static/icons/file-text.svg +1 -0
- hyperadmin/static/icons/filter.svg +1 -0
- hyperadmin/static/icons/folder.svg +1 -0
- hyperadmin/static/icons/globe.svg +1 -0
- hyperadmin/static/icons/history.svg +1 -0
- hyperadmin/static/icons/home.svg +1 -0
- hyperadmin/static/icons/image.svg +1 -0
- hyperadmin/static/icons/info.svg +1 -0
- hyperadmin/static/icons/key-round.svg +1 -0
- hyperadmin/static/icons/layers.svg +1 -0
- hyperadmin/static/icons/layout-grid.svg +1 -0
- hyperadmin/static/icons/list-checks.svg +1 -0
- hyperadmin/static/icons/lock.svg +1 -0
- hyperadmin/static/icons/log-out.svg +1 -0
- hyperadmin/static/icons/mail.svg +1 -0
- hyperadmin/static/icons/map-pin.svg +1 -0
- hyperadmin/static/icons/menu.svg +1 -0
- hyperadmin/static/icons/moon.svg +1 -0
- hyperadmin/static/icons/package.svg +1 -0
- hyperadmin/static/icons/panel-left-close.svg +1 -0
- hyperadmin/static/icons/panel-left-open.svg +1 -0
- hyperadmin/static/icons/pencil.svg +1 -0
- hyperadmin/static/icons/pin-off.svg +1 -0
- hyperadmin/static/icons/pin.svg +1 -0
- hyperadmin/static/icons/plus.svg +1 -0
- hyperadmin/static/icons/receipt.svg +1 -0
- hyperadmin/static/icons/refresh-cw.svg +1 -0
- hyperadmin/static/icons/rotate-ccw.svg +1 -0
- hyperadmin/static/icons/search.svg +1 -0
- hyperadmin/static/icons/settings.svg +1 -0
- hyperadmin/static/icons/shield-check.svg +1 -0
- hyperadmin/static/icons/shopping-cart.svg +1 -0
- hyperadmin/static/icons/sliders-horizontal.svg +1 -0
- hyperadmin/static/icons/sparkles.svg +1 -0
- hyperadmin/static/icons/store.svg +1 -0
- hyperadmin/static/icons/sun.svg +1 -0
- hyperadmin/static/icons/tag.svg +1 -0
- hyperadmin/static/icons/trash-2.svg +1 -0
- hyperadmin/static/icons/triangle-alert.svg +1 -0
- hyperadmin/static/icons/truck.svg +1 -0
- hyperadmin/static/icons/upload.svg +1 -0
- hyperadmin/static/icons/user.svg +1 -0
- hyperadmin/static/icons/users.svg +1 -0
- hyperadmin/static/icons/wallet.svg +1 -0
- hyperadmin/static/icons/x.svg +1 -0
- hyperadmin/static/img/hyperadmin-favicon.svg +1 -0
- hyperadmin/static/img/hyperadmin-mark-mono.svg +1 -0
- hyperadmin/static/img/hyperadmin-mark.svg +1 -0
- hyperadmin/static/img/hyperadmin-wordmark-dark.svg +1 -0
- hyperadmin/static/img/hyperadmin-wordmark.svg +1 -0
- hyperadmin/static/img/terminal/hyperadmin-favicon-16.svg +1 -0
- hyperadmin/static/img/terminal/hyperadmin-favicon.svg +1 -0
- hyperadmin/static/img/terminal/hyperadmin-mark.svg +1 -0
- hyperadmin/static/img/terminal/hyperadmin-wordmark-dark.svg +1 -0
- hyperadmin/static/img/terminal/hyperadmin-wordmark.svg +1 -0
- hyperadmin/static/js/autocomplete.js +475 -0
- hyperadmin/static/js/confirm_delete.js +113 -0
- hyperadmin/static/js/error_summary.js +37 -0
- hyperadmin/static/js/form_guard.js +77 -0
- hyperadmin/static/js/inline_edit.js +97 -0
- hyperadmin/static/js/palette.js +292 -0
- hyperadmin/static/js/primitives.js +205 -0
- hyperadmin/static/js/realtime-status.js +515 -0
- hyperadmin/static/js/request_errors.js +85 -0
- hyperadmin/static/js/shortcuts.js +175 -0
- hyperadmin/static/js/sidebar.js +83 -0
- hyperadmin/static/js/vendor/LICENSE-alpinejs.txt +21 -0
- hyperadmin/static/js/vendor/LICENSE-htmx.txt +25 -0
- hyperadmin/static/js/vendor/alpinejs-3.17.4.min.js +21 -0
- hyperadmin/static/js/vendor/alpinejs-focus-3.17.4.min.js +18 -0
- hyperadmin/static/js/vendor/htmx-1.9.10.min.js +1 -0
- hyperadmin/templates/_base.html +161 -0
- hyperadmin/templates/_messages.html +11 -0
- hyperadmin/templates/_navbar.html +126 -0
- hyperadmin/templates/_sidebar.html +80 -0
- hyperadmin/templates/auth/mfa_challenge.html +75 -0
- hyperadmin/templates/auth/mfa_settings.html +110 -0
- hyperadmin/templates/auth/oauth_link_required.html +24 -0
- hyperadmin/templates/auth/oauth_settings.html +55 -0
- hyperadmin/templates/base.html +16 -0
- hyperadmin/templates/bulk_form.html +18 -0
- hyperadmin/templates/bulk_result.html +20 -0
- hyperadmin/templates/components/_icons.html +86 -0
- hyperadmin/templates/components/_macros.html +27 -0
- hyperadmin/templates/components/_nav.html +55 -0
- hyperadmin/templates/components/_row_access.html +26 -0
- hyperadmin/templates/components/banner.html +77 -0
- hyperadmin/templates/components/bulk_form.html +81 -0
- hyperadmin/templates/components/bulk_result.html +133 -0
- hyperadmin/templates/components/bulk_toolbar.html +63 -0
- hyperadmin/templates/components/command_palette.html +59 -0
- hyperadmin/templates/components/confirm_delete_dialog.html +26 -0
- hyperadmin/templates/components/conflict_dialog.html +42 -0
- hyperadmin/templates/components/csrf_reload_banner.html +20 -0
- hyperadmin/templates/components/error_summary.html +39 -0
- hyperadmin/templates/components/error_toast.html +18 -0
- hyperadmin/templates/components/fieldset.html +38 -0
- hyperadmin/templates/components/filter_bar.html +50 -0
- hyperadmin/templates/components/filter_sidebar.html +31 -0
- hyperadmin/templates/components/filters/boolean.html +10 -0
- hyperadmin/templates/components/filters/current_period.html +8 -0
- hyperadmin/templates/components/filters/date_range.html +26 -0
- hyperadmin/templates/components/filters/is_owner.html +8 -0
- hyperadmin/templates/components/filters/multi_choice.html +10 -0
- hyperadmin/templates/components/filters/multi_relation.html +20 -0
- hyperadmin/templates/components/filters/select.html +11 -0
- hyperadmin/templates/components/inline_cell.html +23 -0
- hyperadmin/templates/components/inline_cell_error.html +51 -0
- hyperadmin/templates/components/inline_cell_stale.html +20 -0
- hyperadmin/templates/components/inline_editor.html +85 -0
- hyperadmin/templates/components/inline_formset.html +34 -0
- hyperadmin/templates/components/inline_row.html +49 -0
- hyperadmin/templates/components/list_error.html +12 -0
- hyperadmin/templates/components/menu.html +74 -0
- hyperadmin/templates/components/nav_pinned.html +24 -0
- hyperadmin/templates/components/pagination.html +87 -0
- hyperadmin/templates/components/panel_document.html +19 -0
- hyperadmin/templates/components/panel_states.html +35 -0
- hyperadmin/templates/components/panel_tab_strip.html +31 -0
- hyperadmin/templates/components/pill.html +15 -0
- hyperadmin/templates/components/popover.html +59 -0
- hyperadmin/templates/components/presence_banner.html +28 -0
- hyperadmin/templates/components/progress.html +72 -0
- hyperadmin/templates/components/saved_views.html +61 -0
- hyperadmin/templates/components/search_input.html +19 -0
- hyperadmin/templates/components/seg.html +38 -0
- hyperadmin/templates/components/shortcuts_overlay.html +45 -0
- hyperadmin/templates/components/sortable_header.html +23 -0
- hyperadmin/templates/components/table.html +45 -0
- hyperadmin/templates/components/table_body.html +86 -0
- hyperadmin/templates/components/thumbnail.html +8 -0
- hyperadmin/templates/components/toast.html +36 -0
- hyperadmin/templates/components/tooltip.html +20 -0
- hyperadmin/templates/create.html +43 -0
- hyperadmin/templates/dashboard.html +8 -0
- hyperadmin/templates/detail.html +120 -0
- hyperadmin/templates/detail_layout.html +15 -0
- hyperadmin/templates/error.html +24 -0
- hyperadmin/templates/form_layout.html +26 -0
- hyperadmin/templates/list.html +5 -0
- hyperadmin/templates/list_layout.html +105 -0
- hyperadmin/templates/login.html +79 -0
- hyperadmin/templates/permissions/_banner.html +55 -0
- hyperadmin/templates/permissions/_diff_row.html +6 -0
- hyperadmin/templates/permissions/_group_gone.html +16 -0
- hyperadmin/templates/permissions/_macros.html +22 -0
- hyperadmin/templates/permissions/matrix.html +408 -0
- hyperadmin/templates/permissions/object_popover.html +95 -0
- hyperadmin/templates/update.html +69 -0
- hyperadmin/templates/widgets/autocomplete.html +100 -0
- hyperadmin/templates/widgets/checkbox_input.html +20 -0
- hyperadmin/templates/widgets/choices_options.html +3 -0
- hyperadmin/templates/widgets/date_input.html +13 -0
- hyperadmin/templates/widgets/datetime_input.html +18 -0
- hyperadmin/templates/widgets/encoded_textarea.html +4 -0
- hyperadmin/templates/widgets/file_input.html +15 -0
- hyperadmin/templates/widgets/float_input.html +12 -0
- hyperadmin/templates/widgets/image_input.html +108 -0
- hyperadmin/templates/widgets/multiselect_input.html +13 -0
- hyperadmin/templates/widgets/number_input.html +11 -0
- hyperadmin/templates/widgets/popup_form.html +64 -0
- hyperadmin/templates/widgets/relation_multiselect_input.html +36 -0
- hyperadmin/templates/widgets/relation_select_input.html +38 -0
- hyperadmin/templates/widgets/select_input.html +17 -0
- hyperadmin/templates/widgets/text_input.html +13 -0
- hyperadmin/templates/widgets/textarea.html +4 -0
- hyperadmin/uploads/__init__.py +44 -0
- hyperadmin/uploads/images.py +272 -0
- hyperadmin/uploads/storage.py +265 -0
- hyperadmin/uploads/validation.py +37 -0
- hyperadmin/views/__init__.py +3 -0
- hyperadmin/views/csrf.py +316 -0
- hyperadmin/views/dynamic/__init__.py +35 -0
- hyperadmin/views/dynamic/actions.py +264 -0
- hyperadmin/views/dynamic/base.py +576 -0
- hyperadmin/views/dynamic/concurrency.py +138 -0
- hyperadmin/views/dynamic/core.py +33 -0
- hyperadmin/views/dynamic/create.py +189 -0
- hyperadmin/views/dynamic/detail.py +231 -0
- hyperadmin/views/dynamic/files.py +233 -0
- hyperadmin/views/dynamic/form_data.py +162 -0
- hyperadmin/views/dynamic/helpers.py +151 -0
- hyperadmin/views/dynamic/inline.py +348 -0
- hyperadmin/views/dynamic/list_view.py +612 -0
- hyperadmin/views/dynamic/model_view.py +17 -0
- hyperadmin/views/dynamic/palette_search.py +78 -0
- hyperadmin/views/dynamic/relations.py +544 -0
- hyperadmin/views/dynamic/saved_views.py +159 -0
- hyperadmin/views/dynamic/update.py +313 -0
- hyperadmin/views/error_pages.py +46 -0
- hyperadmin/views/forms.py +1294 -0
- hyperadmin/views/htmx.py +53 -0
- hyperadmin/views/locale.py +113 -0
- hyperadmin/views/nav_pins.py +149 -0
- hyperadmin/views/navigation.py +143 -0
- hyperadmin/views/palette_context.py +91 -0
- hyperadmin/views/palette_search.py +103 -0
- hyperadmin/views/permissions_matrix.py +490 -0
- hyperadmin/views/rate_limit.py +87 -0
- hyperadmin/views/route.py +316 -0
- hyperadmin/views/static.py +138 -0
- hyperadmin/views/template_filters.py +305 -0
- hyperadmin/views/uploads.py +92 -0
- hyperadmin/views/urls.py +180 -0
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
{#-
|
|
2
|
+
Popover (design system: components/Popover): a small non-modal dialog
|
|
3
|
+
opened from a trigger, for structured detail with up to two actions.
|
|
4
|
+
|
|
5
|
+
Usage:
|
|
6
|
+
{%- from "components/popover.html" import popover -%}
|
|
7
|
+
{{ popover(_('What is a journal entry?'), title=_('Journal entry'), body=_('A dated record…'), id='help-journal') }}
|
|
8
|
+
|
|
9
|
+
{%- call popover(_('AI-generated'), title=_('Suggested category'), id='ai-cat',
|
|
10
|
+
trigger_class='ha-btn ha-btn--sm', trigger_icon='sparkles',
|
|
11
|
+
actions=[{'label': _('Accept'), 'primary': True, 'attrs': {'hx-post': url}}],
|
|
12
|
+
testid='popover-ai') %}
|
|
13
|
+
<p>Based on 14 similar invoices.</p>
|
|
14
|
+
{%- endcall %}
|
|
15
|
+
|
|
16
|
+
trigger_label: the trigger's accessible name; with trigger_icon only, it
|
|
17
|
+
becomes the aria-label of a .ha-info-btn (circle-help by default).
|
|
18
|
+
body / caller(): the content under the title. actions: {label, href, primary, testid, attrs}.
|
|
19
|
+
static/js/primitives.js moves focus into the dialog, closes on Esc or the
|
|
20
|
+
close button and returns focus to the trigger.
|
|
21
|
+
-#}
|
|
22
|
+
{%- from "components/_icons.html" import icon -%}
|
|
23
|
+
|
|
24
|
+
{%- macro popover(trigger_label, title, id, body='', actions=[], trigger_icon='circle-help', trigger_class='', trigger_text=False, align='start', closable=True, testid=None) -%}
|
|
25
|
+
<details class="ha-layer">
|
|
26
|
+
<summary class="{{ trigger_class or 'ha-info-btn' }}"
|
|
27
|
+
{%- if not trigger_text %} aria-label="{{ trigger_label }}"{% endif %}
|
|
28
|
+
{%- if testid %} data-testid="{{ testid }}"{% endif %}>
|
|
29
|
+
{{- icon(trigger_icon, 'ha-icon--sm') -}}
|
|
30
|
+
{%- if trigger_text %}{{ trigger_label }}{% endif -%}
|
|
31
|
+
</summary>
|
|
32
|
+
<div class="ha-popup ha-popover{{ ' ha-popup--end' if align == 'end' }}" role="dialog" aria-labelledby="{{ id }}-title" tabindex="-1" data-ha-align="{{ align }}">
|
|
33
|
+
<div class="ha-popover__head">
|
|
34
|
+
<h3 class="ha-popover__title" id="{{ id }}-title">{{ title }}</h3>
|
|
35
|
+
{%- if closable %}
|
|
36
|
+
<button type="button" class="ha-btn ha-btn--icon" aria-label="{{ _('Close') }}" data-ha-popup-close>{{ icon('x', 'ha-icon--sm') }}</button>
|
|
37
|
+
{%- endif %}
|
|
38
|
+
</div>
|
|
39
|
+
{%- if caller is defined %}{{ caller() }}{% elif body %}<p>{{ body }}</p>{% endif %}
|
|
40
|
+
{%- if actions %}
|
|
41
|
+
<div class="ha-popover__actions">
|
|
42
|
+
{%- for action in actions %}
|
|
43
|
+
{%- set attrs = action.attrs | default({}) -%}
|
|
44
|
+
{%- set action_class = 'ha-btn ha-btn--sm' ~ (' ha-btn--primary' if action.primary) -%}
|
|
45
|
+
{%- if action.href %}
|
|
46
|
+
<a class="{{ action_class }}" href="{{ action.href }}"
|
|
47
|
+
{%- if action.testid %} data-testid="{{ action.testid }}"{% endif %}
|
|
48
|
+
{%- for k, v in attrs.items() %} {{ k }}="{{ v }}"{% endfor %}>{{ action.label }}</a>
|
|
49
|
+
{%- else %}
|
|
50
|
+
<button type="button" class="{{ action_class }}"
|
|
51
|
+
{%- if action.testid %} data-testid="{{ action.testid }}"{% endif %}
|
|
52
|
+
{%- for k, v in attrs.items() %} {{ k }}="{{ v }}"{% endfor %}>{{ action.label }}</button>
|
|
53
|
+
{%- endif %}
|
|
54
|
+
{%- endfor %}
|
|
55
|
+
</div>
|
|
56
|
+
{%- endif %}
|
|
57
|
+
</div>
|
|
58
|
+
</details>
|
|
59
|
+
{%- endmacro -%}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{#-
|
|
2
|
+
Presence banner (design system: components/Presence): tells an editor who
|
|
3
|
+
else is on this record. Rendered hidden; the realtime script
|
|
4
|
+
(static/js/realtime-status.js) sends heartbeats over the connection-status
|
|
5
|
+
WebSocket, receives the record's roster and fills the text, so it stays
|
|
6
|
+
hidden when realtime is off, the socket is down, or nobody else is here.
|
|
7
|
+
|
|
8
|
+
Usage (needs model_name, item, pk_attr in context):
|
|
9
|
+
{%- include "components/presence_banner.html" -%}
|
|
10
|
+
-#}
|
|
11
|
+
{%- from "components/_icons.html" import icon -%}
|
|
12
|
+
{%- if realtime_enabled -%}
|
|
13
|
+
{%- set presence_self = request.state.user_key if request.state.user_key is defined else (request.state.user.id if request.state.user else '') -%}
|
|
14
|
+
<div class="ha-banner ha-banner--info ha-presence-banner" id="presence-banner" role="status" hidden
|
|
15
|
+
data-testid="presence-banner"
|
|
16
|
+
data-presence-model="{{ model_name|lower }}"
|
|
17
|
+
data-presence-pk="{{ item|ha_pk(pk_attr|default('id')) }}"
|
|
18
|
+
data-presence-mode="editing"
|
|
19
|
+
data-presence-self="{{ presence_self }}"
|
|
20
|
+
data-msg-viewing-one="{{ _('{names} is also viewing this record.') }}"
|
|
21
|
+
data-msg-viewing-many="{{ _('{names} are also viewing this record.') }}"
|
|
22
|
+
data-msg-editing-one="{{ _('{names} is also editing this record.') }}"
|
|
23
|
+
data-msg-editing-many="{{ _('{names} are also editing this record.') }}"
|
|
24
|
+
data-msg-more="{{ _('+{count} more') }}">
|
|
25
|
+
{{ icon('info') }}
|
|
26
|
+
<p class="ha-banner__text" data-presence-text></p>
|
|
27
|
+
</div>
|
|
28
|
+
{%- endif -%}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
{#-
|
|
2
|
+
Progress (design system: components/Progress): how far a long task has got.
|
|
3
|
+
The server renders it and re-renders it over HTMX polling or a realtime
|
|
4
|
+
event until the job ends.
|
|
5
|
+
|
|
6
|
+
Usage:
|
|
7
|
+
{%- from "components/progress.html" import progress -%}
|
|
8
|
+
{{ progress(_('Exporting invoices'), value=12, max=25, value_text='48% · 12 of 25 pages', testid='progress-export') }}
|
|
9
|
+
{{ progress(_('Preparing export…'), testid='progress-export') }} (indeterminate)
|
|
10
|
+
{{ progress(_('Export ready'), value=100, state='success', status=_('Finished in 14 s'),
|
|
11
|
+
actions=[{'label': _('Download CSV'), 'href': url, 'primary': True}]) }}
|
|
12
|
+
{{ progress(_('Importing contacts'), steps=5, step=3, value_text=_('Step 3 of 5 · Validating rows')) }}
|
|
13
|
+
{%- call progress(_('Exporting'), value=40) %}<span>{{ _('About 20 s left') }}</span>{% endcall %} (extra foot content)
|
|
14
|
+
|
|
15
|
+
value=None → indeterminate (no aria-valuenow). state: '' | success | warning | danger.
|
|
16
|
+
size: md | sm. status: the state in words (with its icon); the caller block
|
|
17
|
+
and `actions` ({label, href, primary, testid, attrs}) go in the foot.
|
|
18
|
+
failed_steps: how many of the `steps` segments are marked failed.
|
|
19
|
+
-#}
|
|
20
|
+
{%- from "components/_icons.html" import icon -%}
|
|
21
|
+
|
|
22
|
+
{%- set progress_icons = {'success': 'circle-check', 'warning': 'triangle-alert', 'danger': 'circle-x'} -%}
|
|
23
|
+
|
|
24
|
+
{%- macro progress(label, value=None, max=100, value_text='', state='', size='md', status='', actions=[], steps=None, step=0, failed_steps=0, testid=None, id=None) -%}
|
|
25
|
+
{%- set indeterminate = value is none and steps is none -%}
|
|
26
|
+
{%- set pct = (100 * value / max) | round | int if (value is not none and max) else 0 -%}
|
|
27
|
+
{%- set aria_text = value_text or (pct ~ '%' if value is not none else '') -%}
|
|
28
|
+
<div class="ha-progress{{ ' ha-progress--' ~ state if state }}{{ ' ha-progress--sm' if size == 'sm' }}{{ ' ha-progress--indeterminate' if indeterminate }}"
|
|
29
|
+
{%- if id %} id="{{ id }}"{% endif %}
|
|
30
|
+
{%- if testid %} data-testid="{{ testid }}"{% endif %}>
|
|
31
|
+
<div class="ha-progress__head">
|
|
32
|
+
<span class="ha-progress__label">{{ label }}</span>
|
|
33
|
+
<span class="ha-progress__value" aria-live="polite">{{ value_text }}</span>
|
|
34
|
+
</div>
|
|
35
|
+
{%- if steps is not none %}
|
|
36
|
+
<div role="progressbar" aria-label="{{ label }}" aria-valuemin="0" aria-valuemax="{{ steps }}" aria-valuenow="{{ step }}"
|
|
37
|
+
{%- if aria_text %} aria-valuetext="{{ aria_text }}"{% endif %}>
|
|
38
|
+
<div class="ha-progress__segments" aria-hidden="true">
|
|
39
|
+
{%- for i in range(steps) -%}
|
|
40
|
+
<span class="{{ 'is-failed' if (i >= step and i < step + failed_steps) else ('is-done' if i < step) }}"></span>
|
|
41
|
+
{%- endfor -%}
|
|
42
|
+
</div>
|
|
43
|
+
</div>
|
|
44
|
+
{%- else %}
|
|
45
|
+
<div class="ha-progress__track" role="progressbar" aria-label="{{ label }}" aria-valuemin="0" aria-valuemax="100"
|
|
46
|
+
{%- if value is not none %} aria-valuenow="{{ pct }}" aria-valuetext="{{ aria_text }}"{% endif %}>
|
|
47
|
+
<span class="ha-progress__bar"{% if value is not none %} style="--value: {{ pct }}%"{% endif %}></span>
|
|
48
|
+
</div>
|
|
49
|
+
{%- endif %}
|
|
50
|
+
{%- if status or actions or caller is defined %}
|
|
51
|
+
<div class="ha-progress__foot">
|
|
52
|
+
{%- if status %}
|
|
53
|
+
<span class="ha-progress__status">{% if progress_icons.get(state) %}{{ icon(progress_icons[state], 'ha-icon--sm') }}{% endif %}{{ status }}</span>
|
|
54
|
+
{%- endif %}
|
|
55
|
+
{%- if caller is defined %}{{ caller() }}{% endif %}
|
|
56
|
+
{%- for action in actions %}
|
|
57
|
+
{%- set attrs = action.attrs | default({}) -%}
|
|
58
|
+
{%- set action_class = 'ha-btn ha-btn--sm' ~ (' ha-btn--primary' if action.primary) -%}
|
|
59
|
+
{%- if action.href %}
|
|
60
|
+
<a class="{{ action_class }}" href="{{ action.href }}"
|
|
61
|
+
{%- if action.testid %} data-testid="{{ action.testid }}"{% endif %}
|
|
62
|
+
{%- for k, v in attrs.items() %} {{ k }}="{{ v }}"{% endfor %}>{{ action.label }}</a>
|
|
63
|
+
{%- else %}
|
|
64
|
+
<button type="button" class="{{ action_class }}"
|
|
65
|
+
{%- if action.testid %} data-testid="{{ action.testid }}"{% endif %}
|
|
66
|
+
{%- for k, v in attrs.items() %} {{ k }}="{{ v }}"{% endfor %}>{{ action.label }}</button>
|
|
67
|
+
{%- endif %}
|
|
68
|
+
{%- endfor %}
|
|
69
|
+
</div>
|
|
70
|
+
{%- endif %}
|
|
71
|
+
</div>
|
|
72
|
+
{%- endmacro -%}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
{#- My views (SavedViews design): the user's saved filter sets, rendered with the page.
|
|
2
|
+
Context: saved_views_enabled, saved_views (id, name, href, active, delete_url),
|
|
3
|
+
current_query, saved_views_url. Rename and the "filters changed" box need
|
|
4
|
+
server endpoints that do not exist yet, so they are not rendered. -#}
|
|
5
|
+
{%- from "components/_icons.html" import icon -%}
|
|
6
|
+
{%- if saved_views_enabled -%}
|
|
7
|
+
<section class="ha-views" aria-labelledby="saved-views-h" data-testid="saved-views" x-data="{ saving: false }">
|
|
8
|
+
<div class="ha-views__head">
|
|
9
|
+
<h3 id="saved-views-h">{{ _("My views") }}</h3>
|
|
10
|
+
<button class="ha-btn ha-btn--sm ha-btn--ghost" type="button" data-testid="save-view-btn"
|
|
11
|
+
:aria-expanded="saving" aria-controls="saved-view-save-form"
|
|
12
|
+
@click="saving = !saving; if (saving) $nextTick(() => $refs.viewName.focus())">
|
|
13
|
+
{{ icon('plus', 'ha-icon--sm') }}{{ _("Save view") }}
|
|
14
|
+
</button>
|
|
15
|
+
</div>
|
|
16
|
+
{#- The POST <form> itself lives in filter_sidebar.html, outside the filter form (forms cannot nest);
|
|
17
|
+
these controls join it through the form attribute. -#}
|
|
18
|
+
<div class="ha-view__edit" x-show="saving" x-cloak data-testid="saved-view-form" @keydown.escape="saving = false">
|
|
19
|
+
<div class="ha-field">
|
|
20
|
+
<label class="ha-label" for="saved-view-name">{{ _("Name") }}</label>
|
|
21
|
+
<input class="ha-input" type="text" id="saved-view-name" name="name" form="saved-view-save-form" x-ref="viewName" required maxlength="255" autocomplete="off">
|
|
22
|
+
</div>
|
|
23
|
+
<div class="ha-row">
|
|
24
|
+
<button class="ha-btn ha-btn--sm ha-btn--ghost" type="button" @click="saving = false">{{ _("Cancel") }}</button>
|
|
25
|
+
<button class="ha-btn ha-btn--sm ha-btn-primary" type="submit" form="saved-view-save-form" data-testid="saved-view-submit">{{ _("Save view") }}</button>
|
|
26
|
+
</div>
|
|
27
|
+
</div>
|
|
28
|
+
{%- if saved_views %}
|
|
29
|
+
<ul class="ha-views__list" aria-labelledby="saved-views-h">
|
|
30
|
+
{%- for view in saved_views %}
|
|
31
|
+
<li class="ha-view" id="saved-view-row-{{ view.id }}">
|
|
32
|
+
<a class="ha-view__link" href="{{ view.href }}"{% if view.active %} aria-current="true"{% endif %} title="{{ view.name }}" data-testid="saved-view-{{ view.id }}">
|
|
33
|
+
{{ icon('bookmark', 'ha-icon--sm') }}<span>{{ view.name }}</span>{{ icon('check', 'ha-icon--sm ha-view__tick') }}
|
|
34
|
+
{%- if view.active %}<span class="ha-sr-only">{{ _("(active)") }}</span>{% endif %}
|
|
35
|
+
</a>
|
|
36
|
+
<details class="ha-view__more">
|
|
37
|
+
<summary class="ha-btn ha-btn--icon" aria-label="{{ _('Actions for view %(name)s', name=view.name) }}">{{ icon('ellipsis', 'ha-icon--sm') }}</summary>
|
|
38
|
+
<div class="ha-menu">
|
|
39
|
+
<button class="ha-menu__item ha-menu__item--danger" type="button"
|
|
40
|
+
onclick="this.closest('li').querySelector('dialog').showModal()">
|
|
41
|
+
{{ icon('trash-2') }}<span class="ha-menu__text"><span>{{ _("Delete…") }}</span></span>
|
|
42
|
+
</button>
|
|
43
|
+
</div>
|
|
44
|
+
</details>
|
|
45
|
+
<dialog class="ha-dialog" role="alertdialog" aria-labelledby="saved-view-delete-{{ view.id }}-t" data-testid="saved-view-delete-dialog">
|
|
46
|
+
<h4 id="saved-view-delete-{{ view.id }}-t">{{ _("Delete the view “%(name)s”?", name=view.name) }}</h4>
|
|
47
|
+
<p>{{ _("Only the saved filters go. No rows change.") }}</p>
|
|
48
|
+
<div class="ha-row">
|
|
49
|
+
<button class="ha-btn ha-btn--sm" type="button" autofocus onclick="this.closest('dialog').close()">{{ _("Cancel") }}</button>
|
|
50
|
+
<button class="ha-btn ha-btn--sm ha-btn--danger" type="button" data-testid="saved-view-delete-{{ view.id }}"
|
|
51
|
+
hx-delete="{{ view.delete_url }}" hx-params="none" hx-target="#saved-view-row-{{ view.id }}" hx-swap="outerHTML">{{ _("Delete view") }}</button>
|
|
52
|
+
</div>
|
|
53
|
+
</dialog>
|
|
54
|
+
</li>
|
|
55
|
+
{%- endfor %}
|
|
56
|
+
</ul>
|
|
57
|
+
{%- else %}
|
|
58
|
+
<p class="ha-views__empty">{{ _("Save the filters you use often. They show up here, only for you.") }}</p>
|
|
59
|
+
{%- endif %}
|
|
60
|
+
</section>
|
|
61
|
+
{%- endif -%}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{%- from "components/_icons.html" import icon -%}
|
|
2
|
+
<div class="ha-search-group">
|
|
3
|
+
<div class="ha-search-field">
|
|
4
|
+
{{ icon('search') }}
|
|
5
|
+
<input type="search"
|
|
6
|
+
name="search"
|
|
7
|
+
value="{{- search_query -}}"
|
|
8
|
+
placeholder="{{ _('Search...') }}"
|
|
9
|
+
class="ha-search-input"
|
|
10
|
+
data-testid="search-input"
|
|
11
|
+
aria-label="{{ _('Search') }}"
|
|
12
|
+
hx-get="{{- url_for(model_name|lower ~ '-list') -}}"
|
|
13
|
+
hx-trigger="keyup changed delay:500ms, search"
|
|
14
|
+
hx-target="#model-list"
|
|
15
|
+
hx-swap="outerHTML"
|
|
16
|
+
hx-indicator="#search-indicator">
|
|
17
|
+
</div>
|
|
18
|
+
<span id="search-indicator" class="htmx-indicator ha-search-indicator">{{ _("Searching...") }}</span>
|
|
19
|
+
</div>
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{#-
|
|
2
|
+
Segmented control (design system: Chart period switch, ReportPage group-by).
|
|
3
|
+
|
|
4
|
+
Usage:
|
|
5
|
+
{%- from "components/seg.html" import seg -%}
|
|
6
|
+
{{ seg(options, label=_('Period'), testid='chart-period') }}
|
|
7
|
+
{{ seg(options, name='period', labelledby='p-l', testid='report-period') }}
|
|
8
|
+
|
|
9
|
+
options: a list of {value, label, selected, href, attrs}.
|
|
10
|
+
- With `name`, each option is a submit button (name/value) carrying
|
|
11
|
+
aria-pressed, so the control posts its GET form without JavaScript.
|
|
12
|
+
- Without `name`, each option is a link to `href` (or `?<param>=<value>`)
|
|
13
|
+
carrying aria-current on the selected one; pass `attrs` (e.g. hx-get)
|
|
14
|
+
to upgrade it.
|
|
15
|
+
Each option gets data-testid="<testid>-<value>" when `testid` is given.
|
|
16
|
+
-#}
|
|
17
|
+
{%- macro seg(options, name=None, label=None, labelledby=None, describedby=None, testid=None, param=None, class='') -%}
|
|
18
|
+
<div class="ha-seg{{ ' ' ~ class if class }}" role="group"
|
|
19
|
+
{%- if labelledby %} aria-labelledby="{{ labelledby }}"{% elif label %} aria-label="{{ label }}"{% endif %}
|
|
20
|
+
{%- if describedby %} aria-describedby="{{ describedby }}"{% endif %}
|
|
21
|
+
{%- if testid %} data-testid="{{ testid }}"{% endif %}>
|
|
22
|
+
{%- for option in options -%}
|
|
23
|
+
{%- set value = option.value | default(option.label) -%}
|
|
24
|
+
{%- set selected = option.selected | default(false) -%}
|
|
25
|
+
{%- set attrs = option.attrs | default({}) -%}
|
|
26
|
+
{%- if name %}
|
|
27
|
+
<button type="submit" name="{{ name }}" value="{{ value }}" aria-pressed="{{ 'true' if selected else 'false' }}"
|
|
28
|
+
{%- if testid %} data-testid="{{ testid }}-{{ value }}"{% endif %}
|
|
29
|
+
{%- for k, v in attrs.items() %} {{ k }}="{{ v }}"{% endfor %}>{{ option.label }}</button>
|
|
30
|
+
{%- else %}
|
|
31
|
+
<a href="{{ option.href if option.href else '?' ~ (param or 'period') ~ '=' ~ value }}"
|
|
32
|
+
{%- if selected %} aria-current="true"{% endif %}
|
|
33
|
+
{%- if testid %} data-testid="{{ testid }}-{{ value }}"{% endif %}
|
|
34
|
+
{%- for k, v in attrs.items() %} {{ k }}="{{ v }}"{% endfor %}>{{ option.label }}</a>
|
|
35
|
+
{%- endif %}
|
|
36
|
+
{%- endfor %}
|
|
37
|
+
</div>
|
|
38
|
+
{%- endmacro -%}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{#- Keyboard shortcuts overlay (st-v059-kbd-02, docs/specs/navigation-and-list-ux.md).
|
|
2
|
+
|
|
3
|
+
A native <dialog>, included once by _base.html. static/js/shortcuts.js opens
|
|
4
|
+
it on "?" (single key) or Cmd/Ctrl+/ (always on), fills the list from
|
|
5
|
+
haShortcuts.list() grouped by scope, and wires the switch to
|
|
6
|
+
haShortcuts.setEnabled() (WCAG 2.1.4: single-key shortcuts can be turned off;
|
|
7
|
+
stored in localStorage "ha-shortcuts"). Esc, the backdrop and Close close it
|
|
8
|
+
and return focus to where it was.
|
|
9
|
+
|
|
10
|
+
data-labels translates the scope names and the English descriptions scripts
|
|
11
|
+
register; a description without an entry shows as registered.
|
|
12
|
+
-#}
|
|
13
|
+
{%- from "components/_icons.html" import icon -%}
|
|
14
|
+
{%- set _labels = {
|
|
15
|
+
"global": _("General"),
|
|
16
|
+
"list": _("List"),
|
|
17
|
+
"form": _("Form"),
|
|
18
|
+
"Show keyboard shortcuts": _("Show keyboard shortcuts"),
|
|
19
|
+
"Search": _("Search"),
|
|
20
|
+
"Focus search": _("Focus search"),
|
|
21
|
+
"Next row": _("Next row"),
|
|
22
|
+
"Previous row": _("Previous row"),
|
|
23
|
+
"Select row": _("Select row"),
|
|
24
|
+
"Create new": _("Create new"),
|
|
25
|
+
"Save": _("Save"),
|
|
26
|
+
"or": _("or"),
|
|
27
|
+
} -%}
|
|
28
|
+
<dialog id="ha-shortcuts" class="ha-dialog ha-shortcuts" data-testid="shortcuts-overlay"
|
|
29
|
+
aria-labelledby="ha-shortcuts-title" data-labels='{{ _labels|tojson }}'>
|
|
30
|
+
<div class="ha-dialog__head">
|
|
31
|
+
<div>
|
|
32
|
+
<h2 class="ha-dialog__title" id="ha-shortcuts-title">{{ _("Keyboard shortcuts") }}</h2>
|
|
33
|
+
</div>
|
|
34
|
+
<form method="dialog">
|
|
35
|
+
<button class="ha-btn ha-btn--icon ha-btn--ghost ha-dialog__close" aria-label="{{ _('Close') }}">{{ icon('x') }}</button>
|
|
36
|
+
</form>
|
|
37
|
+
</div>
|
|
38
|
+
<div class="ha-shortcuts__list" data-ha-shortcuts-list></div>
|
|
39
|
+
<div class="ha-dialog__foot">
|
|
40
|
+
<label class="ha-switch">
|
|
41
|
+
<input type="checkbox" role="switch" checked data-testid="shortcuts-toggle">
|
|
42
|
+
{{ _("Single-key shortcuts") }}
|
|
43
|
+
</label>
|
|
44
|
+
</div>
|
|
45
|
+
</dialog>
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{%- from "components/_icons.html" import icon -%}
|
|
2
|
+
{%- set display_name = (verbose_name|default(model_name)) if field == '__str__' else (field_labels[field] if field_labels is defined and field in field_labels else field.replace('_', ' ').title()) -%}
|
|
3
|
+
{%- set filter_params -%}
|
|
4
|
+
{%- for key, value in active_filters.items() -%}&filter_{{ key }}={{ value }}{%- endfor -%}
|
|
5
|
+
{%- endset -%}
|
|
6
|
+
{%- if field == '__str__' -%}
|
|
7
|
+
<th class="ha-table-th" scope="col">{{ display_name }}</th>
|
|
8
|
+
{%- else -%}
|
|
9
|
+
<th class="ha-table-th{{ ' ha-num' if col_numeric|default(false) }}" scope="col"{% if sort_by == field %} aria-sort="{{ 'ascending' if sort_direction == 'asc' else 'descending' }}"{% endif %}>
|
|
10
|
+
<a href="{{- url_for(model_name|lower ~ '-list') }}?sort_by={{ field }}&sort_direction={{ 'desc' if sort_by == field and sort_direction == 'asc' else 'asc' }}&search={{ search_query }}&page={{ pagination.page }}{{ filter_params }}{{ filter_query|default('')|safe -}}"
|
|
11
|
+
hx-get="{{- url_for(model_name|lower ~ '-list') }}?sort_by={{ field }}&sort_direction={{ 'desc' if sort_by == field and sort_direction == 'asc' else 'asc' }}&search={{ search_query }}&page={{ pagination.page }}{{ filter_params }}{{ filter_query|default('')|safe -}}"
|
|
12
|
+
hx-target="#model-list"
|
|
13
|
+
hx-swap="outerHTML"
|
|
14
|
+
class="ha-table-sort-link"
|
|
15
|
+
data-testid="sort-{{ field }}">
|
|
16
|
+
{{- display_name -}}
|
|
17
|
+
{#- the direction is announced by aria-sort on the <th>; the arrow is decoration -#}
|
|
18
|
+
{%- if sort_by == field -%}
|
|
19
|
+
{{- icon('arrow-up' if sort_direction == 'asc' else 'arrow-down') -}}
|
|
20
|
+
{%- endif -%}
|
|
21
|
+
</a>
|
|
22
|
+
</th>
|
|
23
|
+
{%- endif -%}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{%- from "components/_icons.html" import icon -%}
|
|
2
|
+
{%- import "components/_row_access.html" as rows with context -%}
|
|
3
|
+
{%- set rt_labels = realtime_notification_models.get(model_name|lower) if realtime_notification_models is defined else none -%}
|
|
4
|
+
{%- set rt_hook = rt_labels is not none -%}
|
|
5
|
+
{%- set numeric_cols = namespace(names=[]) -%}
|
|
6
|
+
{%- for field in fields -%}
|
|
7
|
+
{%- set seen = namespace(numeric=false) -%}
|
|
8
|
+
{%- for row in items -%}{%- if not seen.numeric and row[field] is ha_decimal -%}{%- set seen.numeric = true -%}{%- endif -%}{%- endfor -%}
|
|
9
|
+
{%- if seen.numeric -%}{%- set numeric_cols.names = numeric_cols.names + [field] -%}{%- endif -%}
|
|
10
|
+
{%- endfor -%}
|
|
11
|
+
<div id="model-list" class="ha-table-wrapper"
|
|
12
|
+
{%- if rt_hook %} data-testid="realtime-hook" data-realtime-model="{{ model_name|lower }}" data-realtime-label="{{ rt_labels[0] }}" data-realtime-label-plural="{{ rt_labels[1] }}"{% endif %}>
|
|
13
|
+
{%- include "components/list_error.html" -%}
|
|
14
|
+
{%- if bulk_actions -%}
|
|
15
|
+
{%- include "components/bulk_toolbar.html" -%}
|
|
16
|
+
{%- endif -%}
|
|
17
|
+
<table class="ha-table" data-testid="list-table" aria-label="{% trans name=verbose_name|default(model_name) %}{{ name }} list{% endtrans %}">
|
|
18
|
+
<thead>
|
|
19
|
+
<tr class="ha-table-header">
|
|
20
|
+
{%- if bulk_actions -%}
|
|
21
|
+
<th class="ha-table-th ha-col-check" scope="col">
|
|
22
|
+
<label class="ha-check">
|
|
23
|
+
<input type="checkbox"
|
|
24
|
+
aria-label="{{ _('Select all rows on this page') }}"
|
|
25
|
+
data-testid="bulk-select-all"
|
|
26
|
+
onchange="var on = this.checked; this.closest('table').querySelectorAll('input[name=ids][form=bulk-action-form]').forEach(function (box) { box.checked = on; });" />
|
|
27
|
+
</label>
|
|
28
|
+
</th>
|
|
29
|
+
{%- endif -%}
|
|
30
|
+
{%- for field in fields -%}
|
|
31
|
+
{%- set col_numeric = field in numeric_cols.names -%}
|
|
32
|
+
{%- include "components/sortable_header.html" -%}
|
|
33
|
+
{%- endfor -%}
|
|
34
|
+
{%- if rows.end_cell -%}
|
|
35
|
+
<th class="ha-table-th ha-table-th-center ha-col-end" scope="col"><span class="ha-sr-only">{{ _("Actions") }}</span></th>
|
|
36
|
+
{%- endif -%}
|
|
37
|
+
</tr>
|
|
38
|
+
</thead>
|
|
39
|
+
{%- include "components/table_body.html" -%}
|
|
40
|
+
</table>
|
|
41
|
+
{%- include "components/pagination.html" -%}
|
|
42
|
+
{%- if rt_hook -%}
|
|
43
|
+
{%- include "components/toast.html" -%}
|
|
44
|
+
{%- endif -%}
|
|
45
|
+
</div>
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
{#- The list rows alone (filter library SDD): the fragment an HTMX filter
|
|
2
|
+
request swaps in place of the current <tbody>, keeping the header,
|
|
3
|
+
sidebar and pager where they are. Included by components/table.html.
|
|
4
|
+
|
|
5
|
+
Rows (st-v059-list-02): the title cell is a <th scope="row"> holding the
|
|
6
|
+
row link (data-testid="row-link") to the edit page for users who may
|
|
7
|
+
change the record, the detail page otherwise; CSS stretches it over the
|
|
8
|
+
whole row, and the checkbox, inline-edit cells, links inside cells and the
|
|
9
|
+
delete button sit above it.
|
|
10
|
+
|
|
11
|
+
Delete (st-v059-list-03): a ghost icon button, only for users who may
|
|
12
|
+
delete; it opens the shared confirm dialog (components/confirm_delete_dialog.html). -#}
|
|
13
|
+
{%- set numeric_cols = namespace(names=[]) -%}
|
|
14
|
+
{%- for field in fields -%}
|
|
15
|
+
{%- set seen = namespace(numeric=false) -%}
|
|
16
|
+
{%- for row in items -%}{%- if not seen.numeric and row[field] is ha_decimal -%}{%- set seen.numeric = true -%}{%- endif -%}{%- endfor -%}
|
|
17
|
+
{%- if seen.numeric -%}{%- set numeric_cols.names = numeric_cols.names + [field] -%}{%- endif -%}
|
|
18
|
+
{%- endfor -%}
|
|
19
|
+
{%- from "components/_icons.html" import icon -%}
|
|
20
|
+
{%- from "components/tooltip.html" import tip -%}
|
|
21
|
+
{%- from "components/pill.html" import pill -%}
|
|
22
|
+
{%- import "components/_row_access.html" as rows with context -%}
|
|
23
|
+
<tbody id="model-list-body" class="ha-table-body" data-testid="list-body">
|
|
24
|
+
{%- for item in items -%}
|
|
25
|
+
{%- set item_pk = item|ha_pk(pk_attr|default('id')) -%}
|
|
26
|
+
{%- set item_label = item._label if item._label is defined else item_pk -%}
|
|
27
|
+
{%- set row_url = url_for(rows.url_name, item_id=item_pk) if rows.target else none -%}
|
|
28
|
+
<tr class="ha-table-row{{ ' ha-table-row--link' if row_url }}" data-testid="list-row" data-pk="{{ item_pk }}">
|
|
29
|
+
{%- if bulk_actions -%}
|
|
30
|
+
<td class="ha-table-cell ha-col-check" data-label="{{ _('Select') }}">
|
|
31
|
+
<label class="ha-check">
|
|
32
|
+
<input type="checkbox" name="ids" value="{{ item_pk }}" form="bulk-action-form"
|
|
33
|
+
data-testid="bulk-checkbox" />
|
|
34
|
+
<span class="ha-sr-only">{% trans pk=item_pk %}Select {{ pk }}{% endtrans %}</span>
|
|
35
|
+
</label>
|
|
36
|
+
</td>
|
|
37
|
+
{%- endif -%}
|
|
38
|
+
{%- for field in fields -%}
|
|
39
|
+
{%- set cell_label = (verbose_name|default(model_name)) if field == '__str__' else (field_labels[field] if field_labels is defined and field in field_labels else field.replace('_', ' ').title()) -%}
|
|
40
|
+
{%- if list_editable and field in list_editable and field != pk_attr|default('id') -%}
|
|
41
|
+
{%- include "components/inline_cell.html" -%}
|
|
42
|
+
{%- else -%}
|
|
43
|
+
{%- set cell_pill = item[field]|ha_pill(item) -%}
|
|
44
|
+
{%- set cell_num = item[field] is ha_decimal -%}
|
|
45
|
+
{%- set cell_value -%}{%- if item[field] is none -%}<span class="ha-text-muted">—</span>{%- elif item._thumbs is defined and field in item._thumbs -%}{%- set thumb_src = item._thumbs[field] -%}{%- set thumb_label = cell_label -%}{%- set thumb_size = 40 -%}{%- include "components/thumbnail.html" -%}{%- elif cell_pill -%}{{- pill(cell_pill[0], cell_pill[1], testid='row-status') -}}{%- elif cell_num -%}{{- item[field]|ha_number -}}{%- else -%}{{- item[field]|ha_display -}}{%- endif -%}{%- endset -%}
|
|
46
|
+
{%- if field == rows.title_field -%}
|
|
47
|
+
<th class="ha-table-cell ha-table-title" scope="row" data-label="{{ cell_label }}">
|
|
48
|
+
{%- if row_url -%}
|
|
49
|
+
<a class="ha-row-link" href="{{ row_url }}" data-testid="row-link">
|
|
50
|
+
{{- cell_value -}}
|
|
51
|
+
{%- if item[field] is none %}<span class="ha-sr-only">{{ item_label }}</span>{% endif -%}
|
|
52
|
+
</a>
|
|
53
|
+
{%- else -%}
|
|
54
|
+
{{- cell_value -}}
|
|
55
|
+
{%- endif -%}
|
|
56
|
+
</th>
|
|
57
|
+
{%- else -%}
|
|
58
|
+
<td class="ha-table-cell{{ ' ha-num' if cell_num or field in numeric_cols.names }}{{ ' ha-cell-pill' if cell_pill }}" data-label="{{ cell_label }}">{{- cell_value -}}</td>
|
|
59
|
+
{%- endif -%}
|
|
60
|
+
{%- endif -%}
|
|
61
|
+
{%- endfor -%}
|
|
62
|
+
{%- if rows.end_cell -%}
|
|
63
|
+
<td class="ha-table-cell ha-table-cell-center ha-col-end" data-label="{{ _('Actions') }}">
|
|
64
|
+
<div class="ha-row-actions">
|
|
65
|
+
{%- if rows.may_delete -%}
|
|
66
|
+
{%- call tip(_('Delete')) -%}
|
|
67
|
+
<button type="button" class="ha-btn ha-btn--icon ha-btn--ghost ha-btn--danger-icon" data-testid="row-delete-btn"
|
|
68
|
+
aria-label="{% trans name=item_label %}Delete {{ name }}{% endtrans %}"
|
|
69
|
+
data-ha-confirm-delete="{{- url_for(model_name|lower ~ '-delete', item_id=item_pk) -}}"
|
|
70
|
+
data-ha-label="{{ item_label }}">
|
|
71
|
+
{{- icon('trash-2') -}}
|
|
72
|
+
</button>
|
|
73
|
+
{%- endcall -%}
|
|
74
|
+
{%- endif -%}
|
|
75
|
+
{%- if rows.open_cell and row_url -%}
|
|
76
|
+
<a class="ha-row-link ha-row-open" href="{{ row_url }}" data-testid="row-link"
|
|
77
|
+
aria-label="{% trans name=item_label %}Open {{ name }}{% endtrans %}">
|
|
78
|
+
{{- icon('chevron-right', 'ha-icon--mirror') -}}
|
|
79
|
+
</a>
|
|
80
|
+
{%- endif -%}
|
|
81
|
+
</div>
|
|
82
|
+
</td>
|
|
83
|
+
{%- endif -%}
|
|
84
|
+
</tr>
|
|
85
|
+
{%- endfor -%}
|
|
86
|
+
</tbody>
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
{#- A lazy-loaded thumbnail <img> with a file-icon fallback.
|
|
2
|
+
Inputs: thumb_src (URL), thumb_label (alt text), thumb_size (px, default 40).
|
|
3
|
+
The icon sits beside the image and replaces it if the thumbnail 404s. -#}
|
|
4
|
+
{%- from "components/_icons.html" import icon -%}
|
|
5
|
+
{%- set size = thumb_size|default(40) -%}
|
|
6
|
+
<img src="{{ thumb_src }}" alt="{{ thumb_label }}" loading="lazy" width="{{ size }}" height="{{ size }}"
|
|
7
|
+
class="ha-thumb ha-thumb--{{ size }}" data-testid="thumbnail"
|
|
8
|
+
onerror="this.hidden=true;this.nextElementSibling.hidden=false" /><span class="ha-thumb-fallback" hidden data-testid="thumbnail-fallback">{{ icon('file-text') }}</span>
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{#-
|
|
2
|
+
Live-notification toast and strings (static/js/realtime-status.js).
|
|
3
|
+
|
|
4
|
+
Included by components/table.html inside the list root, only when the model
|
|
5
|
+
has CRUD notifications enabled. Holds:
|
|
6
|
+
- a <template> the script clones into .ha-toast-container (role=status,
|
|
7
|
+
auto-dismissed by the script after 4 s);
|
|
8
|
+
- the localized message strings as JSON. Plural messages are rendered for
|
|
9
|
+
one representative number per CLDR plural category; the script picks
|
|
10
|
+
the category with Intl.PluralRules and fills the {placeholders}.
|
|
11
|
+
|
|
12
|
+
Context: model_name (unused here, the labels live on the list root).
|
|
13
|
+
-#}
|
|
14
|
+
{%- from "components/_icons.html" import icon -%}
|
|
15
|
+
{%- set rt_reps = {'zero': 0, 'one': 1, 'two': 2, 'few': 3, 'many': 11, 'other': 100} -%}
|
|
16
|
+
{%- set rt_summary = {} -%}
|
|
17
|
+
{%- set rt_people = {} -%}
|
|
18
|
+
{%- for rt_cat, rt_n in rt_reps.items() -%}
|
|
19
|
+
{%- set _ = rt_summary.update({rt_cat: ngettext('{actor} changed {count} {model}', '{actor} changed {count} {model}', rt_n)}) -%}
|
|
20
|
+
{%- set _ = rt_people.update({rt_cat: ngettext('{count} person', '{count} people', rt_n)}) -%}
|
|
21
|
+
{%- endfor -%}
|
|
22
|
+
<template data-realtime-toast-template>
|
|
23
|
+
<div class="ha-toast ha-alert-success" role="status" aria-live="polite" data-testid="realtime-toast">
|
|
24
|
+
{{ icon('info') }}
|
|
25
|
+
<div class="ha-toast-body"><span data-toast-text></span></div>
|
|
26
|
+
<button type="button" class="ha-toast-close" aria-label="{{ _('Close') }}">{{ icon('x', 'ha-icon-sm') }}</button>
|
|
27
|
+
</div>
|
|
28
|
+
</template>
|
|
29
|
+
<script type="application/json" data-realtime-strings>{{ {
|
|
30
|
+
'created': _('{actor} created {model} #{pk}'),
|
|
31
|
+
'deleted': _('{actor} deleted {model} #{pk}'),
|
|
32
|
+
'someone': _('Someone'),
|
|
33
|
+
'pill': _('List changed: refresh'),
|
|
34
|
+
'summary': rt_summary,
|
|
35
|
+
'people': rt_people,
|
|
36
|
+
}|tojson }}</script>
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{#-
|
|
2
|
+
Tooltip (design system: components/Popover): a short text label or reason
|
|
3
|
+
on hover, keyboard focus and tap; Esc hides it (static/js/primitives.js).
|
|
4
|
+
|
|
5
|
+
Usage:
|
|
6
|
+
{%- from "components/tooltip.html" import tip -%}
|
|
7
|
+
{%- call tip(_('Edit invoice')) %}<button class="ha-btn ha-btn--icon" aria-label="{{ _('Edit invoice') }}">…</button>{% endcall %}
|
|
8
|
+
{%- call tip(reason, id='tip-remind', describes=True) %}<button aria-disabled="true" aria-describedby="tip-remind">…</button>{% endcall %}
|
|
9
|
+
|
|
10
|
+
The caller block is the trigger. By default the tooltip repeats the
|
|
11
|
+
trigger's own label (aria-hidden); with describes=True it adds information
|
|
12
|
+
(a disabled reason, a full truncated value): it gets role="tooltip" and
|
|
13
|
+
the id the trigger points at with aria-describedby.
|
|
14
|
+
-#}
|
|
15
|
+
{%- macro tip(content, id=None, describes=False, placement='above', class='') -%}
|
|
16
|
+
<span class="ha-tip{{ ' ' ~ class if class }}">
|
|
17
|
+
{{- caller() -}}
|
|
18
|
+
<span class="ha-tooltip{{ ' ha-tooltip--below' if placement == 'below' }}"
|
|
19
|
+
{%- if describes %} role="tooltip"{% if id %} id="{{ id }}"{% endif %}{% else %} aria-hidden="true"{% endif %}>{{ content }}</span></span>
|
|
20
|
+
{%- endmacro -%}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{%- extends "form_layout.html" -%}
|
|
2
|
+
|
|
3
|
+
{%- block form_title -%}
|
|
4
|
+
{% trans name=verbose_name_lower|default(model_name) %}Create {{ name }}{% endtrans %}
|
|
5
|
+
{%- endblock -%}
|
|
6
|
+
|
|
7
|
+
{%- block form_attributes -%}
|
|
8
|
+
hx-post="{{- url_for(model_name|lower ~ '-create') -}}"
|
|
9
|
+
hx-target="#{{- model_name|lower -}}-form-body"
|
|
10
|
+
hx-swap="innerHTML"
|
|
11
|
+
{%- endblock -%}
|
|
12
|
+
|
|
13
|
+
{%- block form_body -%}
|
|
14
|
+
{%- include "components/error_summary.html" -%}
|
|
15
|
+
{%- if form.fieldset_groups|length > 1 or (form.fieldset_groups|length == 1 and form.fieldset_groups[0].name) -%}
|
|
16
|
+
{%- for group in form.fieldset_groups -%}
|
|
17
|
+
{%- include "components/fieldset.html" -%}
|
|
18
|
+
{%- endfor -%}
|
|
19
|
+
{%- else -%}
|
|
20
|
+
<div class="{{ form.layout_css_class }}" data-testid="form-fields">
|
|
21
|
+
{%- for field in form.fields -%}
|
|
22
|
+
{%- set widget = field.widget -%}
|
|
23
|
+
{%- include field.widget.template_path -%}
|
|
24
|
+
{%- endfor -%}
|
|
25
|
+
</div>
|
|
26
|
+
{%- endif -%}
|
|
27
|
+
{%- if inline_formsets -%}
|
|
28
|
+
{%- for inline in inline_formsets -%}
|
|
29
|
+
{%- include "components/inline_formset.html" -%}
|
|
30
|
+
{%- endfor -%}
|
|
31
|
+
{%- endif -%}
|
|
32
|
+
{%- endblock -%}
|
|
33
|
+
|
|
34
|
+
{%- block form_actions -%}
|
|
35
|
+
<div class="ha-form-actions">
|
|
36
|
+
<button type="submit" class="ha-btn ha-btn-primary">
|
|
37
|
+
{{ _("Create") }}
|
|
38
|
+
</button>
|
|
39
|
+
<a href="{{- url_for(model_name|lower ~ '-list') -}}" class="ha-cancel-link">
|
|
40
|
+
{{ _("Cancel") }}
|
|
41
|
+
</a>
|
|
42
|
+
</div>
|
|
43
|
+
{%- endblock -%}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
{%- extends "_base.html" -%}
|
|
2
|
+
|
|
3
|
+
{%- block title -%}Dashboard | {{ site_title | default("HyperAdmin") }}{%- endblock -%}
|
|
4
|
+
|
|
5
|
+
{%- block content -%}
|
|
6
|
+
<h1 class="ha-page-title">Welcome to HyperAdmin Dashboard</h1>
|
|
7
|
+
<p class="ha-text-muted">Use the sidebar to navigate through the administration sections.</p>
|
|
8
|
+
{%- endblock -%}
|