Modify

Opened 16 years ago

Closed 12 years ago

Last modified 12 years ago

#4668 closed defect (fixed)

admin panel for setting conditional fields

Reported by: Shane Caraveo Owned by: Ryan J Ollos
Priority: normal Component: CondFieldsPlugin
Severity: normal Keywords:
Cc: Ryan J Ollos Trac Release: 0.11

Description

taking the general idea from the TicketExtPlugin, I've added an admin panel for configuring the plugin. I've also fixed a couple small items, and added a new configuration variable: show_default (default: false). The old default is to hide all fields and only show those configured. The new default is to show all fields and hide those configured. The new config variable allows you to switch back to the old behavior.

full zip of plugin to follow.

Attachments (6)

condfieldsplugin.zip (6.5 KB) - added by Shane Caraveo 16 years ago.
condfieldsplugin.2.zip (5.1 KB) - added by Shane Caraveo 16 years ago.
updated version that works correctly
condfieldsplugin.3.zip (6.4 KB) - added by Shane Caraveo 16 years ago.
additional fix so it works with the autocomplete plugin
condfieldsplugin.4.zip (6.4 KB) - added by Shane Caraveo 16 years ago.
another fix for dealing with the table in view mode
condfields.zip (5.8 KB) - added by 5past10 16 years ago.
fix for IE
condfields-patched.tgz (5.1 KB) - added by Sebastián Zaffarano 15 years ago.
Patch for textareas custom fields bug

Download all attachments as: .zip

Change History (19)

Changed 16 years ago by Shane Caraveo

Attachment: condfieldsplugin.zip added

comment:1 Changed 16 years ago by Shane Caraveo

btw, this is based on the 0.11 branch.

Changed 16 years ago by Shane Caraveo

Attachment: condfieldsplugin.2.zip added

updated version that works correctly

Changed 16 years ago by Shane Caraveo

Attachment: condfieldsplugin.3.zip added

additional fix so it works with the autocomplete plugin

Changed 16 years ago by Shane Caraveo

Attachment: condfieldsplugin.4.zip added

another fix for dealing with the table in view mode

comment:2 Changed 16 years ago by 5past10

Plugin does not work with IE. zip of fixed code added

Changed 16 years ago by 5past10

Attachment: condfields.zip added

fix for IE

Changed 15 years ago by Sebastián Zaffarano

Attachment: condfields-patched.tgz added

Patch for textareas custom fields bug

comment:3 Changed 15 years ago by Sebastián Zaffarano

I've uploaded a small patch (condfields-patched.tgz) that fixes a problem with textarea fields: displays textareas in a single column per row, not in two.

coderanger: can you upload all these changes to svn (admin panel, ie explorer fixes, etc.).?

comment:4 Changed 15 years ago by Ryan J Ollos

Cc: Ryan J Ollos added; anonymous removed

comment:5 Changed 15 years ago by anonymous

the patch doesnt work for me... i copied the template into my global template folder, clicked some ticketfields to hide in different tickettypes but there are still all fields shown on any type...

using trac 0.11.4

comment:6 Changed 15 years ago by anonymous

I'm trying to install this plugin, but I can't get it to show up in my admin panel under "plugins".

All I did was grab the source and install it globally, but Trac doesn't pick it up for some reason. I also tried making an egg and sticking it into the local plugin directory of the trac environment, but it still didn't show up in the plugin listing.

comment:7 Changed 15 years ago by anonymous

Is this supposed to be standalone, or installed on top of the original 0.11 CondFields Plugin?

comment:8 in reply to:  6 Changed 15 years ago by anonymous

Replying to anonymous:

I'm trying to install this plugin, but I can't get it to show up in my admin panel under "plugins".

All I did was grab the source and install it globally, but Trac doesn't pick it up for some reason. I also tried making an egg and sticking it into the local plugin directory of the trac environment, but it still didn't show up in the plugin listing.

The original Condfields plugin does show up.

comment:9 Changed 15 years ago by anonymous

Somehow, it ended up working after cleanly reinstalling trac.

One bug-> the admin panel does not correctly display the current configuration for types that have spaces in their names, e.g. selecting type "Number of Lines" will not load the current configuration. However, submitting changes works fine.

comment:10 in reply to:  6 Changed 12 years ago by Ryan J Ollos

Owner: changed from Noah Kantrowitz to Ryan J Ollos
Status: newassigned

Replying to anonymous:

I'm trying to install this plugin, but I can't get it to show up in my admin panel under "plugins".

If you are still having trouble, please reply here and I will try to help you sort it out.

comment:11 Changed 12 years ago by Ryan J Ollos

(In [12825]) Refs #4668: Added admin panel for configuration.

Initial patch by mixedpuppy, with iterations by 5past10 and szaffarano.

Note: this has been lightly tested by the committer. Please open new ticket to report any problems you find.

comment:12 Changed 12 years ago by Ryan J Ollos

Resolution: fixed
Status: assignedclosed

mixedpuppy: if you'd like me to add your name/email address to the copyright in the file header, please send along the info or a patch. Thanks.

comment:13 Changed 12 years ago by Ryan J Ollos

(In [12826]) Refs #4668: Files that should have been added in [12825], including a COPYING file with the license text.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Ryan J Ollos.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.