providers/saml: add custom help text for templates, add docs for User Object reference

This commit is contained in:
Jens Langhammer
2020-02-17 20:30:14 +01:00
parent 9400b01a55
commit bc4b7ef44d
6 changed files with 64 additions and 0 deletions

View File

@ -50,6 +50,8 @@ class LDAPSourceForm(forms.ModelForm):
class LDAPPropertyMappingForm(forms.ModelForm):
"""LDAP Property Mapping form"""
template_name = "ldap/property_mapping_form.html"
class Meta:
model = LDAPPropertyMapping

View File

@ -0,0 +1,18 @@
{% extends "generic/form.html" %}
{% load i18n %}
{% block beneath_form %}
<div class="form-group ">
<label class="col-sm-2 control-label" for="friendly_name-2">
</label>
<div class="col-sm-10">
<p>
Expression using <a href="https://jinja.palletsprojects.com/en/2.11.x/templates/">Jinja</a>. Following variables are available:
<ul>
<li><code>ldap</code>: A Dictionary of all values retrieved from LDAP.</li>
</ul>
</p>
</div>
</div>
{% endblock %}