Changeset 279

Show
Ignore:
Timestamp:
04/02/07 14:32:42 (2 years ago)
Author:
tim
Message:

added a div wrapper to the radiochoice widget

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/formal/widget.py

    r278 r279  
    438438    A list of options in the form of radio buttons. 
    439439 
    440     <input type="radio" ... value="..."/><label>...</label><br /> 
    441     <input type="radio" ... value="..."/><label>...</label><br /> 
     440    <div class="radiobutton"><input type="radio" ... value="..."/><label>...</label></div> 
    442441    """ 
    443442    implements( iformal.IWidget ) 
     
    452451            if disabled: 
    453452                tag = tag(disabled='disabled') 
    454             return tag, ' ', T.label(for_=cssid)[itemLabel], T.br 
     453            return T.div(class_='radiobutton')[ tag, T.label(for_=cssid)[itemLabel] ] 
    455454 
    456455        def renderOptions(ctx, data):