From: <ru...@us...> - 2003-06-09 15:56:37
|
Update of /cvsroot/plone/CMFPlone/skins/plone_forms In directory sc8-pr-cvs1:/tmp/cvs-serv21103/skins/plone_forms Modified Files: prefs_user_management_individual_form.pt Log Message: made some notes about prefs_user_manage and how it operates w/ boolean finish prefs_user_management_individual_form.pt mostly.. needs to be made generic Index: prefs_user_management_individual_form.pt =================================================================== RCS file: /cvsroot/plone/CMFPlone/skins/plone_forms/prefs_user_management_individual_form.pt,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** prefs_user_management_individual_form.pt 9 Jun 2003 08:17:10 -0000 1.7 --- prefs_user_management_individual_form.pt 9 Jun 2003 15:56:33 -0000 1.8 *************** *** 18,25 **** tal:condition="here/rejectAnonymous" > ! <tal:set tal:condition="here/management_page_charset|nothing" tal:define="dummy python:request.set('management_page_charset_tag','')" /> ! <tal:set tal:condition="not:here/management_page_charset|nothing"> <tal:defines define="dummy python:request.set('management_page_charset','UTF-8'); dummy python:request.set('management_page_charset_tag','UTF-8:');" /> --- 18,25 ---- tal:condition="here/rejectAnonymous" > ! <tal:set tal:condition="mdata/management_page_charset|nothing" tal:define="dummy python:request.set('management_page_charset_tag','')" /> ! <tal:set tal:condition="not:mdata/management_page_charset|nothing"> <tal:defines define="dummy python:request.set('management_page_charset','UTF-8'); dummy python:request.set('management_page_charset_tag','UTF-8:');" /> *************** *** 63,70 **** <input type="text" name="id" size="35" ! tal:condition="python:type in ('int', 'long', 'string', 'date', 'float', 'tokens', 'utokens')" tal:attributes="name string:$id:$type; value python:test(propertyvalue, propertyvalue, '')" /> ! <input type="checkbox" class="noborder" --- 63,80 ---- <input type="text" name="id" size="35" ! tal:condition="python:type in ('int', 'long')" tal:attributes="name string:$id:$type; value python:test(propertyvalue, propertyvalue, '')" /> ! ! <input type="text" name="id" size="35" ! tal:condition="python:type in ('float','date')" ! tal:attributes="name string:$id:${request/management_page_charset_tag}$type; ! value python:test(propertyvalue, propertyvalue, '')" /> ! ! <input type="text" name="string and ustring" size="35" ! tal:condition="python:type in ('string','ustring')" ! tal:attributes="name string:$id:${request/management_page_charset_tag}$type; ! value python:test(propertyvalue, propertyvalue, '')" /> ! <input type="checkbox" class="noborder" *************** *** 76,91 **** checked python:test(propertyvalue, 'checked', '')" /> ! <textarea name="id" rows="6" cols="35" tal:condition="python: type in ('text', 'utext')" ! tal:attributes="name string:$id:$type;" tal:content="propertyvalue">some data</textarea> ! <textarea name="id" rows="6" cols="35" tal:condition="python: type in ('lines', 'ulines')" ! tal:attributes="name string:$id:$type;" tal:content="propertyvalue"><tal:content tal:repeat="line propertyvalue"><span tal:replace="string:line\n"/></tal:content> --- 86,106 ---- checked python:test(propertyvalue, 'checked', '')" /> ! <input name="tokens and utokens" value="" type="text" size="35" ! tal:condition="python:type in ('tokens', 'utokens')" ! tal:attributes="name string:$id:${request/management_page_charset_tag}$type; ! value python:test(propertyvalue, propertyvalue, '')" /> ! ! <textarea name="text and utext" rows="6" cols="35" tal:condition="python: type in ('text', 'utext')" ! tal:attributes="name string:$id:${request/management_page_charset_tag}$type" tal:content="propertyvalue">some data</textarea> ! <textarea name="lines and ulines" rows="6" cols="35" tal:condition="python: type in ('lines', 'ulines')" ! tal:attributes="name string:$id:${request/management_page_charset_tag}$type;" tal:content="propertyvalue"><tal:content tal:repeat="line propertyvalue"><span tal:replace="string:line\n"/></tal:content> *************** *** 99,104 **** define="global select_value python:path('here/%s' %select_variable);" /> ! <select name="id" tal:condition="python:type in ('selection',)" ! tal:attributes="name string:$id:$type;"> <tal:values repeat="option select_value"> <option tal:attributes="SELECTED python:test(propertyvalue==option,'SELECTED','')" --- 114,119 ---- define="global select_value python:path('here/%s' %select_variable);" /> ! <select name="selection" tal:condition="python:type in ('selection',)" ! tal:attributes="name string:$id:${request/management_page_charset_tag}text"> <tal:values repeat="option select_value"> <option tal:attributes="SELECTED python:test(propertyvalue==option,'SELECTED','')" *************** *** 107,131 **** </select> ! <select name="id" multiple tal:condition="python:type in ('multiple selection',)" ! tal:attributes="name string:$id:$type:list:string; size python:min(7, len(select_value));"> <tal:values repeat="option select_value"> ! <option tal:attributes="SELECTED python:test(propertyvalue and select_value in propertyvalue, ! 'selected', '')" tal:content="option">value</option> ! </tal:values> ! </select> ! ! <select name="id" multiple tal:condition="python:type in ('multiple selection',)" ! tal:attributes="name string:$id:$type:list:string; ! size python:min(7, len(select_value));"> ! <tal:values repeat="option select_value"> ! <option tal:attributes="SELECTED python:test(propertyvalue and select_value in propertyvalue, ! 'selected', '')" ! tal:content="option">value</option> ! </tal:values> ! </select> ! </tal:selections> </div> --- 122,136 ---- </select> ! <select name="multiple selection" multiple tal:condition="python:type in ('multiple selection',)" ! tal:attributes="name string:$id:${request/management_page_charset_tag}list:string; size python:min(7, len(select_value));"> <tal:values repeat="option select_value"> ! <option tal:attributes="SELECTED python:test(propertyvalue and option in propertyvalue, ! 'selected', '')" tal:content="option">value</option> ! </tal:values> ! </select> ! </tal:selections> </div> |