Mercurial > hg > MPIWGWeb
view zpt/staff/edit_talks.zpt @ 252:e5b444dab055
add $langroot for absolute urls for switching en<->de
author | casties |
---|---|
date | Mon, 19 May 2014 11:54:08 +0200 |
parents | 980794794bb5 |
children |
line wrap: on
line source
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html metal:use-macro="here/mainEditFile/macros/page"> <body> <tal:block metal:fill-slot="navsel" tal:define="global menusel string:talks" /> <tal:block metal:fill-slot="body"> <form tal:attributes="action string:$root/editTalks" method="post" tal:define="cal here/getTalksCal"> <tal:block tal:condition="not:cal"> <h3>Enter talk events manually</h3> <input type="hidden" name="key_main" tal:attributes="value here/content/key"/> <input type="hidden" name="main_fields" value="talks__title"/> <table tal:define="talks python:here.getTalks(published=False)"> <tr> <th>Date</th> <th>Title/Place/Link</th> <th>Priority</th> <th>Show</th> </tr> <tr tal:repeat="talk talks"> <td valign="top"> <input tal:attributes="name python:'talks__date__'+str(talk.oid); value talk/date" size="10" /> </td> <td> <input tal:attributes="name python:'talks__title__'+str(talk.oid); value python:talk.title" size="80" /><br> <input tal:attributes="name python:'talks__place__'+str(talk.oid); value python:talk.place" size="80" /><br> <input tal:attributes="name python:'talks__link__'+str(talk.oid); value python:talk.link" size="80" /> </td> <td valign="top"> <input tal:attributes="name python:'talks__priority__'+str(talk.oid); value talk/priority" size="3" /> </td> <td valign="top" tal:define="name string:talks__published__${talk/oid}; value talk/published;"> <span metal:use-macro="here/common_template/macros/yesno_input_radio"/> </td> <td> <a tal:attributes="href string:$root/deleteField?table=talks&key=${talk/oid}">delete</a> </td> </tr> <tr colspan="4"> <th>Add new</th> </tr> <tr> <td valign="top"><input tal:attributes="name python:'talks__date__new'" size="10" /></td> <td> <input tal:attributes="name python:'talks__title__new'" size="80"/> <br/> <input tal:attributes="name python:'talks__place__new'" size="80" /> <br/> <input tal:attributes="name python:'talks__link__new'" size="80" /> </td> <td> <input tal:attributes="name python:'talks__priority__new'" size="3"/> </td> <td valign="top" tal:define="name string:talks__published__new; value string:yes;"> <span metal:use-macro="here/common_template/macros/yesno_input_radio"/> </td> </tr> </table> </tal:block> <h3>Automatic talk events from calendar server</h3> <p> Calendar URL: <input name="ics_url" tal:attributes="value cal/url | nothing" size="80"/> </p> <p> URL has to link to publicly accessible calendar in iCalendar format.<br/> (e.g. https://sogo.mpiwg-berlin.mpg.de/SOGo/dav/public/mpiwg-calendar/Calendar/A5B-52288800-1-2F304600.ics) </p> <p tal:condition="cal"> Remove the calendar URL to enter talks manually. </p> <p tal:condition="cal"> <tal:block tal:define="name string:only_upcoming; value python:test(cal.getFlag('only_upcoming'), 'yes', 'no');"> Show only upcoming events in the calendar: <span metal:use-macro="here/common_template/macros/yesno_input_radio"/> </tal:block> </p> <p> Number of items on profile page: <input name="talks_num" size="2" tal:attributes="value python:here.content.talks_num or 5"/> </p> <p> <input type="submit" value="submit"/> </p> </form> </tal:block> </body> </html>