Ignore:
Timestamp:
03/11/09 21:28:13 (11 years ago)
Author:
astephen
Message:

more updates for submission form.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cows_wps/trunk/cows_wps/renderer/form_renderer.py

    r5955 r5958  
    4848  
    4949        html = """<input type="text" name="%s" id="%s" value="" onChange="validateTextInput(this.value, %s, '%s');" /><br />\n""" % (name, name, regex, msg) 
     50        html += """<script type="text/javascript">addValidator('%s', 'text', %s, '%s');</script>\n""" % (name, regex, msg) 
    5051        return html 
    5152 
    52                   
     53    def renderSelectList(self, name, values): 
     54        """ 
     55        Returns HTML for select list. 
     56        """ 
     57        html = """<select name="%s" id="%s">\n""" % (name, name) 
     58         
     59        for value in values: 
     60            html += """ <option value="%s">%s</option>\n""" % (value, value) 
     61 
     62        return html 
Note: See TracChangeset for help on using the changeset viewer.