Mercurial > hg > MPIWGWeb
view zpt/updatePersonalwww_check.zpt @ 276:c886c0cb3455
added xml export for projects.
author | casties |
---|---|
date | Mon, 23 Feb 2015 22:47:36 +0100 |
parents | 3b517b412f77 |
children |
line wrap: on
line source
<html tal:define="news here/REQUEST/SESSION/personal_www/news; conflicts here/REQUEST/SESSION/personal_www/conflicts; resultSet here/REQUEST/SESSION/personal_www/resultSet;" > <body> <h1>Check upload</h1> <form method="post" action="updatePersonalwww_doIt"> <tal:block tal:condition="news"> <h2>New</h2> <table> <tr tal:repeat="new news"> <td><span tal:replace="python:resultSet[new]['first_name']">first</span> <span tal:replace="python:resultSet[new]['last_name']">last</span> </td> <td> <input type="checkbox" tal:attributes="name python:new.encode('utf-8')" checked="True" value="new"/> </td> </tr> </table> </tal:block> <tal:block tal:condition="conflicts"> <h2>Conflicts</h2> <table border="1"> <tr tal:repeat="conflict python:conflicts.keys()"> <td valign="top"><span tal:replace="python:resultSet[conflict]['first_name']">first</span> <span tal:replace="python:resultSet[conflict]['last_name']">last</span> </td> <td> <tal:x repeat="cf python:conflicts[conflict]"> <table border="1"> <tr> <td bgcolor="green" colspan="3"><span tal:replace="python:cf[0]">feld</span></td> </tr> <tr> <td valign="top"><input type="radio" tal:attributes="name python:conflict+'_'+cf[0]" value="stored" grant all privilege checked="True"></td> <td valign="top">stored:</td> <td><span tal:replace="python:cf[1]">stored value</span></td> </tr> <tr> <td valign="top"><input type="radio" tal:attributes="name python:conflict+'_'+cf[0]" value="xml" ></td> <td valign="top">xml-file:</td> <td><span tal:replace="python:cf[2]">value from xml-file</span></td> </tr> <!-- <tr> <td valign="top"><input type="radio" tal:attributes="name python:conflict+'_'+cf[0]" value="reject"></td> <td valign="top">reject</td> <td> </td> </tr>--> </table> </tal:x> </td> </tr> </table> </tal:block> <p><span tal:content="python:len(resultSet)"/> total entries to change.</p> <input type="submit"> </form> </body> </html>