Changeset 921


Ignore:
Timestamp:
22 Nov 2006, 12:17:09 (18 years ago)
Author:
joachim
Message:

better display of roles

File:
1 edited

Legend:

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

    r916 r921  
    4141                <td>
    4242                  <a href="."
    43                     tal:attributes="href string:${portal_url}/cpsdirectory_entry_view?dirname=${dirname}&id=${id}"
     43                    tal:attributes="href string:${portal_url}/member_view?id=${id}"
    4444                    ><strong tal:content="structure python:data.get(field['id'])">john</strong></a>
    4545                </td>
    4646              </tal:block>
    4747          <td tal:define="roles python:data['roles']">
    48             <span tal:repeat="role roles">
     48            <form action="." method="get" tal:attributes="action context/portal_url">
     49              <select class="form-element" name=":action"
     50                      onChange="location.href='/'+this.options[this.selectedIndex].value"
     51                      tal:attributes="onChange string:location.href='${context/portal_url}'+this.options[this.selectedIndex].value">
     52                <option tal:repeat="role roles" value="." tal:content="role/getId"
     53                        tal:attributes="value string:${role/getPath}/folder_localrole_form"></option>
     54              </select>
     55              <input class="form-element" type="submit" name="submit" value=" view " />
     56            </form>
     57            <span tal:condition="python:0" tal:repeat="role roles">
    4958              <a href="" tal:attributes="href string:${role/getPath}/folder_localrole_form"
    5059                 tal:content="role/getId"></a><br />
Note: See TracChangeset for help on using the changeset viewer.