Opened 13 years ago

Closed 13 years ago

Last modified 12 years ago

#455 closed enhancement (wontfix)

extend formfields.FormWrapper for a readonly mode

Reported by: hugo <gb@…> Owned by: Adrian Holovaty
Component: Core (Other) Version:
Severity: normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


It would be cool if the FormWrapper class would accept an optional parameter readonly. If that parameter is True, the FormWrapper shouldn't generate input statements but just the stuff that would go into the value="" attribute of the input statement. This would allow to use the same template for editing data and for showing data if the logged in user doesn't have the right to edit that dataset - and all this without the need of an additional template or too much changes to the editing template.

Change History (1)

comment:1 Changed 13 years ago by Adrian Holovaty

Resolution: wontfix
Status: newclosed
Note: See TracTickets for help on using tickets.
Back to Top