-
Notifications
You must be signed in to change notification settings - Fork 8
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
PR for issue 28 #33
PR for issue 28 #33
Conversation
…ap v4 and v5. Fixes djk2#28.
...column_shifter/templates/django_tables2_column_shifter/_partials/bootstrap4_table_block.html
Show resolved
Hide resolved
...go_tables2_column_shifter/templates/django_tables2_column_shifter/bootstrap4-responsive.html
Show resolved
Hide resolved
...column_shifter/templates/django_tables2_column_shifter/_partials/bootstrap4_table_block.html
Show resolved
Hide resolved
...column_shifter/templates/django_tables2_column_shifter/_partials/bootstrap4_table_block.html
Show resolved
Hide resolved
...column_shifter/templates/django_tables2_column_shifter/_partials/bootstrap4_table_block.html
Show resolved
Hide resolved
I have also one general request. On this occasion you can also change a button layout from horizontal to vertical. |
Can you also increase the version of library in |
Co-authored-by: K2 <[email protected]>
Co-authored-by: K2 <[email protected]>
Co-authored-by: K2 <[email protected]>
Co-authored-by: K2 <[email protected]>
Should be all resolved now. |
Can you fix the tests?
To code I do not have more comments. |
That's pretty interesting. I'm relying on a template from I'm pretty unsure how to proceed. Any advice? |
Give me some time to consider how solve it. |
Hi.
|
Co-authored-by: K2 <[email protected]>
Co-authored-by: K2 <[email protected]>
Co-authored-by: K2 <[email protected]>
Co-authored-by: K2 <[email protected]>
Co-authored-by: K2 <[email protected]>
Co-authored-by: K2 <[email protected]>
Co-authored-by: K2 <[email protected]>
…es2-column-shifter # Conflicts: # CHANGELOG.rst # README.rst # django_tables2_column_shifter/tables.py # django_tables2_column_shifter/templates/django_tables2_column_shifter/_partials/bootstrap4_table_block.html # django_tables2_column_shifter/templates/django_tables2_column_shifter/bootstrap4-responsive.html # django_tables2_column_shifter/tests/test_base.py # django_tables2_column_shifter/tests/urls.py
@@ -12,7 +12,9 @@ | |||
ColumnShiftTableBootstrap2, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please import dt_version
from django_tables2_column_shifter.tables
you added it there.
'max_dt_version': None, | ||
'template_name': 'django_tables2_column_shifter/bootstrap5-responsive.html', | ||
'table_clsss': ColumnShiftTableBootstrap5Responsive, | ||
}, | ||
] | ||
|
||
dt_version = tuple(map(int, tables.__version__.split(".")[:2])) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you remove dt_version
from here and import it from django_tables2_column_shifter.tables
at top of file.
After yesterday changes we already have dt_version
in tables
Moreover, now you need version containing 3 digits instead 2.
…nor and sub-minor version.
) | ||
from django_tables2_column_shifter.tables import dt_version |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Put this import between 11 and 12 line.
Above package tables
is already imported from django_tables2_column_shifter
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Your absolutely right!
I wrote a proof of concept for implementing responsive tables for Bootstrap v4 and v5. Basically the goal was to use another base template from
django-tables2
. To make it DRY I needed to introduce some partials and move some of the code out of the templates for re-use.Roughly tested it in my projects and it completely does fulfill my needs.