Mercurial > hg > MPIWGWeb
diff zpt/staff/edit_downloads.zpt @ 159:ee79f6ba8d01
clean up staff editing and some zpt forms.
author | casties |
---|---|
date | Thu, 06 Jun 2013 15:34:20 +0200 |
parents | 9b38ba45773b |
children | 485bf377913a |
line wrap: on
line diff
--- a/zpt/staff/edit_downloads.zpt Thu Jun 06 14:00:31 2013 +0200 +++ b/zpt/staff/edit_downloads.zpt Thu Jun 06 15:34:20 2013 +0200 @@ -4,53 +4,79 @@ <head> </head> <body> -<tal:block metal:fill-slot="navsel" tal:define="global menusel string:downloads" /> -<tal:block metal:fill-slot="body" tal:define="yes_no_list python:'yes\nno'"> -<p>Here you can upload your CV and and publication list to be downloaded from your homepage.</p> -<p>The documents should be in <b>PDF format</b>. Add the add bottom of this page you find <a href="#templates">templates</a> for OpenOffice and -Word to make it easier for you to create these documents.</p> -<form action="changeDownloads" method="post" enctype="multipart/form-data"> -<h2>Your CV</h2> -<p><input type="hidden" name="key" tal:attributes="value here/getKey"/></p> -<p><input type="file" name="cv_pdf"/></p> -<p>Remember that documents should be in <b>PDF format</b>. <br/><input type="submit" value="Upload the file"/></p> -<p><a href="downloadCV">Download the CV currently stored at the server.</a> (last update:<span tal:content="here/getLastUpdateCV"/>)</p> -<p>publish: <tal:x tal:content="structure python:here.ZSQLSelectionFromCRList( - 'cv_publish', - yes_no_list, - boxType='radio', - checked=getattr(here,'cv_publish','no'))" /></p> + <tal:block metal:fill-slot="navsel" tal:define="global menusel string:downloads" /> + <tal:block metal:fill-slot="body"> + <p>Here you can upload your CV and and publication list to be downloaded from your homepage.</p> + <p> + The documents should be in <b>PDF format</b>. Add the add bottom of this page you find <a href="#templates">templates</a> for + OpenOffice and Word to make it easier for you to create these documents. + </p> + <form action="changeDownloads" method="post" enctype="multipart/form-data"> + <h2>Your CV</h2> + <p> + <input type="hidden" name="key" tal:attributes="value here/getKey" /> + </p> + <p> + <input type="file" name="cv_pdf" /> + </p> + <p> + Remember that documents should be in <b>PDF format</b>. <br /> + <input type="submit" value="Upload the file" /> + </p> + <p> + <a href="downloadCV">Download the CV currently stored at the server.</a> (last update:<span + tal:content="here/getLastUpdateCV" />) + </p> + <p> + publish: + <span tal:define="name string:cv_publish; value here/content/cv_p | nothing;"> + <tal:block metal:use-macro="here/common_template/macros/yesno_input_radio"/> + </span> + </p> -<h2>Publication list</h2> -<p><input type="file" name="publications_pdf"/></p> -<p>Remember that documents should be in <b>PDF format</b>. <br/><input type="submit" value="Upload the file"/></p> -<p><a href="downloadPublications">Download the publicaton list currently stored at the server. </a>(last update:<span tal:content="here/getLastUpdatePublications"/>)</p> -<p>publish: <tal:x tal:content="structure python:here.ZSQLSelectionFromCRList( - 'publications_publish', - yes_no_list, - boxType='radio', - checked=getattr(here,'publications_publish','no'))" /></p> - -<p><input type="submit" value="Update"/></p> + <h2>Publication list</h2> + <p> + <input type="file" name="publications_pdf" /> + </p> + <p> + Remember that documents should be in <b>PDF format</b>. <br /> + <input type="submit" value="Upload the file" /> + </p> + <p> + <a href="downloadPublications">Download the publication list currently stored at the server. </a>(last update:<span + tal:content="here/getLastUpdatePublications" />) + </p> + <p> + publish: + <span tal:define="name string:publications_publish; value here/content/publications_p | nothing;"> + <tal:block metal:use-macro="here/common_template/macros/yesno_input_radio"/> + </span> + </p> -</form> -<br/> <br/> -<a name="templates"/><h3>Download Templates:</h3> -<ul> - <li>For OpenOffice Writer: + <p> + <input type="submit" value="Update" /> + </p> + + </form> + <br /> + <br /> + <a name="templates" /> + <h3>Download Templates:</h3> <ul> - <li><a href="downloads/publications_template.ott">Publication List</a> </li> - <li><a href="downloads/CV_template.ott">CV</a></li> - </ul> - </li> - <li>For Ms Word: - <ul> - <li><a href="downloads/Vorlage_Publikation.dot">Publication List</a></li> - <li><a href="downloads/Beispiel_CV.doc">CV</a></li> + <li>For OpenOffice Writer: + <ul> + <li><a href="downloads/publications_template.ott">Publication List</a></li> + <li><a href="downloads/CV_template.ott">CV</a></li> + </ul> + </li> + <li>For Ms Word: + <ul> + <li><a href="downloads/Vorlage_Publikation.dot">Publication List</a></li> + <li><a href="downloads/Beispiel_CV.doc">CV</a></li> + </ul> + </li> </ul> - </li> -</ul> -</tal:block> + </tal:block> </body> </html>