mirror of
https://github.com/kakwa/ldapcherry
synced 2025-02-22 18:38:22 +01:00
adding self modify page
This commit is contained in:
parent
f8b3df8b58
commit
d1e0c4be93
@ -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)
|
||||
|
18
resources/templates/selfmodify.tmpl
Normal file
18
resources/templates/selfmodify.tmpl
Normal file
@ -0,0 +1,18 @@
|
||||
<%inherit file="navbar.tmpl"/>
|
||||
<%block name="core">
|
||||
<div class="row clearfix top-buffer bottom-buffer">
|
||||
<div class="col-md-12 column">
|
||||
<div class="well well-sm">
|
||||
<form method='POST' action='/selfmodify' role="form" class="form-signin">
|
||||
${form}
|
||||
<div class="form-group">
|
||||
<div class="input-group">
|
||||
<button type="submit" class="btn btn-default blue">
|
||||
<span class="glyphicon glyphicon-cog"></span> Modify</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</%block>
|
Loading…
x
Reference in New Issue
Block a user