Opened 9 years ago

Closed 9 years ago

Last modified 7 years ago

#2596 closed enhancement (wontfix)

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

Reported by: norvegh Owned by: adrian
Component: contrib.admin Version: 0.95
Severity: normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

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 (1)

field_form_parameters.patch (2.5 KB) - added by norvegh 9 years ago.
patch for the extra field parameters

Download all attachments as: .zip

Change History (6)

Changed 9 years ago by norvegh

patch for the extra field parameters

comment:1 Changed 9 years ago 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

comment:2 Changed 9 years ago by anonymous

  • Resolution set to wontfix
  • Status changed from new to closed

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.

comment:3 Changed 9 years ago by mtredinnick

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

comment:4 Changed 8 years ago by Thomas Güttler <hv@…>

  • Cc hv@… added

comment:5 Changed 7 years ago by guettli

  • Cc hv@… removed
Note: See TracTickets for help on using tickets.
Back to Top