Mercurial > hg > MPIWGWeb
changeset 163:ed1366e3c533
common_template/macros/tool_box_projects
author | casties |
---|---|
date | Thu, 06 Jun 2013 19:13:46 +0200 |
parents | 47392bf3fcba |
children | 238b36c1a355 |
files | zpt/www/common_template.zpt |
diffstat | 1 files changed, 41 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/zpt/www/common_template.zpt Thu Jun 06 19:13:07 2013 +0200 +++ b/zpt/www/common_template.zpt Thu Jun 06 19:13:46 2013 +0200 @@ -52,8 +52,48 @@ </div> </div> </div> + </div><!-- /feature --> + + <!-- sort projects tool box --> + <div class="tool box" metal:define-macro="tool_box_projects"> + <form class="autosubmit" tal:attributes="action string:$root/${secmap/research}/redirectSortBy"> + <input type="hidden" name="dep" tal:condition="activeDep|nothing" tal:attributes="value activeDep" /> + <h3 metal:define-slot="title">Sort Projects by</h3> + <div class="options"> + <ul tal:attributes="class listClass | nothing"> + <li><input class="radio autosubmit" type="radio" name="sortby" value="unit" tal:attributes="checked python:sortby=='unit'" /> + <tal:block metal:define-slot="text_unit">Research Unit</tal:block> + </li> + <li><input class="radio autosubmit" type="radio" name="sortby" value="name" tal:attributes="checked python:sortby=='name'" /> + <tal:block metal:define-slot="text_name">Name of Project</tal:block> + </li> + <li><input class="radio autosubmit" type="radio" name="sortby" value="scholar" tal:attributes="checked python:sortby=='scholar'" /> + <tal:block metal:define-slot="text_scholar">Involved Scholar</tal:block> + </li> + <li><input class="radio autosubmit" type="radio" name="sortby" value="structure" tal:attributes="checked python:sortby=='structure'" /> + <tal:block metal:define-slot="text_structure">Structure</tal:block> + </li> + <li><input class="radio autosubmit" type="radio" name="sortby" value="thesaurus" tal:attributes="checked python:sortby=='thesaurus'" /> + <tal:block metal:define-slot="text_thesaurus">Keyword</tal:block> + </li> + </ul> + </div> + <div class="options"> + <input class="radio autosubmit" type="radio" name="archived" value="1" tal:attributes="checked python:archived==1" /> + <tal:block metal:define-slot="text_current">Show Current Projects</tal:block> + <input class="radio autosubmit" type="radio" name="archived" value="2" tal:attributes="checked python:archived==2" /> + <tal:block metal:define-slot="text_completed">Show Completed Projects</tal:block> + <input class="autosubmit" type="submit" value="Change" /> + </div> + <div class="atoz" tal:condition="python:sortby in ['name','scholar']"> + <ul class="inline"> + <li tal:repeat="letter python:modules['string'].uppercase"> + <a tal:attributes="href string:#$letter" tal:content="letter"/><tal:block tal:condition="not:repeat/letter/end"> |</tal:block> + </li> + </ul> + </div> + </form> </div> - <!-- feature --> <!-- short person entry -->