Changeset 2082 for WAeUP_SRP


Ignore:
Timestamp:
30 Jul 2007, 21:08:11 (17 years ago)
Author:
Henrik Bettermann
Message:

ticket #321

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_directory/search_members_results.pt

    r1958 r2082  
    1919      <table tal:condition="results" summary="search result list">
    2020        <tr>
    21           <th tal:condition="isAdmin" i18n:translate="label_selection">
    22             Selection
     21          <th tal:condition="isAdmin">
     22            &nbsp;
    2323          </th>
    2424          <tal:block repeat="field fields">
     
    4949                </td>
    5050              </tal:block>
    51           <td tal:define="roles python:data['roles']">
     51          <td nowrap tal:define="roles python:data['roles']">
    5252            <form action="." method="get"
    5353                  tal:condition="roles"
    5454                  tal:attributes="action context/portal_url">
    55               <select class="form-element" name=":action"
     55              <select tal:condition="python:0" class="form-element" name=":action"
    5656                      onChange="location.href='/'+this.options[this.selectedIndex].value"
    5757                      tal:attributes="onChange string:location.href='${context/portal_url}'+this.options[this.selectedIndex].value">
    58                 <option value="/search_members_form">&nbsp;Goto&nbsp;</option>
    59                 <option tal:repeat="role roles" value="." tal:content="role/getId"
    60                         tal:attributes="value string:${role/getPath}/folder_localrole_form"></option>
     58                <option  value="/search_members_form">&nbsp;Goto&nbsp;</option>
     59                <option tal:repeat="role roles" value="."
     60                        tal:attributes="value string:${role/getPath}/folder_localrole_form">
     61                   <span tal:define="pathobj python:role.getPath().split('/')"
     62                         tal:content="python:pathobj[4]+'/'+pathobj[5]+'/'+pathobj[7]+'/'+pathobj[8]" />
     63                </option>
    6164              </select>
    6265              <input tal:condition="python:0" class="form-element" type="submit" name="submit" value=" view " />
    6366            </form>
    64             <span tal:condition="python:0" tal:repeat="role roles">
    65               <a href="" tal:attributes="href string:${role/getPath}/folder_localrole_form"
    66                  tal:content="role/getId"></a><br />
     67            <span  tal:condition="python:1" tal:repeat="role roles">
     68              <a href="" tal:define="pathobj python:role.getPath().replace('certificates/','').split('/')"
     69                         tal:attributes="href string:${role/getPath}/folder_localrole_form">
     70                   <span tal:content="python:pathobj[4]" />     
     71                   <span tal:repeat="item python:pathobj[5:]"
     72                         tal:content="python:' / '+item" />             
     73              </a><br />
    6774            </span>
    6875          </td>
Note: See TracChangeset for help on using the changeset viewer.