Code

Opened 4 years ago

Closed 4 years ago

Last modified 3 years ago

#13037 closed (fixed)

Documentation missing for the form field-method ``css_classes``

Reported by: marcusf Owned by: nobody
Component: Documentation Version: 1.2-beta
Severity: Keywords: forms
Cc: gabrielhurley Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: yes
Easy pickings: UI/UX:

Description

When outputting forms without using any of the as_*() methods, it's really handy to know about the css_classes-method on form fields. But it seems like it's not documented anywhere.

I've added a small patch (which probably contains some grammatical errors) that gives a brief description of the method.

Attachments (1)

css_classes_documentation.diff (553 bytes) - added by marcusf 4 years ago.

Download all attachments as: .zip

Change History (4)

Changed 4 years ago by marcusf

comment:1 Changed 4 years ago by gabrielhurley

  • Cc gabrielhurley added
  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement set
  • Triage Stage changed from Unreviewed to Accepted

The method should definitely be documented, but the current patch has typos and the language is a bit confusing. I would also suggest documenting it with the .. method syntax.

comment:2 Changed 4 years ago by russellm

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

(In [12707]) Fixed #13037 -- Added documentation for the css_classes() helper class. Thanks to marcusf for the report.

comment:3 Changed 3 years ago by jacob

  • milestone 1.2 deleted

Milestone 1.2 deleted

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


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

 
Note: See TracTickets for help on using tickets.