Changeset 1259


Ignore:
Timestamp:
01/04/07 01:18:23 (13 years ago)
Author:
jukka
Message:

Worked on #1053, made last name mandatory for joining and validated.

Location:
trunk/skins/lemill
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/skins/lemill/join_form.cpt

    r764 r1259  
    4444        <label i18n:translate="label_name">Name</label> 
    4545 
     46        <span class="fieldRequired" title="Required" 
     47              i18n:attributes="title title_required;" 
     48              i18n:translate="label_required">(Required)</span> 
     49 
    4650        <div class="formHelp" i18n:domain="lemill" i18n:translate="help_name_creation"> 
    4751          Enter your first name and last name 
  • trunk/skins/lemill/member_view.pt

    r1258 r1259  
    6060                tal:define="portrait python:mtool.getPersonalPortrait(thismember); 
    6161                            portrait_url portrait/absolute_url | nothing; 
    62                             fullname member_folder/getFullname | nothing; 
     62                            fullname member_folder/getFullname | thismember; 
    6363                            email member_folder/getEmail | nothing; 
    6464                            phone member_folder/getPhone | nothing; 
     
    8181                <!-- Author information --> 
    8282                <h1 class="documentFirstHeading"  
    83                     tal:content="fullname | thismember"> 
     83                    tal:content="fullname"> 
    8484                    fullname 
    8585                </h1> 
  • trunk/skins/lemill/validate_user.vpy

    r1223 r1259  
    66##bind state=state 
    77##bind subpath=traverse_subpath 
    8 ##parameters=username='' 
     8##parameters=username='', lastname='' 
    99##title=Validates user name 
    1010## 
     
    2222    if username and cmp(username.lower(), id.lower())==0: 
    2323        invalid('username') 
     24 
     25if not lastname: 
     26    state.setError('lastname', _(u'This field is required, please provide some information.'), 'input_required') 
     27 
    2428         
    2529if state.getErrors(): 
Note: See TracChangeset for help on using the changeset viewer.