| 1 | = Various hacks to alter Ticket form behavior = |
| 2 | |
| 3 | == Description == |
| 4 | |
| 5 | Trac in 0.11 provided us with this incredibly powerful and terrible bit of dark power -- the ability to apply Genshi Transformers to the templates before they hit the user. The power is awesome; and with this plugin I have abused that power for evil purposes. |
| 6 | |
| 7 | And there are plans for more evil in the future! |
| 8 | |
| 9 | Basically, the plugin adds the ability to tweak any of the Ticket fields-- be they custom or standard-- in the following ways: |
| 10 | * disable - The field won't be editable. |
| 11 | * hide - The field will simply be invisible. |
| 12 | * label - Rename a field... in particular one of the built-in fields. |
| 13 | * notice - Add a small notice below a field. |
| 14 | * tip - Provide a pretty java-script tooltip when the control overs over the field. (Useful, for example, to give people a reminder for the difference between 'priority' and 'severity' |
| 15 | * permission - Set a permission that is required to edit that specific field. This is particularly useful in an environment where you let ''users'' set severity-- so they need TICKET_CHGPROP-- but you only want certain people to be able to edit the Priority. |
| 16 | |
| 17 | The plugin also lets you define arbitrary permissions, say, MASTER_OF_PRIORITIES, if you want to require someone to have such a custom permission to edit a certain field. |
| 18 | |
| 19 | More evil hacks to come-- one day, I'll make it so the fields available in COMPONENT (For example) will be different depending on what Ticket Type you choose. |
| 20 | |
| 21 | P.S. I am emphasizing the 'evil hackitude' of this because it seems terribly unclean and a bad idea to abuse. But it works for me! :) |
| 22 | |
| 23 | == Bugs/Feature Requests == |
| 24 | |
| 25 | Existing bugs and feature requests for BlackMagicTicketTweaksPlugin are |
| 26 | [report:9?COMPONENT=BlackMagicTicketTweaksPlugin here]. |
| 27 | |
| 28 | If you have any issues, create a |
| 29 | [http://trac-hacks.org/newticket?component=BlackMagicTicketTweaksPlugin&owner=ixokai new ticket]. |
| 30 | |
| 31 | == Download == |
| 32 | |
| 33 | Download the zipped source from [download:blackmagictickettweaksplugin here]. |
| 34 | |
| 35 | == Source == |
| 36 | |
| 37 | You can check out BlackMagicTicketTweaksPlugin from [http://trac-hacks.org/svn/blackmagictickettweaksplugin here] using Subversion, or [source:blackmagictickettweaksplugin browse the source] with Trac. |
| 38 | |
| 39 | == Example == |
| 40 | |
| 41 | {{{ |
| 42 | [blackmagic] |
| 43 | permissions = MASTER_OF_PERMISSIONS |
| 44 | tweaks = severity, priority |
| 45 | priority.tip = The priority is the Project-defined importance of the issue, and in general the order in which thigns will tend to be done. |
| 46 | severity.tip = The severity is how important this issue is to the customer or you. |
| 47 | priority.permission = MASTER_OF_PERMISSIONS |
| 48 | }}} |
| 49 | |
| 50 | == Recent Changes == |
| 51 | |
| 52 | [[ChangeLog(blackmagictickettweaksplugin, 3)]] |
| 53 | |
| 54 | == Author/Contributors == |
| 55 | |
| 56 | '''Author:''' [wiki:ixokai] [[BR]] |
| 57 | '''Contributors:''' |