diff --git a/ldapcherry/__init__.py b/ldapcherry/__init__.py index 32dc715..1998dcc 100644 --- a/ldapcherry/__init__.py +++ b/ldapcherry/__init__.py @@ -288,6 +288,7 @@ class LdapCherry(object): self.temp_searchuser = self.temp_lookup.get_template('searchuser.tmpl') self.temp_adduser = self.temp_lookup.get_template('adduser.tmpl') self.temp_form = self.temp_lookup.get_template('form.tmpl') + self.temp_selfmodify = self.temp_lookup.get_template('selfmodify.tmpl') self._init_auth(config) @@ -463,4 +464,5 @@ class LdapCherry(object): def selfmodify(self, **params): """ self modify user page """ self._check_auth(must_admin=False) - pass + form = self.temp_form.render(attributes=self.attributes.get_selfattributes()) + return self.temp_selfmodify.render(form=form) diff --git a/resources/templates/selfmodify.tmpl b/resources/templates/selfmodify.tmpl new file mode 100644 index 0000000..f6209c8 --- /dev/null +++ b/resources/templates/selfmodify.tmpl @@ -0,0 +1,18 @@ +<%inherit file="navbar.tmpl"/> +<%block name="core"> +
+
+
+ +
+
+
+