Changeset 6272
- Timestamp:
- 07/01/10 16:05:42 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TI12-security/trunk/NDGSecurity/python/ndg_security_server/ndg/security/server/wsgi/openid/provider/renderinginterface/genshi/templates/decide.html
r6245 r6272 35 35 <tr py:for="i in axRequestedAttr.values()"> 36 36 <td>${i.alias or i.type_uri}</td> 37 <td>${axFetchResponse.getSingle(i.type_uri, default="error - item not available")}</td>38 37 <?python 38 defaultVal = "<information not available from this site>" 39 attrVal = axFetchResponse.getSingle(i.type_uri, default=defaultVal) 40 39 41 # Disable checkbox if attribute is required and not optional 40 42 nameAttr = 'ax.%s' % i.alias … … 43 45 else: 44 46 inputAttr = {'id': i.alias, 'name': nameAttr, 'value': i.type_uri} 47 48 if attrVal == defaultVal: 49 inputAttr.update({'disabled': 'disabled'}) 50 else: 51 inputAttr.update({'checked': "checked"}) 45 52 ?> 46 <!-- hidden input is required to force the setting of disabled checkbox values --> 47 <td><input type="checkbox" checked="checked" py:attrs="inputAttr"/> 53 <td>${attrVal}</td> 54 <!-- hidden input is required to force the setting of disabled checkbox values --> 55 <td><input type="checkbox" py:attrs="inputAttr"/> 48 56 <input py:if="i.required" type="hidden" value="${i.type_uri}" name="$nameAttr"/></td> 49 57 </tr>
Note: See TracChangeset
for help on using the changeset viewer.