Anonymous avatar Anonymous committed 6a82330

Add renderer for passwords.

Comments (0)

Files changed (2)


             return DropdownFieldRenderer(field, translate)
         elif renderer.render_type == "datepicker":
             return DateFieldRenderer(field, translate)
+        elif renderer.render_type == "password":
+            return PasswordFieldRenderer(field, translate)
         # Try to determine the datatype of the field and set approriate
         # renderer.
     def __init__(self, field, translate):
         FieldRenderer.__init__(self, field, translate)
-        self.template = template_lookup.get_template("fa_field.mako")
+        self.template = template_lookup.get_template("password.mako")
 class DropdownFieldRenderer(FieldRenderer):


+% if field.is_readonly():
+  <div class="readonlyfield">
+    ${field.get_value("") or "&nbsp;"}
+  </div>
+% else:
+  <input type="password" name="${}" value="${field.get_value()}"/>
+% endif
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.