Changeset 4156 for usermanagerplugin
- Timestamp:
- 08/20/08 07:30:07 (3 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
usermanagerplugin/0.11/tracusermanager/templates/admin_um_profile.html
r4155 r4156 40 40 <textarea name="um_profile_${field}" id="um_profile_${field}" cols="${attributes.cols}" rows="${attributes.rows}">${user_manager.user[field]}</textarea> 41 41 </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 []"> 43 43 <label >${attributes.label}:</label> 44 44 <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}"/> 46 46 ${option} 47 47 </span>
