Commits

Anonymous committed e1cb0cf

Added id attribute to fields.

  • Participants
  • Parent commits 3c176bc

Comments (0)

Files changed (4)

File formbar/templates/dropdown.mako

     ${field.get_value(expand=True) or " "}
   </div>
 % else:
-  <select name="${field.name}">
+  <select id="${field.id}" name="${field.name}">
     % for option in field.get_options():
       <option value="${option[1]}">${option[0]}</option>
     % endfor

File formbar/templates/password.mako

     ${field.get_value("")}
   </div>
 % else:
-  <input type="password" name="${field.name}" value="${field.get_value()}"/>
+  <input type="password" id="${field.id}" name="${field.name}" value="${field.get_value()}"/>
 % endif

File formbar/templates/selection.mako

     ${field.get_value(expand=True) or "&nbsp;"}
   </div>
 % else:
-  <select name="${field.name}" size="5" multiple>
+  <select id="${field.id}" name="${field.name}" size="5" multiple>
     % for option in field.get_options():
       <option value="${option[1]}">${option[0]}</option>
     % endfor

File formbar/templates/textarea.mako

     ${field.get_value("").replace('\n', '<br>')}
   </div>
 % else:
-  <textarea name="${field.name}">${field.get_value()}</textarea>
+  <textarea id="${field.id}" name="${field.name}">${field.get_value()}</textarea>
 % endif