Changeset 4156

Show
Ignore:
Timestamp:
08/20/08 07:30:07 (5 months ago)
Author:
cbalan
Message:

UserManagerPlugin: - refs #3217

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • usermanagerplugin/0.11/tracusermanager/templates/admin_um_profile.html

    r4155 r4156  
    4040                                                <textarea name="um_profile_${field}" id="um_profile_${field}" cols="${attributes.cols}" rows="${attributes.rows}">${user_manager.user[field]}</textarea> 
    4141                                        </py:when> 
    42                                         <py:when test="attributes.type=='multichecks'"
     42                                        <py:when test="attributes.type=='multichecks'" py:with="user_checked_values = user_manager.user[field] and user_manager.user[field].split('|') or []"
    4343                                                <label >${attributes.label}:</label> 
    4444                                                <span py:for="option in attributes['options']" for="um_profile_${field}_${option}"> 
    45                                                         <input type="checkbox" name="um_profile_${field}" id="um_profile_${field}_${option}" checked="${option in str(user_manager.user[field]) and 'cheched' or None}"  value="${option}"/> 
     45                                                        <input type="checkbox" name="um_profile_${field}" id="um_profile_${field}_${option}" checked="${option in user_checked_values and 'cheched' or None}"  value="${option}"/> 
    4646                                                        ${option} 
    4747                                                </span>