Changeset 111


Ignore:
Timestamp:
05/16/09 02:03:52 (15 years ago)
Author:
nanardon
Message:
  • add form module
Location:
LATMOS-Accounts-Web
Files:
2 added
1 edited

Legend:

Unmodified
Added
Removed
  • LATMOS-Accounts-Web/root/html/users/default.tt

    r104 r111  
    33No user [% username | html %] found. 
    44[% ELSE %] 
    5 [% FOREACH attr = user.list_canonical_fields('a') %] 
    6 [% attr %] [% user.get_c_field(attr) | html %]<br> 
     5[% form = c.model('AttrForms', 'user_main', user) %] 
     6 
     7[% FOREACH attr =  form.attributes %] 
     8[% IF loop.first %] 
     9<form action="[% c.uri_for(username) | html %]" method="POST"> 
     10<table border=1> 
     11[% END %] 
     12<tr><td>[% form.attr_label(attr) %]</td><td>[% form.attr_field(attr) %]</td><br> 
     13[% IF loop.last %] 
     14<tr><td colspan=2><input type="submit"></td></tr> 
     15</table> 
     16</form> 
    717[% END %] 
    818[% END %] 
     19[% END %] 
Note: See TracChangeset for help on using the changeset viewer.