Ignore:
Timestamp:
01/20/10 18:30:39 (14 years ago)
Author:
nanardon
Message:
  • online check group name validity
File:
1 edited

Legend:

Unmodified
Added
Removed
  • LATMOS-Accounts-Web/root/html/create/group.tt

    r246 r681  
    44<table border="0"> 
    55<tr><td>[% IF idexists %]<img src="[% c.uri_for('/static', 'icons', 'dialog-cancel.png') %]">[% END %] 
    6 Nom:</th><td><input type="text" name="id" value="[% c.req.param('id') | html %]"></td></tr> 
     6Nom:</th><td><input type="text" name="id" id="name" value="[% c.req.param('id') | html %]"> 
     7<span id="name_validity"></span> 
     8</td></tr> 
     9[% c.prototype.observe_field('name', { 
     10    url => c.uri_for('/ajax', 'check_new_name', 'group'), 
     11    with   => "'val='+value", 
     12    update => 'name_validity', 
     13    frequency => 1, 
     14    min_chars => 1, 
     15}) %] 
    716<tr><td>[% form.attr_label('description') %]</td><td>[% form.attr_field('description') %]</td></tr> 
    817<input type="hidden" name="step" value="1"> 
Note: See TracChangeset for help on using the changeset viewer.