archivebox.core.widgets
Module Contents
Classes
A widget that renders tags as clickable pills with inline editing. |
|
Render URL allowlist / denylist controls with same-domain autofill. |
|
Inline version of TagEditorWidget for use in list views. Includes AJAX save functionality for immediate persistence. |
API
- class archivebox.core.widgets.TagEditorWidget(attrs=None, snapshot_id=None)[source]
Bases:
django.forms.WidgetA widget that renders tags as clickable pills with inline editing.
Displays existing tags alphabetically as styled pills with X remove button
Text input with HTML5 datalist for autocomplete suggestions
Press Enter or Space to create new tags (auto-creates if doesn’t exist)
Uses AJAX for autocomplete and tag creation
Initialization
- class archivebox.core.widgets.URLFiltersWidget(attrs=None, *, source_selector='textarea[name="url"]')[source]
Bases:
django.forms.WidgetRender URL allowlist / denylist controls with same-domain autofill.
Initialization
- class archivebox.core.widgets.InlineTagEditorWidget(attrs=None, snapshot_id=None, editable=True)[source]
Bases:
archivebox.core.widgets.TagEditorWidgetInline version of TagEditorWidget for use in list views. Includes AJAX save functionality for immediate persistence.
Initialization