Changeset 6465


Ignore:
Timestamp:
23 Jun 2011, 09:43:06 (13 years ago)
Author:
Henrik Bettermann
Message:

Show access code in headline of left sidebar of applicants. Show 'Your Application' in title of form.

Fix contact form.

Location:
main/waeup.sirp/trunk/src/waeup/sirp
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/applicants/authentication.py

    r6456 r6465  
    6868        if prefix is not None:
    6969            self.id = '%s.%s' % (prefix, self.id)
    70         self.title = u'My Application'
     70        self.title = u'Applicant'
    7171        self.description = u'An applicant'
    7272        self.groups = []
  • main/waeup.sirp/trunk/src/waeup/sirp/applicants/browser.py

    r6462 r6465  
    546546    @property
    547547    def title(self):
     548        if self.request.principal.title == 'Applicant':
     549            return u'Your Application Record'
    548550        return '%s' % self.context.access_code
    549551
     
    749751    grok.template('form_edit')
    750752    manage_applications = False
     753    title = u'Your Application Form'
    751754
    752755
  • main/waeup.sirp/trunk/src/waeup/sirp/browser/layout.py

    r6342 r6465  
    142142        if usertitle == 'Unauthenticated User':
    143143            return u'Anonymous User'
     144        elif usertitle == 'Applicant':
     145            return self.request.principal.id
    144146        return usertitle
    145147
  • main/waeup.sirp/trunk/src/waeup/sirp/browser/pages.py

    r6447 r6465  
    375375        return tt
    376376
     377    @property
     378    def namefield_label(self):
     379        if self.request.principal.title == 'Applicant':
     380            return 'Access Code'
     381        else:
     382            return 'Full Name'
     383
    377384    def update(self, *args, **kw):
    378385        form = self.request.form
  • main/waeup.sirp/trunk/src/waeup/sirp/browser/templates/contactadminform.pt

    r5433 r6465  
    55<tr>
    66  <td width="150px">
    7      <strong>Full Name: </strong>
     7     <strong><span tal:replace="view/namefield_label" />: </strong>
    88  </td>
    99  <td tal:condition="not:layout/isAuthenticated">
    10      <input name="fullname" type="text" id="fullname" tal:attributes="value view/fullname|nothing" />
     10     <input name="fullname" type="text" id="fullname"/>
    1111  </td>
    1212  <td tal:condition="layout/isAuthenticated">
     
    2929  </td>
    3030  <td>
    31      <textarea name="descr" rows="10" cols="60" id="descr"><span tal:replace="view/descr|nothing" /></textarea>
    32      
     31     <textarea name="descr" rows="10" cols="60" id="descr"></textarea>
    3332  </td>
    3433</tr>
Note: See TracChangeset for help on using the changeset viewer.