Annotation of MPIWGWeb/zpt/editAdditionalLinks.zpt, revision 1.1.2.4

1.1.2.1   dwinter     1: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
                      2:           "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
                      3: <html metal:use-macro="here/mainEditFile/macros/page">
                      4: <body>
                      5: <tal:block metal:fill-slot="navsel" tal:define="global menusel string:additionalLink" />
1.1.2.2   dwinter     6: <p>You can add links to documents or project websites you want to provide and are relevant for
                      7: presenting your work and research interests</p>
1.1.2.1   dwinter     8: 
                      9: <tal:block metal:fill-slot="body" tal:define="yes_no_list python:'yes\nno'">
                     10:   <form action="changeResearch" method="post">
1.1.2.4 ! dwinter    11:   <input type="hidden" name="key_main" tal:attributes="value python:here.decode(person.key)">
1.1.2.1   dwinter    12:   <input type="hidden" name="main_fields" value="additionalLink__title">
1.1.2.2   dwinter    13:   <table tal:define="founds2 python:here.ZSQLInlineSearch(_table='additionalLink',key_main=person.key)" >
                     14:    <tal:x tal:repeat="found2 python:here.sortPriority(founds2)">
                     15:     <tr class="fliesstext">
                     16:       <td>Text over Link</td>
1.1.2.1   dwinter    17:       <td><input tal:attributes="name python:'additionalLink__title__'+str(found2.oid); 
1.1.2.3   dwinter    18:                     value python:here.decode(found2.title)" size="80" /> </td>
1.1.2.2   dwinter    19:    </tr>
                     20:    <tr>
                     21:        <td>Url</td>
1.1.2.1   dwinter    22:        <td><input tal:attributes="name python:'additionalLink__link__'+str(found2.oid); 
1.1.2.3   dwinter    23:                     value python:here.decode(found2.link)" size="80" /></td>
1.1.2.2   dwinter    24:    </tr>
                     25:    <tr>
                     26:       <td valign="top">Priority <input tal:attributes="name python:'additionalLink__priority__'+str(found2.oid);
1.1.2.3   dwinter    27:                     value python:here.decode(found2.priority)"
1.1.2.2   dwinter    28:         size="3" />
                     29:       </td>
                     30:       <td valign="top">Publish 
                     31:         <tal:x tal:content="structure python:here.ZSQLSelectionFromCRList(
1.1.2.1   dwinter    32:                 'additionalLink__published__'+str(found2.oid),
                     33:                 yes_no_list,
                     34:                 boxType='radio',
                     35:                 checked=found2.published)" />
1.1.2.2   dwinter    36:       &nbsp;&nbsp;<a tal:attributes="href python:'deleteField?table=additionalLink&oid=%s'%found2.oid">delete this link</a>
                     37:       </td>
                     38:     </tr>
                     39:     <tr>
                     40:        <td colspan="2"><hr/></td>
                     41:        </tr>
                     42:     </tal:x>
                     43:     <tr >
                     44:       <td colspan="2"><b>Add new link</b></td>
                     45:     </tr>
                     46:     <tr>
                     47:            <td>Text over Link</td>
                     48:            <td><input tal:attributes="name python:'additionalLink__title__new'" size="80"/></td>
1.1.2.1   dwinter    49:     </tr>
1.1.2.2   dwinter    50:     <tr>
                     51:        <td>Url</td>
                     52:        <td><input tal:attributes="name python:'additionalLink__link__new'" size="80" /></td>
1.1.2.1   dwinter    53:     </tr>
                     54:     <tr>
1.1.2.2   dwinter    55:       <td>Priority <input tal:attributes="name python:'additionalLink__priority__new'" size="3"></td>
                     56:       <td valign="top">Publish
                     57:         <tal:x tal:content="structure python:here.ZSQLSelectionFromCRList(
1.1.2.1   dwinter    58:                 'additionalLink__published__new',
                     59:                 yes_no_list,
                     60:                 boxType='radio',
                     61:                 checked='yes')" />
1.1.2.2   dwinter    62:                 </td>
1.1.2.1   dwinter    63:     </tr>
                     64:   </table>
                     65:   <input type="submit" value="submit">
                     66: 
                     67:   </form>
1.1.2.2   dwinter    68:   <p>Please contact the IT Group <a href="mailto:itgroup@mpiwg-berlin.mpg.de">itgroup@mpiwg-berlin.mpg.de</a>, if you intend
                     69:   to link to documents not available in the net and if you want to publish these.</p>
1.1.2.1   dwinter    70: </tal:block>
                     71: </body>
                     72: </html>

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>