Commit graph

62 commits

Author SHA1 Message Date
Lance Edgar 8bf292ebac Remove some more edbob cruft. 2014-11-18 23:00:24 -06:00
Lance Edgar 9806c7a0a2 Add DateTimeFieldRenderer to show human-friendly timestamps.
This leverages the `humanize` package to do so.  Unfortunately that doesn't
seem to handle tz-aware times though, so we may need to revisit that at
some point...?
2014-11-18 19:37:52 -06:00
Lance Edgar 2326482bb6 Make GPCFieldRenderer display check digit separate from main barcode data.
It is presumed that this is a good idea in general; I guess we'll see.
2014-11-18 19:36:55 -06:00
Lance Edgar dfb5e83c7e Add support for Product.not_for_sale flag.
This involved a couple of ancillary changes:

* The price field renderer will not display a price for products marked not
  for sale.

* The "grid" class now allows specifying a custom callable to provide
  additional CSS class for table rows.

* The products grid uses this to add a "not-for-sale" class to table rows
  for products which are marked thusly.
2014-09-10 19:38:49 -07:00
Lance Edgar d838203ec7 Changed UserFieldRenderer to leverage User.display_name. 2013-11-22 14:39:47 -08:00
Lance Edgar 0ac0ef4079 Don't sort values in EnumFieldRenderer.
The dictionaries used to supply enumeration values should be `OrderedDict`
instances if sorting is needed.
2013-10-04 11:37:47 -07:00
Lance Edgar 3070c280cc Made EnumFieldRenderer a proper class. 2013-09-27 08:16:22 -07:00
Lance Edgar a11b8d9ff2 Allow overriding form class/factory for CRUD views. 2013-09-21 17:09:10 -07:00
Lance Edgar 9f8a3d3a5c Refactored AutocompleteFieldRenderer.
Also improved some organization of renderers.
2013-09-21 15:02:55 -07:00
Lance Edgar 73686b822f Added forms.alchemy module and changed CRUD view to use it. 2013-09-10 09:45:01 -07:00
Lance Edgar 2a50e704ef Major overhaul for standalone operation.
This removes some of the `edbob` reliance, as well as borrowing some templates
and styling etc. from Dtail.
2013-09-01 15:31:50 -07:00
Lance Edgar 40efd8a3bc Rebranded to Tailbone. 2013-09-01 08:18:37 -07:00