It's another year. Let's recognise that in the copyright assertion for the footer.
Adding the current state of experimentation with Tables2, before applying it to a whole bunch of views for real.
Bumped all the copyrights for files we've changed since the year clicked over.
Some extensive changes to make most of the "list" views work with Tables2. There are some nasty hacks that need sorting out:
- I need to work out how make Rower able to make something a "Delete" link or an "in use" warning.
- I need to figure out how to make Rower provide two completely different text/link pairs, based on whether we've got a bundle or not.
- Rower can't follow, say, KitRequest.item.room, so I've provided methods to do that instead. Gak.
Use subclassing for some of the tables, rather than having two different types. Also remove some dead code that was left over from early Tables2 experimentation.
Migrated the definition of Rower and available columns to the Model, and employed exclude instead of multiple tables. need to extend this to more views.
Further revision, moving the Rower creation into the Model, and filtering columns based on exclude parameter. That greatly simplifies the views and reduces the number of Table classes required.
Fix an unclosed div that caused problems on the show_item page.
Added make_tabler() to tabler.py, and applied that throughout views.py.
Added tables for show_item and show_person. The originals still need removing - I've left them in place until I wire up the selection and the emailing/creation of PersonLists.
Removed the id attribute from most tables - only needed where there's a select, and it needs to be unique anyway.
No longer including the kit pages for show_item - that's just done with table rendering.
Combined the Public/Private ItemPerson tables, as I'd missed those out before.
Don't make the table rendering spaceless, because it's easier to debug with the whitespace.
We don't need the selection on the person display, because we don't select people to email.
Fix bug: the selection checkbox needs to relate to the person, not to the itemperson.
Enabling the emailing using the new Tables2 rendering. Comment out the non-Table2 versions.
Render tags as Tables2.
Remove dead code.
Display a tag using Tables2.