-
Notifications
You must be signed in to change notification settings - Fork 426
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
Bootstrap.html template doesn't include attrs #335
Comments
@ralgozino You are right, thanks for reporting. If you are willing to fix it, you are very welcome. If you do, you might also want to have a look to some other issues with the templates I made an issue for today, #334. |
The problem with the
which doesn't work. Maybe we should be able to add attrs for a certain class in the template, which would require a custom tag as passing arguments to |
Hello @jieter ! I'm starting my honeymoon this saturday, so I'm short of time lately and be out of town for two weeks. I'll give it a shot in my return and try to fix this. |
@ralgozino good for you, enjoy! |
What about doing the same as the default theme, I mean, you have to add the This way would be consistent with the "paleblue" theme in my opinion. |
Would appreciate that! |
@ralgozino any news on opening the PR? Looking forward to it. |
I've just sent the PR, first time ever so please excuse if it isn't righr. Please let me know what you think. Sorry for the delay! |
@jieter with the boostrap.htlm I propose setting by default the "table" class and letting the user custimized it further, like this: <link rel="stylesheet" href="{{ STATIC_URL }}django_tables2/themes/paleblue/css/screen.css" /> And then, if the user wants an striped bootstrap table, he should add:
With the paleblue theme, I'm not sure.. maybe we should use the template attribute like with bootstrap? |
Hello there!
I was trying to use the bootstrap.html table template, but I found that trying to add a class to the table, let's say the
"small"
class setting theattr
in theMeta
class doesn't end added in the final html.Let me know if I can help.
Cheers!
The text was updated successfully, but these errors were encountered: