Modify

Opened 6 years ago

Closed 18 months ago

Last modified 18 months ago

#4668 closed defect (fixed)

admin panel for setting conditional fields

Reported by: mixedpuppy Owned by: rjollos
Priority: normal Component: CondFieldsPlugin
Severity: normal Keywords:
Cc: rjollos 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 mixedpuppy 6 years ago.
condfieldsplugin.2.zip (5.1 KB) - added by mixedpuppy 6 years ago.
updated version that works correctly
condfieldsplugin.3.zip (6.4 KB) - added by mixedpuppy 6 years ago.
additional fix so it works with the autocomplete plugin
condfieldsplugin.4.zip (6.4 KB) - added by mixedpuppy 6 years ago.
another fix for dealing with the table in view mode
condfields.zip (5.8 KB) - added by 5past10 5 years ago.
fix for IE
condfields-patched.tgz (5.1 KB) - added by szaffarano 5 years ago.
Patch for textareas custom fields bug

Download all attachments as: .zip

Change History (19)

Changed 6 years ago by mixedpuppy

comment:1 Changed 6 years ago by mixedpuppy

btw, this is based on the 0.11 branch.

Changed 6 years ago by mixedpuppy

updated version that works correctly

Changed 6 years ago by mixedpuppy

additional fix so it works with the autocomplete plugin

Changed 6 years ago by mixedpuppy

another fix for dealing with the table in view mode

comment:2 Changed 5 years ago by 5past10

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

Changed 5 years ago by 5past10

fix for IE

Changed 5 years ago by szaffarano

Patch for textareas custom fields bug

comment:3 Changed 5 years ago by szaffarano

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 5 years ago by rjollos

  • Cc rjollos added

comment:5 Changed 5 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 follow-ups: Changed 5 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 5 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 5 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 5 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 18 months ago by rjollos

  • Owner changed from coderanger to rjollos
  • Status changed from new to assigned

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 18 months ago by rjollos

(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 18 months ago by rjollos

  • Resolution set to fixed
  • Status changed from assigned to closed

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 18 months ago by rjollos

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

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.