You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* triv: added Tabulator options & updated btn-only-icon styles
* feat: added option to have prefix and suffix on field
* feat: added JS to scroll to field with error
* fix: fixed not working modal 500 error
* feat: added JS to scroll to field with error -> open collapse if presented
* feat: enhance form widgets with input prefix and suffix support; update CSS selectors for label handling
* feat: update button styles in ArticleAdmin and add regression tests for modal media serialization
* triv: bump up version
|[Form Widgets](#form-widgets)|`SBAdminTextTagsWidget`, input prefix/suffix on text and number widgets, `Meta.widgets` initialization, required select placeholders, `SBAdminJsonEditorWidget` for schema-driven JSON |
16
16
|[Admin Registration](#admin-registration)|`@admin.register` with `sb_admin_site`, `sbadmin_list_filter` vs `list_filter`|
17
17
|[Selection Actions](#selection-actions-bulk-actions)| Modal forms for bulk operations, `ListActionModalView`, confirmation modals, `SBAdminCustomAction` params, per-action permissions, success/error handling |
18
18
|[Row Actions](#row-actions-per-row-list-buttons)| Per-row icon buttons with `SBAdminRowAction`, `RowActionModalView`, and row-aware enablement |
@@ -145,6 +145,24 @@ class ArticleAdmin(SBAdmin):
145
145
|`filter_disabled`| bool | Disable filtering for this field |
146
146
|`python_formatter`| callable | Format value: `(obj_id, value) -> formatted_value`|
147
147
|`list_visible`| bool | Show/hide column in list |
@@ -1078,6 +1096,37 @@ class ArticleTagNamesForm(SBAdminBaseFormInit, forms.Form):
1078
1096
- Duplicate values are prevented client-side.
1079
1097
- Works with dynamically-added rows in SBAdmin formsets and wizard formsets.
1080
1098
1099
+
### Input prefix and suffix (text and number widgets)
1100
+
1101
+
Pass optional `prefix` and/or `suffix` strings to `SBAdminTextInputWidget` or `SBAdminNumberWidget` (e.g. currency, units, URL stem). Omit both for a normal input.
1102
+
1103
+
```python
1104
+
from django import forms
1105
+
1106
+
from django_smartbase_admin.admin.admin_base import SBAdminBaseForm
1107
+
from django_smartbase_admin.admin.widgets import (
0 commit comments