Mercurial > hg > MPIWGWeb
diff zpt/project/edit_basic.zpt @ 273:79f3f6492ec9
restrict projectType values in input field.
author | casties |
---|---|
date | Tue, 30 Sep 2014 16:31:02 +0200 |
parents | 4eddd388d490 |
children |
line wrap: on
line diff
--- a/zpt/project/edit_basic.zpt Tue Sep 30 13:59:13 2014 +0200 +++ b/zpt/project/edit_basic.zpt Tue Sep 30 16:31:02 2014 +0200 @@ -48,8 +48,12 @@ </tr> <tr> <td>Type of project page:</td> - <td><input name="projectType" tal:attributes="value here/getProjectType" - type="text" size="20" /></td> + <td> + <select name="projectType"> + <option tal:repeat="val python:[None, 'Project', 'Department', 'Working Group', 'Theme', 'Info Page']" + tal:attributes="value val; selected python:(val == here.getProjectType());" tal:content="val"/> + </select> + </td> </tr> </table>