Mercurial > hg > MPIWGWeb
diff zpt/staff/edit_publications.zpt @ 159:ee79f6ba8d01
clean up staff editing and some zpt forms.
author | casties |
---|---|
date | Thu, 06 Jun 2013 15:34:20 +0200 |
parents | 225179dfd892 |
children | 485bf377913a |
line wrap: on
line diff
--- a/zpt/staff/edit_publications.zpt Thu Jun 06 14:00:31 2013 +0200 +++ b/zpt/staff/edit_publications.zpt Thu Jun 06 15:34:20 2013 +0200 @@ -2,28 +2,25 @@ "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:maindata"/> - <tal:block metal:fill-slot="body" tal:define="yes_no_list python:'yes\nno'"> - - - <h2>Selection mode</h2> - <form method="post" action=""> - - - <input type="radio" name="selectionMode" value="year" tal:attributes="checked python:test(here.content.publications_mode=='year','true','')"/> - Show the five most recent publications. (no further action needed) - <input type="radio" name="selectionMode" value="priority" tal:attributes="checked python:test(here.content.publications_mode=='priority','true','')"/>Show selected publications. - <input type="submit" name="submit"/> - </form> + <tal:block metal:fill-slot="navsel" tal:define="global menusel string:publications" /> + <tal:block metal:fill-slot="body"> + - - - <ul tal:condition="python:here.content.publications_mode=='priority'"> - <li><a href="addPublicationsFromPubman">Add an Entry</a></li> - <li><a href="changePublications">Delete entries from the list or Change the priorities</a></li> - - </ul> - - </tal:block> - </body> - </html> \ No newline at end of file + <h2>Selection mode</h2> + <form method="post" action=""> + <input type="radio" name="selectionMode" value="year" tal:attributes="checked python:here.content.publications_mode=='year'" /> + Show the five most recent publications. (no further action needed) + <input type="radio" name="selectionMode" value="priority" + tal:attributes="checked python:here.content.publications_mode=='priority'" />Show selected publications. + <input type="submit" name="submit" /> + </form> + + <ul tal:condition="python:here.content.publications_mode=='priority'"> + <li><a href="addPublicationsFromPubman">Add an Entry</a></li> + <li><a href="changePublications">Delete entries from the list or Change the priorities</a></li> + + </ul> + + </tal:block> +</body> +</html> \ No newline at end of file