Comments (3)
Ok this is confirmed
from crispy-forms-foundation.
What's happening:
crispy_forms_foundation
is setting the styles as class variables:
class Button(crispy_forms_layout.Button): # buttons.py 90
input_type = 'button'
field_classes = 'button'
then crispy_forms
is saying thanks, but no thanks, with its hard-coded, un-subclassable Button
class:
class Button(BaseInput): # crispy_forms/layout.py
input_type = 'button'
def __init__(self, *args, **kwargs):
self.field_classes = 'button' if get_template_pack() == 'uni_form' else 'btn no-thank-you'
super(Button, self).__init__(*args, **kwargs)
I think the solution is to subclass crispy_forms_layout.BaseInput
directly insead of crispy_forms_layout.Button
.
from crispy-forms-foundation.
Nice, it make sense, i have to see why i inherited from Button, maybe an old stupid choice.
from crispy-forms-foundation.
Related Issues (20)
- Form filefield is a bit ugly HOT 3
- TemplateSyntaxError at /login/ crispy tag's template_pack argument should be in ('bootstrap', 'uni_form', 'bootstrap3') HOT 10
- Foundation 6 Support HOT 10
- New layout elements to make real <button> ?
- Django 1.11 support? HOT 3
- Django 2.0 error HOT 5
- "required" added for FileFields even when there's already a file HOT 1
- Respect helper.field_template in templates
- Including the template for checkboxselectmultiple.html in the page means it cannot be overridden in the form HOT 1
- Possibility to add "data-" elements into <div> HOT 1
- Django 3 support! HOT 1
- Missing row.html and column.html templates in 0.8.0 HOT 3
- Django 4.0 support HOT 1
- sequence item 1: expected str instance, BoundField found HOT 4
- TypeError: 'Pointer' object is not subscriptable with crispy-forms>=2.0 HOT 2
- Foundation 5 HOT 4
- Foundtion 5 alert boxes errors HOT 1
- templates / foundation-5 / field.strict.html HOT 1
- Add Python 3 support HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from crispy-forms-foundation.