Changeset 4263

Show
Ignore:
Timestamp:
09/11/08 07:30:08 (4 months ago)
Author:
cbalan
Message:

UserManagerPlugin: - Removed useless tabs.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • usermanagerplugin/0.11/tracusermanager/templates/prefs_um_profile.html

    r4262 r4263  
    55      xmlns:py="http://genshi.edgewall.org/" 
    66      xmlns:xi="http://www.w3.org/2001/XInclude"> 
    7          
    8         <py:match path="form[@id='userprefs']" once="True"> 
    9         <form py:attrs="select('@*')" enctype="multipart/form-data">${select("*|text()")}</form> 
     7    <py:match path="form[@id='userprefs']" once="True"> 
     8                <form py:attrs="select('@*')" enctype="multipart/form-data">${select("*|text()")}</form> 
    109    </py:match> 
    11          
    1210        <xi:include href="prefs.html" /> 
    1311        <head> 
     
    1513        </head> 
    1614        <body> 
    17                         <div py:choose="" class="um_profile_picture"> 
    18                                 <img py:when="user.picture_href" src="$user.picture_href"/> 
    19                                 <img py:otherwise="" src="${href.chrome('tracusermanager')}/img/no_picture.png"/> 
    20                                 <input py:if="user.picture_href" type="submit" name="um_profile_picture_remove" value="Remove picture"/> 
     15                <div py:choose="" class="um_profile_picture"> 
     16                        <img py:when="user.picture_href" src="$user.picture_href"/> 
     17                        <img py:otherwise="" src="${href.chrome('tracusermanager')}/img/no_picture.png"/> 
     18                        <input py:if="user.picture_href" type="submit" name="um_profile_picture_remove" value="Remove picture"/> 
     19                </div> 
     20                <div class="um_profile_fields"> 
     21                        <div py:choose="" py:for="field, attributes in sorted(um_profile_fields.items(), lambda x,y:x[1]['order']-y[1]['order'])" class="field"> 
     22                                <py:when test="attributes.type=='select'"> 
     23                                        <label for="um_profile_${field}">${attributes.label}:</label> 
     24                                        <select name="um_profile_${field}" id="um_profile_${field}" > 
     25                                                <py:for each="value in attributes['options']"> 
     26                                                        <py:choose> 
     27                                                                <option py:when="user[field]==value" selected="selected" value="${value}" >${value}</option> 
     28                                                                <option py:otherwise="" value="${value}">${value}</option> 
     29                                                        </py:choose>             
     30                                                </py:for> 
     31                                        </select> 
     32                                </py:when> 
     33                                <py:when test="attributes.type=='file'"> 
     34                                        <label for="um_profile_${field}">${attributes.label}:</label> 
     35                                        <input type="file" name="um_profile_${field}" id="um_profile_${field}" /> 
     36                                </py:when> 
     37                                <py:when test="attributes.type=='textarea'"> 
     38                                        <label for="um_profile_${field}">${attributes.label}:</label> 
     39                                        <textarea name="um_profile_${field}" id="um_profile_${field}" cols="${attributes.cols}" rows="${attributes.rows}">${user[field]}</textarea> 
     40                                </py:when> 
     41                                <py:when test="attributes.type=='wikitext'"> 
     42                                        <label for="um_profile_${field}">${attributes.label}:</label> 
     43                                        <textarea name="um_profile_${field}" id="um_profile_${field}" cols="${attributes.cols}" rows="${attributes.rows}">${user[field]}</textarea> 
     44                                </py:when> 
     45                                <py:when test="attributes.type=='multichecks'"> 
     46                                        <label >${attributes.label}:</label> 
     47                                        <span py:for="option in attributes['options']" for="um_profile_${field}_${option}"> 
     48                                                <input type="checkbox" name="um_profile_${field}" id="um_profile_${field}_${option}" checked="${option in str(user[field]) and 'cheched' or None}"  value="${option}"/> 
     49                                                ${option.capitalize()} 
     50                                        </span> 
     51                                </py:when> 
     52 
     53                                <py:otherwise> 
     54                                        <label for="um_profile_${field}">${attributes.label}:</label> 
     55                                        <input type="text" name="um_profile_${field}" id="um_profile_${field}" size="${attributes.cols}" value="${user[field]}"/> 
     56                                </py:otherwise> 
    2157                        </div> 
    22                         <div class="um_profile_fields"> 
    23                                 <div py:choose="" py:for="field, attributes in sorted(um_profile_fields.items(), lambda x,y:x[1]['order']-y[1]['order'])" class="field"> 
    24                                         <py:when test="attributes.type=='select'"> 
    25                                                 <label for="um_profile_${field}">${attributes.label}:</label> 
    26                                                 <select name="um_profile_${field}" id="um_profile_${field}" > 
    27                                                         <py:for each="value in attributes['options']"> 
    28                                                                 <py:choose> 
    29                                                                         <option py:when="user[field]==value" selected="selected" value="${value}" >${value}</option> 
    30                                                                         <option py:otherwise="" value="${value}">${value}</option> 
    31                                                                 </py:choose>             
    32                                                         </py:for> 
    33                                                 </select> 
    34                                         </py:when> 
    35                                         <py:when test="attributes.type=='file'"> 
    36                                                 <label for="um_profile_${field}">${attributes.label}:</label> 
    37                                                 <input type="file" name="um_profile_${field}" id="um_profile_${field}" /> 
    38                                         </py:when> 
    39                                         <py:when test="attributes.type=='textarea'"> 
    40                                                 <label for="um_profile_${field}">${attributes.label}:</label> 
    41                                                 <textarea name="um_profile_${field}" id="um_profile_${field}" cols="${attributes.cols}" rows="${attributes.rows}">${user[field]}</textarea> 
    42                                         </py:when> 
    43                                         <py:when test="attributes.type=='wikitext'"> 
    44                                                 <label for="um_profile_${field}">${attributes.label}:</label> 
    45                                                 <textarea name="um_profile_${field}" id="um_profile_${field}" cols="${attributes.cols}" rows="${attributes.rows}">${user[field]}</textarea> 
    46                                         </py:when> 
    47                                         <py:when test="attributes.type=='multichecks'"> 
    48                                                 <label >${attributes.label}:</label> 
    49                                                 <span py:for="option in attributes['options']" for="um_profile_${field}_${option}"> 
    50                                                         <input type="checkbox" name="um_profile_${field}" id="um_profile_${field}_${option}" checked="${option in str(user[field]) and 'cheched' or None}"  value="${option}"/> 
    51                                                         ${option.capitalize()} 
    52                                                 </span> 
    53                                         </py:when> 
    54  
    55                                         <py:otherwise> 
    56                                                 <label for="um_profile_${field}">${attributes.label}:</label> 
    57                                                 <input type="text" name="um_profile_${field}" id="um_profile_${field}" size="${attributes.cols}" value="${user[field]}"/> 
    58                                         </py:otherwise> 
    59                                 </div> 
    60                         </div> 
     58                </div> 
    6159        </body> 
    6260</html>