Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a setting in settings.py to define a custom edit icon #4

Closed
blasferna opened this issue Jun 29, 2023 · 1 comment
Closed

Add a setting in settings.py to define a custom edit icon #4

blasferna opened this issue Jun 29, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@blasferna
Copy link
Owner

Currently, the icon for the edit function is hard-coded. This limits the ability for users to personalize their interface based on their specific needs.

Add a new setting in settings.py, say CRIPSY_FORMSET_MODAL. This will enable users to define specific parameters of the package via a dictionary configuration.

Example

# In settings.py
CRISPY_FORMSET_MODAL = {
    "edit_icon": {
        'bootstrap4': "...",
        'tailwind': "...",
        'bulma': "...",
        'bootstrap5': "..."
    }
}
@blasferna blasferna added the enhancement New feature or request label Jun 29, 2023
@blasferna
Copy link
Owner Author

Closed because #12 implements a better approach

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant