Django

Code

Ticket #2596 (closed: wontfix)

Opened 2 years ago

Last modified 6 months ago

[patch] Adding rows, cols and lenght attributes for text fields

Reported by: norvegh Assigned to: adrian
Component: Admin interface Version: 0.95
Keywords: Cc: hv@tbz-pariv.de
Triage Stage: Unreviewed Has patch: 1
Needs documentation: 0 Needs tests: 0
Patch needs improvement: 0

Description

There have been some suggestions before to implement the rows, cols and length attributes for text fields that would control the size of the textboxes on the admin interface. The supplied patch implements the following new paramters for text fields:

form_type: can be either 'input' or 'textarea', it controls whether an input box or a textarea is used for rendering this field in the admin interface
form_length: the length of the input box
form_rows: the rows parameter for the textarea box
form_cols: the cols parameter for the textarea box

Attachments

field_form_parameters.patch (2.5 kB) - added by norvegh on 08/23/06 11:09:59.
patch for the extra field parameters

Change History

08/23/06 11:09:59 changed by norvegh

  • attachment field_form_parameters.patch added.

patch for the extra field parameters

08/23/06 11:12:06 changed by anonymous

  • summary changed from Adding rows, cols and lenght attributes for text fields to [patch] Adding rows, cols and lenght attributes for text fields.

09/22/06 07:12:18 changed by anonymous

  • status changed from new to closed.
  • resolution set to wontfix.

When this has been raised on the mailing lists in the past, we have generally asked that somebody comes up with a better way of specifying all this presentation information than just putting it in as more and more attributes in the model. Although there already some presentation attributes on fields, we would like to stop putting more in.

So there is a bigger problem that needs solving: how to specify default presentation style for models without polluting the field definitions themselves.

09/22/06 07:48:09 changed by mtredinnick

Sorry, that resolution decision was made by me. Was accidently not logged in.

11/16/07 03:44:02 changed by Thomas Güttler <hv@tbz-pariv.de>

  • cc set to hv@tbz-pariv.de.

Add/Change #2596 ([patch] Adding rows, cols and lenght attributes for text fields)




Change Properties
Action